lpcware

storing the const data at particular addr in flash memory

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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

Outcomes