App for verifying the flash and ram ranges
Open source flash program for STM32 using the ST serial bootloader
Brought to you by:
tormod
I fleshed out the app for verifying the flash and ram ranges. Intended to be be useful if you want to add a new microcontroller. Runs stm32flash on your tty_device and checks the flash and ram ranges in dev_table.c are correct. Linux only though. Includes stm32flash master as a submodule. Makefile in main directory. Commandline options to either use system stm32flash or a custom one and optional output to a debug file. At some point I should convert it to plain C. Currently in C++
https://sourceforge.net/projects/stm32flash-ram-rom-test/
Anonymous
According to the ram rom test app, the start of ram for id 0x413, "STM32F40xxx/41xxx" should be 0x20002000 not 0x20003000. in dev_table.c. Tested on stm32F405RGT6
Can test with command
stm32flash -r /dev/null -S 0x20002000:4 /dev/ttyUSB0
succeeds on my part, while
stm32flash -r /dev/null -S 0x20001ffc:4 /dev/ttyUSB0
fails
suggesting that 0x20002000 is start of user ram in bootloader
Depends of bootloader revision. Check AN2606 26.1.1 and 26.2.1.
Last edit: Renaud Fivet 2021-09-29