DataFlash erased in debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DataFlash erased in debug

1,070 Views
killermax
Contributor I

Hello,

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 ?

 

Thanks 

Mario

 

 

 

 

 

 

Message Edited by killermax on 2009-12-29 12:50 PM
Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

398 Views
J2MEJediMaster
Specialist I

Try checking out FAQ-28898. While it covers ColdFire parts, some of the techniques may be applicable to what you are trying to do.

 

---Tom

0 Kudos
Reply