Program Flash and NV data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Program Flash and NV data

跳至解决方案
1,811 次查看
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

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,418 次查看
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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,419 次查看
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

0 项奖励
回复
1,418 次查看
enzino
Contributor II

Thank you!

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

0 项奖励
回复