Hi!
Can I rewrite memory flash while the program is running?
Thanks
Flash
Re: Flash
Hi Angel,
Yes, but there's a catch. The write instructions must be located in the bootloader section or otherwise the write will fail. The bootloader section is up to 8K, with the game loader taking 4K. Maybe you could put self-flash code in that 4K below the bootloader. That would need to be tested.
Get a look at this document, it explains the "self-flashing" on AVRs: http://www.atmel.com/dyn/resources/prod ... oc1644.pdf.
If you intend to use self flashing from games, be aware the the emulator does not support this right now.
-Uze
Yes, but there's a catch. The write instructions must be located in the bootloader section or otherwise the write will fail. The bootloader section is up to 8K, with the game loader taking 4K. Maybe you could put self-flash code in that 4K below the bootloader. That would need to be tested.
Get a look at this document, it explains the "self-flashing" on AVRs: http://www.atmel.com/dyn/resources/prod ... oc1644.pdf.
If you intend to use self flashing from games, be aware the the emulator does not support this right now.
-Uze