Maxim MAXQ7665 Скачать руководство пользователя страница 8

Basic Troubleshooting

If you get an error message when trying to communicate with the MAXQ7665 EV kit, it will be necessary to close and 

reopen the IAR Embedded Workbench. If restarting IAR does not fix the problem, try removing the RS-232 cable from 

the EV kit and reset the EV kit by cycling the power. Then reconnect the RS-232 cable, apply power, and open the IAR 

toolset. If IAR still cannot communicate with the MAXQ7665 EV kit, review the 

Advanced Troubleshooting

 section below. 

 

Advanced Troubleshooting

This section describes the steps necessary to install and use Maxim's 

Microcontroller Tool Kit

 (MTK) for debugging the 

MAXQ7665 EV kit over an RS-232 connection. Debugging may be necessary if the IAR Embedded Workbench cannot 

download to the MAXQ7665 EV kit. 

 

Required Hardware and Software

1.  PC with Windows® and an RS-232 port 

2.  MAXQ7665 EV Kit 

3.  MAXQ7665 EV Kit Install CD 

4.  AC-to-DC converter with 12V output 

5.  DB-9 to DB-9 RS-232 cable 

Software Installation

The MTK utility is provided on the MAXQ7665 EV kit's Install CD in the MTK directory. Run the 

SETUPEX.exe

 file to install 

the MTK application. 

 

Hardware Installation

Connect the MAXQ7665 EV kit to the AC-power adapter. Connect the RS-232 serial port cable from the PC to the EV kit's 

DB-9 connector labeled PC RS232. 

 

Start the MTK Utility

Once the application is installed, open it and select the DS89C430 from the drop-down menu. This is the device used to 

communicate between the PC's RS-232 port and the MAXQ7665's JTAG connections. 

 

Set the MTK Options

Select Options and then Configure Serial Port. Enter the serial port that you are using, and set the speed for 115,200 

Baud. Also select "Toggle DTR on connect/disconnect," "Save working directory on exit," and "Save COM Port Settings on 

Exit," if these settings are not checked already. 

 

Connect to the MAXQ7665 EV Kit

Select the Target and "Open COMx at 115200 baud," where x is the serial port configured from the Options above. Test 

the RS-232 interface by pressing Enter or Return at the keyboard. The MAXQ7665 EV kit should respond with the prompt 

character ">" each time that Enter is pressed. If this step is working, it indicates that the microcontroller on the EV kit is 

recognizing the Enter and is ready for input. If this step does not work, see the 

No Prompt

 section below. 

 

Connect to the MAXQ7665 Debug Engine

There is a simple method to determine the state of the MAXQ7665: "Get" all the internal registers. The Get command 

Page 8 of 12

Содержание MAXQ7665

Страница 1: ...controllers The IAR toolset includes a text editor a C compiler serial download and a powerful debugger IAR Workbench Installation Install the IAR Embedded Workbench on the PC from the IAR website Select the Chip manufacturer box on the IAR homepage Then select Maxim Dallas Semiconductor from the Please select chip manufacturer drop down box and click the OK button A new page appears with hyperlin...

Страница 2: ...kspace and the projects contained there Please see the IAR Embedded Workbench User s Guide under the Help menu in the IAR Embedded Workbench application for additional details More detailed image Figure 1 This workspace for the MAXQ7665 lists the projects contained in the software Setting IAR Project Options The project options must be set for each project in the workspace If a new project is adde...

Страница 3: ...the only option that might need to be set for the sample projects If you select JTAG the screen in Figure 3 will appear In this example we used COM1 as the communication port from the PC to the MAXQ7665 EV kit To use a different port change the COM designation to the appropriate serial port Page 3 of 12 ...

Страница 4: ...ome important options must be set The optional linker and debugger configuration for the MAXQ7665 are set up using specific files IAR Linker Options In the Options window select the Linker category and the Config tab as in Figure 4 Select the Override default box in the XCL file name section and locate the lnkmaxq7665_A64K xcl linker file in the config directory Page 4 of 12 ...

Страница 5: ...options for a project IAR Debugger Options To set the debugger options select the Debugger category Select the Use device description file under Device description file Figure 5 and locate the maxq7665_A64K ddf file in the config directory Page 5 of 12 ...

Страница 6: ...meters can easily be changed and passed to the ADC_Convert_Int function if interrupts are used The ADC data will be returned in the interrupt service routine when the conversion is complete and the data ready If ADC polling is used uncomment the ADC_Convert_Poll function The value of the ADC conversion will be returned to the function when the ADC has finished conversion and the data is ready CAN ...

Страница 7: ...out interrupt Start the IAR Embedded Workbench Start the IAR toolset At the File menu select Open Workspace and go either to the C Program Files IAR Systems Embedded Workbench 4 0 MAXQ src MAXQ7665 EV Kit directory or to the directory where the source files were installed Select the workspace file MAXQ7665 EV Kit eww and click open This selection opens a workspace for the MAXQ7665 EV kit that cont...

Страница 8: ...allation Connect the MAXQ7665 EV kit to the AC power adapter Connect the RS 232 serial port cable from the PC to the EV kit s DB 9 connector labeled PC RS232 Start the MTK Utility Once the application is installed open it and select the DS89C430 from the drop down menu This is the device used to communicate between the PC s RS 232 port and the MAXQ7665 s JTAG connections Set the MTK Options Select...

Страница 9: ...etc Note too that the commands can be combined onto a single line For example IDEG will yield the same result Figure 6 If the MAXQ7665 is configured correctly the register map should start with Module 0 Register 0 From the register map above the first register from Module 0 and Index 0 M 00 00 is the Port 0 Output Register PO0 The power on reset POR value of this register is 0x3F which is correct ...

Страница 10: ...d 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 ...

Страница 11: ...the steps above were not successful in erasing the flash memory repeat the whole process Remove DC power hold the reset switch and enter the commands above If the erase was successful you should be able to Get all the registers successfully by using the IDEG commands described above The IAR Embedded Workbench should download application code Support An application engineer is available for support...

Страница 12: ...ontact Keep Me Informed Preview new application notes in your areas of interest as soon as they are published Subscribe to EE Mail Application Notes for weekly updates Related Parts MAXQ7665 QuickView AN4100 AN 4100 APP4100 Appnote4100 Appnote 4100 Copyright by Maxim Integrated Products Additional legal notices www maxim ic com legal Page 12 of 12 ...

Отзывы: