Cant program Autonomo usign arduino IDE

Hi,
I have an autonomo rev. 5 that i can no longer upload programs to. I get the following error (after a long period of time):

No device found on ttyACM0
An error occurred while uploading the sketch

–or–

Couldn’t find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board’s reset button after initiating the upload.
Board at /dev/ttyACM0 is not available.

However when i connect the USB cable and then check the connection it indicates that there is a device on ttyACM0 (Arduino/Genuino Zero (native USB port…)

I have tried the above option with the rest button but this has no effect.

i have another autonomo that works fine so i assume that something has got stuck, so is there a method to “unstick it”.

Also LED 2 is blinking very fast continuously as soon as i connect the USB.

i am running a linux machine and the command dmesg | tail gives the following information:

[171049.869795] cdc_acm 1-10:1.0: failed to set dtr/rts
[171099.587335] usb 1-10: new full-speed USB device number 51 using xhci_hcd
[171099.722827] usb 1-10: New USB device found, idVendor=2341, idProduct=804d
[171099.722834] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[171099.722839] usb 1-10: Product: SODAQ Autonomo
[171099.722842] usb 1-10: Manufacturer: Arduino LLC
[171099.723950] cdc_acm 1-10:1.0: ttyACM0: USB ACM device

Any help is much appreciated.

Cheers.

Hi @katesfb,

Can you after connecting the Autonomo to your pc, double press the reset button?
When you do this depending on the firmware on the board the led should fade.
With double pressing the reset button, you put the microcontroller in bootloader mode. The bootloader is expecting and waiting for a new sketch.

Probably in your current code, you disconnect the USB and go to sleep before the IDE send the command that it want to upload a new sketch.

Let me know if this fixed your issue.

Best regards,
Jan

Hi Jan,
Thanks for the reply.

The double press of the reset after connection to the PC had no effect on the LED but did allow me to upload sketches to the autonomo again although only for a short time before the problem resurfaced. It seems to be randomly cutting off the USB connection. In the space of a few minutes i went from operating on ttyACM0 to ttyACM14. I also noticed that even when i can upload a sketch it takes a while before the upload begins whereas our spare autonomo has no delay. So at the moment i am having to use the double press of the reset button quite a lot.

i dont know if i can trust the unit enough to deploy in the field but we do have a spare that seems to work fine but it would be nice to have the other one operating correctly.

is this a firmware issue and if so can it be upgraded?

Any help is much appreciated.

Cheers.

Hi @katesfb,

If you have an Atmel ICE, you can try to burn the boatloader again.

Best regards,
Jan

Hi Jan,
Thanks for the reply.

Is it possible to flash new firmware to the SAM21 on the Autonomo using BOSSA. I’ve used BOSSA successfully to flash micropython to an Arduino M0 Pro board (SAMD21G18).

Any help is much appreciated.

Cheers.

Hi,

I have no experience with BOSSA but it should be possible.
We use the SAMD21J18 or SAMD21G18 on our boards.
It should also be possible to use our board with the default Arduino M0/Zero bootloader.

Best regards,
Jan