zevero / avr_boot

Arduino Bootloader to Flash from SD Card
BSD 2-Clause "Simplified" License
123 stars 38 forks source link

avr_boot

SD card bootloader for atmega processors

As easy as it can get! I spent days with this. Hopefully you wont!

Boards Manager installation

avr_boot is integrated in Arduino IDE version 1.6.4 or greater!!! See here for instructions.

Manual installation

This is with avr-gcc and avrdude under linux with an Atmega1284p and AVRISP mkII! Adaption to your case (WinAvr, another Atmega, another flash-tool) will not be complicated...

Put your sketch on SD card

Bootloader sizes

Compiled under linux for atmega328p / atmega1284p

Tested successfully on

Serial support - Help wanted

it should not be impossible to fit a normal serial bootloader (with automatic baudrate detection?) into the remaining bytes ... help is appreciated!

KISS

If you wish you can add CRC Check or versioning with EEPROM but I prefere to keep things simple. avr_boot will reflash your FIRMWARE.BIN as long as it is present. Is this a problem? No! It happens nearly instantly and only differing bytes are flashed really. You may consider putting your logic into your application and perform a CRC Check after the fact to inform the user and delete or rename FIRMWARE.BIN

Thanks to

Alternatives

... call me stupid, but I passed several days debugging those - without success ...