cancel
Showing results for 
Search instead for 
Did you mean: 

How to work with F4xx flash using LL?

Jungle
Associate II

Could anyone provide me with (or point me to) example of reading/writing F4xx (specifically F407VGT6) flash using LL? I was unable to find code samples in STM32CubeF4 v1.24.0. Maybe just missed.

2 REPLIES 2

Reading the flash can be achieved with pointers, memcpy(), etc as it is mapped within the addressable space for the processor.

There's not a LL Flash driver in 1.23

You might have to port something, not that complicated, I've done it in assembler..

STM32Cube_FW_F4_V1.23.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_flash.c

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Piranha
Chief II

I often find HAL code confusing and also wrong. When I implemented erase/write flash for F7, I did it mostly reading Reference Manual. RM0090 section 3.6 has very clearly described sequences for all operations with flash memory. Basically You only need to translate those sequences from English to C.