
Figure 14. Selecting the COM port to be used for programming the MAXQ622 in IAR.
To rebuild the program, select
Project
Rebuild All
from the menu. The
Build Log
at the bottom should
show that the program was successfully rebuilt by showing that the number of errors is zero. To run and
debug the program, select
Project
Debug
from the menu. A small window named
Downloading
Application
will appear with a status bar while the code is being loaded onto the MAXQ622. Once done, the
window will disappear and a green arrow will point to the start of code since IAR automatically sets a break
point at the start of main. To debug the code (Step Over, Step Into, Step Out, Next Statement, Go, Reset,
etc.), select
Debug
from the menu and select one of the debug functions. These can also be selected via the
shortcut buttons in the toolbar below the
IAR
menu (
Figure 15
).
Figure 15. Debugging shortcut buttons in IAR.
To stop debugging, select
Debug
Stop Debugging
from the menu. To then run the code, push the reset
button on the DS8005 evaluation kit board.
Page 15 of 22