Skip to main content
Fixed grammar and added code formatting
Source Link
Greenonline
  • 3.2k
  • 7
  • 37
  • 49

After try some trial and error i buildI have built a simple binary to upload into the Leonardo bootloader. This binary openopens serial inat 1200 baud then closecloses it, and wrapwraps the avrdude binary to write .hex.hex into flash.

In arduinoArduino core CDC.cppCDC.cpp we can see that CDC not only waiting baudrate 1200, but CDC checkchecking DTR value. If DTR gogoes high, CDC cancelcancels to jump into the bootloader. That's why i clearI cleared DTR value. I trytried this in ubuntuUbuntu 16.04.

https://github.com/vanbwodonk/leonardoUploader

Only use this simple command.:

leonardoUploader /dev/ttyACM0 Blink.ino.hex

leonardoUploader /dev/ttyACM0 Blink.ino.hex

I hope it helphelps other people searching for this. Sorry for my bad english.

After try some trial and error i build a simple binary to upload into Leonardo bootloader. This binary open serial in 1200 baud then close it, and wrap avrdude binary to write .hex into flash.

In arduino core CDC.cpp we can see that CDC not only waiting baudrate 1200, but CDC check DTR value. If DTR go high, CDC cancel to jump into bootloader. That's why i clear DTR value. I try this in ubuntu 16.04.

https://github.com/vanbwodonk/leonardoUploader

Only use this simple command.

leonardoUploader /dev/ttyACM0 Blink.ino.hex

I hope it help other people searching for this. Sorry for my bad english.

After try some trial and error I have built a simple binary to upload into the Leonardo bootloader. This binary opens serial at 1200 baud then closes it, and wraps the avrdude binary to write .hex into flash.

In Arduino core CDC.cpp we can see that CDC not only waiting baudrate 1200, but CDC checking DTR value. If DTR goes high, CDC cancels to jump into the bootloader. That's why I cleared DTR value. I tried this in Ubuntu 16.04.

https://github.com/vanbwodonk/leonardoUploader

Only use this simple command:

leonardoUploader /dev/ttyACM0 Blink.ino.hex

I hope it helps other people searching for this.

Source Link

After try some trial and error i build a simple binary to upload into Leonardo bootloader. This binary open serial in 1200 baud then close it, and wrap avrdude binary to write .hex into flash.

In arduino core CDC.cpp we can see that CDC not only waiting baudrate 1200, but CDC check DTR value. If DTR go high, CDC cancel to jump into bootloader. That's why i clear DTR value. I try this in ubuntu 16.04.

https://github.com/vanbwodonk/leonardoUploader

Only use this simple command.

leonardoUploader /dev/ttyACM0 Blink.ino.hex

I hope it help other people searching for this. Sorry for my bad english.