storing the const data at particular addr in flash memory

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

storing the const data at particular addr in flash memory

710件の閲覧回数
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 返信

697件の閲覧回数
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 件の賞賛
返信