Next: , Previous: , Up: Debugging   [Contents][Index]


5.2 Examining memory

One often wants to examine the memory on the target device. The command read-mem does this.

> reset-bdm
> sync
> read-mem 0x00FE0000 0x37
00FE0000: ... .... .....b..  1B 03 00 20 00 AA FA FE  00 0A 1A FD BC 62 98 00
00FE0010: ...0@... ...@.` .  02 C2 0C 30 40 98 00 02  C0 0C 10 40 BD 60 20 06
00FE0020: .`.`.'.. `"w.b...  9D 60 A0 60 90 27 10 F0  60 22 77 A4 62 CC BC C4
00FE0030: b......            62 98 00 02 C0 94 10

Figure 5.1: Examining the contents of memory on the target after starting a debug session

In the example of Figure 5.1 the user has requested to see the contents of the 55 bytes starting at hexadecimal address 00FE0000. Numeric arguments such as addresses and quantities may be specified either in decimal notation, or as hexadecimal when prefixed with ‘0x’. For example the notations ‘55’ and ‘0x37’ both have the same meaning.