Tool/software:
#pragma NOINIT(damping)
unsigned char damping;
#pragma PERSISTENT(factor)
float factor=1;
Any change to damping does not survive a power off cycle looking at the lnk_msp430fr5994.cmd file it is set to RAM so moving this to the read write section with the persistent which also does not work I cannot change either variable.
These are always 255 or the initialised value. Unless stored in RAM as per the original .cmd file.
GROUP(READ_WRITE_MEMORY)
{
.TI.persistent : {} /* For #pragma persistent */
.TI.noinit : {} /* For #pragma noinit */
.cio : {} /* C I/O Buffer */
.sysmem : {} /* Dynamic memory allocation area */
} PALIGN(0x0400), RUN_START(fram_rw_start)
GROUP(IPENCAPSULATED_MEMORY)
{
I have tried disabling the memory protection unit MPU and tried putting above into FRAM2
But cannot change the values once initialised.
I am probably missing something very obvious but have tried everything I can think of.
any help most gratefully received