This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug Command to dump all register contents

Hi,

I am working on a STM32F407 discovery board. One of the needs of my application is to keep close track of the register contents. Hence i wish to be able to dump these contents into a file for verification purposes. I also wish to be able to dump the entire memory space .

I have been able to use the LOG debug command to dump the contents of my registers as follows :

LOG > a.dumplog
d r1
d main
...
LOG OFF

Is it possible to configure the display results from say ;

d r1
0x00000000 E8 12 00 20 B9 03 00 08 - C1 03 00 08 C3 03 00 08 ... ............
0x00000010 C5 03 00 08 C7 03 00 08 - C9 03 00 08 00 00 00 00 ................
0x00000020 00 00 00 00 00 00 00 00 - 00 00 00 00 A1 02 00 08 ................
0x00000030 CD 03 00 08 00 00 00 00 - 41 03 00 08 A5 03 00 08 ........A.......
0x00000040 D3 03 00 08 D3 03 00 08 - D3 03 00 08 D3 03 00 08 ................
0x00000050 D3 03 00 08 D3 03 00 08 - D3 03 00 08 D3 03 00 08 ................
0x00000060 D3 03 00 08 D3 03 00 08 - D3 03 00 08 D3 03 00 08 ................
0x00000070 D3 03 00 08 D3 03 00 08 - D3 03 00 08 D3 03 00 08 ................

to a shorter cleaner

d r1
0x00000000 E8 12 00 20 B9 03 00 08 - C1 03 00 08 C3 03 00 08 ... ............

Also how to address the entire RAM address space and dump it as well ?
And finally how do i format my log file so that it is not one big dump file but i can write some print statements to prettify the output to read easily .

0