storing the const data at particular addr in flash memory

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

storing the const data at particular addr in flash memory

166 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by abhilash.bidari on Tue Mar 06 23:20:41 MST 2012
Hello,

I want to store one const data at particular address in flash memeory.
How can i achive it using #pragma.

Eg

const unsigned int value = 1000;

I want to keep the above variable "value" at a addr  0x0004 0200.

Please let me know.

Whether the following method is currect or not

#prgma section 0x0004 0200
const unsigned int value = 1000;
#pragma section
0 项奖励
1 回复

153 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by killua on Wed Mar 07 10:42:40 MST 2012
http://knowledgebase.nxp.com/showthread.php?p=12235#post12235
0 项奖励