![Phytec nanoModul-164 Скачать руководство пользователя страница 79](http://html.mh-extra.com/html/phytec/nanomodul-164/nanomodul-164_quick-start-instructions_1554144079.webp)
Debugging
PHYTEC Meßtechnik GmbH 2003 L-379e_4
75
•
To view the Output window, if not already visible, select
View|Output window.
•
At the Output window prompt,
type in g,main and press
Enter (notice the comma !) to run the CPU to the start of the ‘main’
function. The program counter will advance to ‘main’. Note you
can press the up arrow key to get the history of keys typed in the
Output Window.
•
You can single step using the StepInto
icon. You are now
ready to use the debugger window to step through code, set
breakpoints, and issue the Go command to start program execution.
You can examine special function registers, memory locations, and
register values, etc.
4.5
Using the Keil µVision2 Debug Features
4.5.1
Breakpoints
•
Click on a memory location such as line number 42 first.x++. A
colored bar appears marking this position.
•
You can click on Run to Curser line
to reach this point
or you can double-click and set a breakpoint. Set a breakpoint
here with the double-click. The red mark on the left-hand of
the selected line indicates the breakpoint.
•
Click on RUN
and the program will run and stop at the
breakpoint.
•
Double click on the breakpoint to remove it.
4.5.2
In Line Assembler
•
Open the Watch & Call Stack Windows with a click on this
icon: You could see the actual values of the variable
bigcount in the Watch window.
•
Double click in line 48 to set a breakpoint.
•
Click on RUN a few times. This will continue the endless loop
until program execution stops at the breakpoint. See how the
value of bigcount changes with each RUN.
Содержание nanoModul-164
Страница 48: ...nanoMODUL 164 QuickStart Instructions 44 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 72: ...nanoMODUL 164 QuickStart Instructions 68 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 84: ...nanoMODUL 164 QuickStart Instructions 80 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 92: ...nanoMODUL 164 QuickStart Instructions 88 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 96: ...Published by PHYTEC Meßtechnik GmbH 2003 Ordering No L 379e_4 Printed in Germany ...