How to reserve a sector in the Flash code ?

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

How to reserve a sector in the Flash code ?

561件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Peter on Wed May 25 03:24:22 MST 2011
Hello,

I use a LPC1754 (128K Flash) and I want to store data (only few bytes) in permanent memory. I used the SECTOR 15 (60K-64K Flash region) and it works fine with IAP commands. But now my program is code is higher than 60K (still growing), I don't want to put my data in higher SECTOR because they are 32K sized.

How to explain to my LPCXpresso linker to place program code in 2 regions : 0-60K + 64K-128K ? leaving the region 60-64K free for my data.

I read a lot of similar request on this forum, but I didn't find a satisfying answer. I understood that I must modify my linker script, but I don't know what.

Please, can someone give a script example to do such a flash reservation ?

thanks,
Peter
0 件の賞賛
返信
0 返答(返信)