I have the following code: (I have been here before and even copied from other working code but to no avail???)
#pragma LOCATION (pwmDiv, 0x1800);
#pragma PERSISTENT(pwmDiv);
__vo uint16_t pwmDiv = 50;
#pragma LOCATION (dutyCycle, 0x1802);
#pragma PERSISTENT(dutyCycle);
__vo uint16_t dutyCycle = 31;
#pragma LOCATION (dac_value, 0x1804);
#pragma PERSISTENT(dac_value);
__vo uint16_t dac_value = 2750;
#pragma DATA_SECTION(fw_version, ".info");
const char fw_version[] = {"SWSF-SS_A"};
My .cmd file shows INFO at 0x1800 and
.info : type = NOINIT{} > INFO
The first three variables above are modifiable from user input on running code while fw_version is not. I am having 2 problems:
1. After successful writes to the space I reflash code to see if it is retained and it reverts back to the default. I have tried : Erase and download necessary segments only; Replace written memory locations..... ; and Erase main memory only under the Flash Settings in CCS...What should I do??
2. When I look at memory browser in the CCS debugger I see my variable names for the modifiable ones but no where can I find NOR search for fw_version?? It doesn't show up
Can someone please answer these two questions?
Thanks