circuitcellar.com
Magazine Support   Digital Library   Products & Services   Suppliers Directory 
 
 





 

February 2006, Issue 187

Robust Bootloader for FPGAs


by Colin O'Flynn


AVR BOOTLOADING

Loading data from the ATmega88 is fairly straightforward. In fact, the ATmega88 datasheet includes an example of how to write to the application flash memory from the bootloader section, which is copied almost exactly in the tinyloader. The ATmega88 has a flash memory setup arranged in pages, just like the AT45DB041B. Each page in the ATmega88, however, is only 64 bytes instead of 264 bytes. This means it’s a simple procedure of copying a byte from the AT45DB041B to the ATmega88’s flash page buffer until the page is full, and then writing it.