Program Flash and NV data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Program Flash and NV data

ソリューションへジャンプ
1,817件の閲覧回数
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,424件の閲覧回数
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,425件の閲覧回数
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,424件の閲覧回数
enzino
Contributor II

Thank you!

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

0 件の賞賛
返信