AnsweredAssumed Answered

Save app data in STM32L4

Question asked by Daniel Tarrago on Mar 30, 2017

Hello,

I would like to save application data into flash area in order to be preserved, so data should be there when removing voltage and applying voltage to device again.

Which is the best option for this purpose? How can I specify my app area in flash and which is the best area to save data in?

(I have taken a look to example in '...STM32Cube_FW_L4_V1.7.0\Projects\STM32L476RG-Nucleo\Examples\FLASH\FLASH_WriteProtection'. Maybe this is an option, by using HAL_FLASH_Program to write and (*(__IO uint32_t*)Address) to read?)

 

Best regards.

Outcomes