Skip to main content
Jungle
Associate
March 1, 2019
Question

How to work with F4xx flash using LL?

  • March 1, 2019
  • 2 replies
  • 798 views

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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 1, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
March 2, 2019

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.