AnsweredAssumed Answered

How to save app data in non-voltage memory in STM32L4?

Question asked by hmicomm on Jul 1, 2016
Latest reply on Jul 2, 2016 by baird.hal.001
Hi Experts,

We would like to save some small amount of application data - about 100 bytes somewhere on the STM32L486 chip that will survive power down / power up cycle.

Before, when we were using STM32L1, I had a very simple code that was writing to and reading from the EEPROM:

// to save data:
     FLASH_UnlockData();
     uint32
          *pu32Nvm = (uint32*) ( 0x08080000 );
     pu32Nvm[0] = ... some data ...;
     pu32Nvm[1] = ... some data ...;
     ...
     FLASH_LockData();

// to read data: just read starting from 0x08080000.

Is there a similar equivalent in the STM32L4 / Cube?

Outcomes