
If the previous steps are successful, the communication link from the PC to the JTAG on the microcontroller to the
MAXQ7665 debug engine is working. You should be able to close the communication port in MTK and close the MTK
application. The IAR Embedded Workbench should download code and debug the application code in the MAXQ7665 EV
kit.
Debug Engine State
The debug engine also returns its state along with the data above. For example, the first register M[00,00] is 003F:03.
The four left characters are the register's hex value. The data returned is always 16-bit wide, regardless of the register
size. There is a colon and 03 in this example. The 03 is the handshaking between the host and the debug engine. In this
case the 03 indicates that the debug is valid. The possible states are shown in the table below.
Status Condition
00
Default Condition. Background mode or debug engine inactive (MAXQ7665 in reset)
01
Debug Idle. Ready to receive data from the host (ready for download and debug)
02
Debug Busy. Debug engine is busy without valid data (Password Lock State)
03
Debug Valid. Debug engine is busy with valid data (ready for download and debug)
Troubleshooting
If the action above does not work or you get results other than those shown here, there are some things to try.
No Prompt
If you cannot get a prompt back from the MAXQ7665 EV kit, disconnect the RS-232 cable from the EV kit and remove the
DC power plug. Then reconnect the RS-232 cable and DC power plug. Repeat the procedure if necessary. Also make sure
that the serial-port selection in the Options menu is correct for the port that you are using. To see the available serial
ports, run the following application. Open the control-panel System application then select the Hardware tab. Select the
Device Manager and Ports (COM & LPT) to see which serial ports are available.
Invalid Data–Debug Busy
Sometimes the IDEG returns data similar to the data shown below, i.e., the data contains :02 for the debug engine state.
This value usually indicates that the password is locked for the MAXQ7665, thus preventing the flash from being erased
and preventing any communication from the IAR Embedded Workbench to the MAXQ7665. See
Figure 8
.
Figure 8. An :02 on the IDEG screen indicates a locked password for the MAXQ7665.
Page 10 of 12