Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STM32F407 memory layout

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?

like image 510
user505160 Avatar asked Jan 08 '23 10:01

user505160


1 Answers

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.

enter image description here

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.

like image 174
veeman Avatar answered Jan 25 '23 14:01

veeman