Hi.
We are using Keil uV4 IDE and ULINK2 (and AT91SAM7X512 MCU). We have the following situation/configuration: - Our data is located at the end of the FLASH memory. - Our firmware is located at the beginning of the FLASH memory.
We have problem debugging this because: While entering debug session/mode of uV4, Keil always seems to erase whats already in flash. Also the data at the end of flash (previously downloaded by SAM-BA), which the firmware uses!
We'll appreciate comments to how to solve this problem.
Regards Terje Bøhler
In the Debug Settings - Flash Download pane make sure to have selected "Erase Sectors" not "Erase Full Chip"
Shrink the Target memory definition to reflect the area you have carved out for you calibration/configuration data.
Review the code for the Flash programming algorithm applet, recode/modify if required.
Thanks, but I cannot find such "Flash Download" setting: In "Option for target XXX" there is a "Debug" pane available. But no such "Flash Download pane" exists. And while in/during Debug Session, the "Debug" pane (from the top menu) shows a "Debug Settings..." option. This lead us to a "ARM Target Driver Setup" menu, but no "Flash Download pane" exists. I'll appreciate a clarification on this issue.
Best regards Terje Bøhler
Thank you for valuable info Pier. Best regards Terje Bøhler