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