STM32 Tutorial #71 – Using Built-in Flash for data
1.5K views on YouTube
In this video we will cover the possibility of using STM32 built-in Flash memory for data storage. It is questionable if you should ever do this but it’s an option.
NOTICE: I made a couple of mistakes in this video. Fixed here: https://www.youtube.com/watch?v=PwpEMPpylro
STM32World video on bootloader (linker scripts): https://www.youtube.com/watch?v=wirNEpE6Dd4
STM32World video on pointers and arrays: https://www.youtube.com/watch?v=FaooNo83jNQ
STM32World wiki: https://stm32world.com/wiki
Flash vs. EEPROM: https://stm32world.com/wiki/Flash_vs._EEPROM
#STM32 #STM32CubeMX #STM32CubeIDE #Flash #STM32World
00:00 Intro
01:27 What is STM32 flash memory?
02:35 Flash vs. EEPROM – what’s the difference?
04:46 STM32 Flash Layout and where to find the documentation
09:32 The test setup Jolt Connect and STM32L432KC
10:34 The STM32CubeMX setup
11:50 The code starting with the linker script
15:45 Mass erase to see “clean state”
17:40 Address defines in code
21:04 Calculating the page number
23:32 Using HAL_Flash_Program
28:15 Flash memory endurance – limited number of erase