This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2311: MSP430FR2311

Part Number: MSP430FR2311


Tool/software:

I need to write some values on flash and later access it after power reset. Currently I am using this code:

#pragma PERSISTENT(x)
static volatile uint8_t x = 10u;

SYSCFG0 = FRWPPW;
x = y;
SYSCFG0 = FRWPPW | PFWP;

Is there some direct function to write to flash or it has to be done this way. The data is not written as I checked after reset it still holds the default value.

**Attention** This is a public forum