
Managing Data in Memory
7-8
Displaying memory contents while you’re debugging C
If you’re debugging C code in auto mode, you won’t see a MEMORY window—
the debugger doesn’t show the MEMORY window in the C-only display.
However, there are several ways to display memory in this situation.
Hint: If you want to use the
contents of an address as a parameter, be sure
to prefix the address with the C indirection operator (*).
-
If you have only a temporary interest in the contents of a specific memory
location, you can use the ? command to display the value at this address.
For example, if you want to know the contents of data memory location 26
(hex), you could enter:
? *0x26
The debugger displays the memory value in the display area of the
COMMAND window.
-
If you want the opportunity to observe a specific memory location over a
longer period of time, you can display it in a WATCH window. Use the WA
command to do this:
wa *0x26
-
You can also use the DISP command to display memory contents. The
DISP window shows memory in an array format with the specified address
as “member” [0]. In this situation, you can also use casting to display
memory contents in a different numeric format:
disp *(float *)0x26
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...