flex memory in debug

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

flex memory in debug

1,054 Views
kristies1
Contributor II

I have flex memory in K60 partitioned as eeprom, and would like the dflash to not be erased when debugging with CW10.2.

Currently every time I start a new debug session the dflash is erased, and losing all eeprom contents.

How can I keep CW from erasing the dflash?

Kristie

3 Replies

516 Views
BlackNight
NXP Employee
NXP Employee

Beside of using a Target Task, you can use a setting to preserve regions of your flash:

Programming part of flash | MCU on Eclipse

Hope this helps,

Erich

517 Views
kristies1
Contributor II

Thanks for the reply.  I had range error problems with the non-volatile memory preservation, but that page helped.

0 Kudos

517 Views
pbanta
Contributor IV

Hi Kristie,

I use Target Tasks to accomplish this on my K70FX project.  You can create a Target Task and associate it with a debug configuration.  It gives you total control over what is erased/programmed to a sector boundary.  You can find info about Target Tasks here:

CodeWarrior Tool Tip #2: Programming flash memory is easy « The Embedded Beat: Freescale B...

Good luck.

Paul

0 Kudos