Skip to main content
PRedd.111
Associate III
October 16, 2019
Solved

Is there a HAL API to read and write flash memory (user flash) ?

I am trying to find a few KB of permanent storage on the STM32F303 part.

The TRM mentions the flash map and the HAL seems to have some API's. However, I am unable to find any decent material on storing user data on flash.

Is there any good example of this? Also, Is there a HAL API to get the UID of the part??

This topic has been closed for replies.
Piranha
PiranhaBest answer
Principal III
October 16, 2019

HAL API for getting UID is in this file:

https://github.com/STMicroelectronics/STM32CubeF4/blob/master/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h

For storing non-volatile user data read AN3969 and take a look at STSW-STM32066.

1 reply

Piranha
PiranhaBest answer
Principal III
October 16, 2019

HAL API for getting UID is in this file:

https://github.com/STMicroelectronics/STM32CubeF4/blob/master/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h

For storing non-volatile user data read AN3969 and take a look at STSW-STM32066.