cancel
Showing results for 
Search instead for 
Did you mean: 

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

PRedd.111
Associate III

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??

1 ACCEPTED SOLUTION

Accepted Solutions
Piranha
Chief II

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.

View solution in original post

1 REPLY 1
Piranha
Chief II

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.