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.

MSP430FR50431: Writing to FRAM is not successful

Guru 12235 points
Part Number: MSP430FR50431

Hi,

I'm trying to write a value to a location in FRAM, but the value is not written.
The MSP430 DriverLib 2.91.13.01 sample uses the FRAMCtl_A_fillMemory32 API to write a value to a specific FRAM address.

Modules used and settings
・MCLK: 8MHz, SMCLK: 1MHz, ACLK: 32KHz
・Use FRCTL_A
・Set state to 6 in User Wait State Mode, WPROT=0, no protection/access permitted state
・FRPWR is 1 and power is enabled during Active mode.
・LOCKLPM5 of PMM is 0 and unlocked


The value is not written even if the CLK is dropped to 1MHz and the state is maximized or Auto wait is performed. Do you have any advice for me?

Thanks,

Eevee

  • You probably need to configure the MPU. 0xCABA would normally be in (above) the code area, so the (default) CCS mapping would make it read-only.

    Perhaps the simplest change is to un-check "Build Settings->General->MPU[tab]->Enable MPU". A more useful change would perhaps be to change FRAM_TEST_START to a 128-element array (so the data is Persistent rather than the pointer).

    [Edit: Fixed array size.]

**Attention** This is a public forum