386304593ee_10| Application Note

386304593ee_10 PDF

386304593ee_10| Application Note


Engineer's Note

EN-10

Notes on using Analog Devices' DSP, audio, & video components from the Computer Products Division Phone: (800) ANALOG-D or (781) 461-3881, FAX: (781) 461-3010, EMAIL: dsp.support@analog.com

What Can I Do When My ADSP-21xxx EZ-ICE Gives Me The Error Message:
"Failure in GUI_COFF_LOAD_FILE"
Last Modified: 6/13/96

3. 4.

Running WICE060.EXE and loading the architecture file successfully Trying to download the .EXE file with the EZ-ICE and seeing the emulator fail to load the program, responding with the error message "Failure in
GUI_COFF_LOAD_FILE"

Debugging -- Step 1: Format
First, verify that the code was compiled with the PC version (not with the SUN version) of the development tools. Because executable files created with the SUN (UNIX) tools have a different format from those created with the PC (DOS) tools, this file format difference could be the cause of the error. If the file is in SUN (UNIX) format, you must use the CSWAP utility to convert the file to PC (DOS) format. This tool comes with the floating point development tools software and can be found in the \21K\BIN\ subdirectory. The CSWAP utility is a COFF File conversion program to convert executables between platforms. You can convert files with the following command (in DOS):
C:> CSWAP sun.exe [-o] dos.exe

Introduction
When using the JTAG-based EZ-ICE (and release 3.x of the ADSP-21000 family development software) with ADSP-2106x or ADSP-21020 DSPs, it is convenient to be able to download executables through the EZ-ICE and run them on your target DSP. The success of process, however, depends on the following features of you debugging setup: You reset the DSP before downloading a file Format of the download file is for the PC platform External memory (if used) is correctly configured and operational JTAG EZ-ICE hardware and ribbon cable support communications DSP is operational, and board is laid out appropriately

If the code was compiled on the PC, then no conversion is necessary, and format is not the cause of the error.

Debugging -- Step 2: JTAG Loop
If the file format is correct, the next step is to verify the JTAG loop, connecting the EZ-ICE and your target DSP. To set up the loop test, change the SCOPE_LOOP option to YES in the EZ-ICE initialization file (WICE060.INI or WICE020.INI) and save your changes. The test is part of the Debug Monitor utility, DBWIN.EXE, which is located in the C:\WINDOWS directory. The DBWIN utility lets you get more detailed information on what the EZ-ICE is doing by displaying messages from the emulator. Setting SCOPE_LOOP to YES in the initialization file directs the EZ-ICE to sent a serial bit stream to the JTAG port and loop the stream back. The results of this scan test are displayed by DBWIN. An example initialization file, which has been modified for testing, appears in Listing 1.
Listing 1 Example EZ-ICE Initialization File (WICE060.INI) ; wice060.ini file

If any of these features of your debugging setup are failing, you could be seeing the "Failure in GUI_COFF_LOAD_FILE" error message as a result. This note describes some steps for debugging the cause of this error message.

Debugging The Error, Set Up
Before getting started with debugging, check whether this situation applies (You are ...): 1. 2. Using the ADSP-2106x SHARC or ADSP-21020 EZ-ICE, which is attached to a PC Trying to download an executable file to the target (after resetting the DSP)


386304593ee_10 Application Note analog Download PDF

Add this permalink to your bookmarks for future download of 386304593ee_10 ApplicationNote

Permalink: http://application.emcelettronica.com/analog/386304593ee_10

PDF 386304593ee_10 APPLICATION NOTE