Reply by ahmadagha23 June 21, 20052005-06-21
Dear friends

When I create an c6711 simulator project to implementing edma
transfer by using csl.lib it have error in bulding(linking) phase.
it is my source c code:

#include <csl.h>
#include <csl_edma.h>
#include <csl_dma.h>

extern far EDMA_Config edmaCfg0;
extern far EDMA_Handle hEdmaTbl0;

EDMA_Handle hEdmaCha4;
EDMA_Handle hEdmaTbl0;

EDMA_Config edmaCfg0 = {
0x31350000, /* Option */
0x00000000, /* Source Address - Numeric */
0x00000004, /* Transfer Counter - Numeric */
0x00001000, /* Destination Address - Numeric */
0x00000000, /* Index register - Numeric */
0x00000000 /* Element Count Reload and Link Address */
};

void CSL_cfgInit()
{
hEdmaCha4 = EDMA_open(EDMA_CHA_EXTINT4, EDMA_OPEN_RESET);
hEdmaTbl0 = EDMA_allocTable( 0);
EDMA_config(hEdmaCha4, &edmaCfg0);
EDMA_enableChannel(hEdmaCha4);
EDMA_config(hEdmaTbl0, &edmaCfg0);
}

void main()
{

while(1);
}

and also I include all needed files and the vector.asm file.
when I compile the file has no error, but when I build it this
error message appears:
undefined first referenced
symbol in file
--------- ----------------
_EDMA_enableChannel
F:\ti\myprojects\minedmac\Debug\minedmac.obj
_EDMA_config
F:\ti\myprojects\minedmac\Debug\minedmac.obj
_EDMA_open
F:\ti\myprojects\minedmac\Debug\minedmac.obj
_EDMA_allocTable
F:\ti\myprojects\minedmac\Debug\minedmac.obj
>> error: symbol referencing errors - './Debug/minedmac.out' not
built

Build Complete,
1 Errors, 0 Warnings, 0 Remarks.

I didn't use dsp/bios features.
please guide me how can I set up edma using csl.lib and no dsp/bios.
regards