mario targa

DataFlash erased in debug

Discussion created by mario targa on Dec 29, 2009
Latest reply on Jan 4, 2010 by Tom Thompson


I would like to know if it is possible to avoid CW erasing the whole Memory Flash when downloading.


I need to use the internal data flash to save some parameters changed by the final user, so I have defined the bean IntFlash as Data_Flash, with Destructive write.

I'm using a 56f8365, and my parameters start from address 0x6000, with length 0x1000.

CW ver. 8.2.3


I'm able to write these parameters, and their values are kept if I switch off, but when I download a new software version with CW, the flash memory is entirely erased from 0x4000 to 0x7fff and I loose the saved values.


I have tried to change the length of x_internal_ROM from 0x4000 to 0x2000 inside ldm_pROM_xRAM.cmd, keeping ORIGIN at 0x4000, but without results.


Something to suggest ?










Message Edited by killermax on 2009-12-29 12:50 PM