I am trying to connect to an Arduino Leonardo from the command line using:
./avrdude -patmega32u4 -C../etc/avrdude.conf -cavr109 -P/dev/cu.usbmodem1421
I get a series of the following errors:
avrdude: butterfly_recv(): programmer is not responding
This seems to indicate that the board is not kicking into bootloader mode. I've tried to force bootloader mode by double tapping the reset button during upload, but to no avail.
How can I fix this?
As per the page Arduino Leonardo upload from Makefile I need to trigger bootloader mode by making a serial connection with 1200 bit/s and then immediately disconnecting.
The reason I wasn't able to make this work by tapping the reset button is that the Leonardo often grabs a new serial port name when it resets, so I would enter bootloader successfully, but when I went to flash, the port in my command line was no longer valid.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With