DSPRelated.com
Forums

(No Subject)

Started by Jaeson Paras February 6, 2002
Hi, I am having problems assembling and linking some
ADI demo files when I add only a little part of code
into it. Here is a copy of my error message:

"C:\Program Files\Analog Devices\VisualDSP\cc21k.exe"
.\debug\AD1819a_initialization.doj
.\debug\Codec_Reset.doj .\debug\ISR_table.doj
.\debug\Init_065L_EZLAB.doj .\debug\Fir_demo.doj
.\debug\Codec_Processing_ISR.doj
.\debug\Clear_SPT1_regs.doj .\debug\SDRAM_Init.doj -T
.\EZLAB_21065L_debugger.ldf -21065L -L .\debug -o
".\63 Tap 8 kHz FIR Filter.dxe"

cc21k: Fatal Error: Link failed
Tool failed with exit/exception code: 1.
Build was unsuccessful.

I only added this code on one of the demos for the
EZKIT 21065L found in the analog website. Could you
please help me out. I am still using VDSP Version
1.0.

Here is the code I added:

#include "def21065l.h"
#include "new65Ldefs.h"

#define AD1819_RESET_CYCLES 60
/* ad1819 RESETb spec = 1.0(uS) min */
/* 60(MIPs) = 16.67 (nS) cycle time, therefore >=
40 cycles */
#define AD1819_WARMUP_CYCLES 60000
/* ad1819 warm-up = 1.0(mS) */
/* 60(MIPs) = 16.67 (nS) cycle time, therefore >=
40000 cycles */

.GLOBAL reset_AD1819;

.segment /pm pm_code;

/* CODEC reset */
reset_AD1819:
r0 = 0x0000007f;
dm(IOCTL) = r0;
r0 = 0x0000003f;
dm(IOSTAT) = r0;
LCNTR = AD1819_RESET_CYCLES - 2, DO reset_loop UNTIL
LCE;
reset_loop: nop;

/* CODEC warm_up */
r0 = 0x0000006a;
dm(IOSTAT) = r0;
LCNTR = AD1819_WARMUP_CYCLES - 2, DO warm_loop UNTIL
LCE;
warm_loop: nop;

rts;

.endseg;

I believe I am having problems with the LDF file.
Because when I assemble it file by file in the project
there doesn't to be a problem within the files.
Thanks.

Jaeson