storing the const data at particular addr in flash memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

storing the const data at particular addr in flash memory

147 Views
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 Kudos
1 Reply

134 Views
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 Kudos