Skip to main content
Bicer
Associate II
Dec 3, 2021 9:04 PM UTC
Question

stm32l476rg flash read-write

I want to use flash as eeprom by using hal library on stm32l476rg.

How can I create the flash_read() and flash_write() functions? (functions will read and write data of type uint32_t)

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
Dec 4, 2021 7:18 AM UTC

Pretty sure there are notes in the library source and examples..

STM32Cube_FW_L4_V1.14.0\Projects\NUCLEO-L476RG\Examples\FLASH\FLASH_EraseProgram\Src\main.c

Reads like normal memory within the processors address space

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..