2022-11-03 07:51 AM
How do i find an extensive example for read/write value in flash of STM32H7, for store of data to keep after powerloss or reboot? Thanks
Solved! Go to Solution.
2022-11-07 05:51 AM
You can find this in the STM32H7 firmware, which not only contains the libraries, but also examples, e.g. FLASH_EraseProgram, which is included there for each NUCLEO, DISCOVERY or EVAL board.
The reference manuals also describe in detail how to write in the flash.
Does it answer your question?
Regards
/Peter
2022-11-07 05:51 AM
You can find this in the STM32H7 firmware, which not only contains the libraries, but also examples, e.g. FLASH_EraseProgram, which is included there for each NUCLEO, DISCOVERY or EVAL board.
The reference manuals also describe in detail how to write in the flash.
Does it answer your question?
Regards
/Peter
2022-11-07 06:33 AM
I'm not sure there's "extensive" examples of anything, there are examples demonstrating the functionality of the underlying API functions, and you get to expand and extend those as needed for a specific use-case and application.
There's also an "EEPROM Emulation" library, but honestly I'd avoid that, and understand the flash management at a sector (page) level erase and write.
...\STM32Cube\Repository\STM32Cube_FW_H7_V1.10.0\Projects\NUCLEO-H743ZI\Examples\FLASH\FLASH_EraseProgram
2022-11-07 01:16 PM
Thank you, i'll check the folder you indicated me
2022-11-07 01:16 PM
Yes, i'll look forward to it.