Other Parts Discussed in Thread: MSP430FR2355
Hello team,
I want to store a value(type 'uint8_t') permanently in FRAM at address 0x001800 using DFWP or PFWP. I tried by using #pragma persistent() but it is storing at 0x008000 location also after reset it is becoming 00 at same address. How can i store at particular location for msp430fr2355. below is the code i tried, can anyone help me in this issue.
#pragma PERSISTENT(gu8LogicalId) volatile uint8_t gu8LogicalId = 0; void main() { // Add the variable Port_event in FRAM to record the button event // Write protection starts from the beginning of Program FRAM + 1024 bytes // Code start address + 1024 bytes, Linker command file should be modified SYSCFG0 = FRWPPW | FRWPOA0 | DFWP | PFWP; // Configure 1024 bytes for //FRAM write gu8LogicalId = 1; SYSCFG0 = FRWPPW | DFWP | PFWP; // Program FRAM write protected // (not writable) }