I am trying to use Percepio trace lib for FreeRTOS in Snapshot recorder mode. After compilation and running it on my discovery board I need to somehow dump entire RAM to file. I've started ST-LINK utility but I am puzzled on how to dump entire RAM. Could some give hint on that matter?
You can find the memory layout on page 71 of the STM32F407xx Rev8 datasheet.
As ejohnso49 pointed out the SRAM of this chip is not contiguous. So you need address them twice (green and yellow area in the picture) to read out the whole data.
In STM32 ST-LINK Utility connect to device and enter 0x20000000 for address (start of SRAM, first section). For size enter 0x20000 0x30000 (128kB 192kB).
Now you can see the contents of the RAM in the window. For dumping the current view either click on the save icon or in the file menu on Save file as.
Do this also for the other CCM RAM section if you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With