[elektro] ATmega2560 vs. 644/328 bootloader
Szima Gábor
sygma at tesla.hu
Fri Aug 9 09:49:20 CEST 2013
On Thu, 8 Aug 2013, Arnold Fuzesi wrote:
> 128 remlett..
128 word, 256 byte
> Fesz/orajel?
5V megvan, 16 MHz full-swing, BODE. Kód rendesen fut, ha közvetlenül azt
programozom.
Itt tartok:
boot_page_fill (0, 0x0000); // 0x00 -> 0. page 0. word
boot_page_erase (0); // 0. page
boot_spm_busy_wait ();
boot_page_write (0); // 0. page
boot_spm_busy_wait ();
boot_rww_enable ();
if ( pgm_read_byte_far (0) != 0xFF ) {
// nem fut le, tehát 0xFF
}
SPI-n visszaolvasva is ugyanez, csak a boot kód látszik, többi 0xFF.
-Sygma
More information about the Elektro
mailing list