cancel
Showing results for 
Search instead for 
Did you mean: 

Utility to Dump the Flash contents to a file

bnguy.1
Associate III
 
2 REPLIES 2
bnguy.1
Associate III

Have an St-Link-V3 programmer connected via SWD... and I'm using an unused sector for saving data collected.

However, neither Stm32 CUbe Programmer nor St-Link Utility seems to let me dump more than just the active window worth of data.

Is there any St or 3rd party tool that I can read sector(s) worth of data to a file? I don't have any security option set when originally flashed.

Ideally, I would like to put the board in bootloader mode, and read the flash via SERIAL rather than SWD, but at this point , I can use whatever works!

Uwe Bonnes
Principal II

Start any programm (e.g. stlink gdb server, openocd, pyocd, bl*ckm*g*ic and more) that starts a gdb server, connect to gdb and dump the binary. Most of this programm also have a mode to read content direct, e.g with bl*ckm*g*x hosted "bl*ckm*g*c -S 0x80000 <file>" will read 512 kB starting at 0x08000000.