Program Flash and NV data

cancel
Showing results for 
Search instead for 
Did you mean: 

Program Flash and NV data

Jump to solution
444 Views
enzino
Contributor II

Hello,

I have a question about program flash. I'm using K60 with 1024KB of flash memory.

I want to use a little part of this to store some data.

No problem to write and read the flash, my problem is that when I reload my program with debug (or run) command, in internal flash configuration I find the entire flash memory erased.

I try to reserve a portion of flash (in build options) creating a new area from 0xF8000 (the last sector) but it's the same.

How can I do to avoid that my data is overwritten? Is it possible?

Thank you

Labels (1)
Tags (3)
0 Kudos
1 Solution
51 Views
BlackNight
NXP Employee
NXP Employee

Hello,

Yes, it is possible.

Are you using P&E Multilink/CodeWarrior?

If so, then this might help:

http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/

Depending on the amount of Flash you want to preserve, using an Eclipse target task might be a faster solution.

Hope this helps,

Erich

View solution in original post

0 Kudos
2 Replies
52 Views
BlackNight
NXP Employee
NXP Employee

Hello,

Yes, it is possible.

Are you using P&E Multilink/CodeWarrior?

If so, then this might help:

http://mcuoneclipse.com/2012/04/27/programming-part-of-flash/

Depending on the amount of Flash you want to preserve, using an Eclipse target task might be a faster solution.

Hope this helps,

Erich

View solution in original post

0 Kudos
51 Views
enzino
Contributor II

Thank you!

I was not able to find that damned option! :smileyhappy:

0 Kudos