Hardware Reference
In-Depth Information
Figure 3.36 Initial CodeWarrior debugger response screen under P&E Multilink debugger
Register window. This window displays the value of each CPU register. The value
of each CPU register will be updated after the MCU stops at each breakpoint.
Procedure window. This window displays all the procedures defined in the program.
Memory window. This window displays the contents of every memory location
in the hardware. When the program contains one or multiple arrays, the user will
need to use this window to examine the values of arrays.
E XAMPLE OF A C ODE W ARRIOR D EBUG S ESSION
The user can resize the seven windows within the CodeWarrior debugger screen or even
close some of them. We will get rid of the command window and resize the source window to
display the whole program. A debug session may be similar to the following description:
Single step a few instructions to find out whether the program variables are initialized
correctly.
Click on the Step over button once. The value of sum is changed to 0 in the data
window. This is correct.
Click on the Step over button one more time. The value of icnt is changed to 20.
This is also correct.
Click on the Step over button one more time. This time the value of the index register
is changed to 1529 (hex). This is also correct if we examine the assembly window.
 
Search WWH ::




Custom Search