How to flash some pages without erasing others ?

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

Parents
  • 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.

Reply
  • 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.

Children
More questions in this forum