Other Parts Discussed in Thread: MSP430F1232
Hello,
I would like to load some pre-defined data in the info flash of a MSP430F1232 when flashing my code. This data is never used directly in the C source code, but it's loaded into a variable after startup using a memcopy. Then the user may change something and with the shutdown, the values are written back to info flash section.
With IAR kickstart, the solution is tricky, but possible if you know how to do this :
#pragma object_attribute=__root
#pragma location="INFOB"
const static dataSet dataSetDefault = {
14000,
5,
1
};
All the work is done by the 2 pragma's. The attribute __root will advise the compile not to optimize it away, because it is never referenced in the source code. The location pragma restricts address to INFOB section of the flash. That works fine with IAR tools.
Now I want to port this project to CCS 5.5.0... but so far I did not find any solution that works. How can I get my data structure automatically flashed in the INFO section of the device ?
Thanks in advance,
BR,
Mark