2019-03-01 09:35 AM
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.
2019-03-01 11:59 AM
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
2019-03-01 04:34 PM
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.