I am trying to build a program that can save and retrieve data from the FLASH.
I am using the Atmel eval board and their SAM-ICE with IAR’s Jumpstart kit.
When I run in Debug (RAM) I can read and write the FLASH area (addr 0x101000). I can see the data change and verify from one run to the next that it is persistent.
When I run in Release (FLASH) I can single step through my code and it appears to be working but when I kick it loose with no single-stepping or breakpoints it does not work.
Are there any tricks or special things I need to do when running out of FLASH and trying to read/write FLASH?