Tool/software: Code Composer Studio
We're using CCS version 7.2 for our MSP430FR5994 project. We have some configuration paramters in information memory (INFOA). Since we want to make sure they don't move from build to build, we are specifically calling out the location using the LOCATION pragma like so:
#pragma LOCATION(configItem1, 0x1980) static uint32_t configItem1 = 0;
I don't remember if there is a specific setting to do this, but the variables in INFOA do not get placed in the hex output file for the build. The variables in INFOA then get left alone when loading new firmware on the boards, which is what we want most of the time. However, I want to do a production hex output that sets the some of the variables to a specific non-zero value; there are certain variables that ought to be set to certain values at this point to make the boards "ready to go". I can't figure out how to do this and I'm looking for help.
I tried setting the variable to a specific value, like the following:
#pragma LOCATION(configItem1, 0x1980) static uint32_t configItem1 = 300;
but the variable did not end up in the hex file. Since I know the memory location and the values, I could prepend specific data to the hex output, such as
@1980 2C 01 00 00
which would set my variable configItem1 to 300. Is there a post-build step available with CCS to prepend data to the hex output? Or is there another way to add set data like this to the hex output?