DSPRelated.com
Forums

CCSV4 WITH EDMA USE

Started by aros...@ipn.mx October 15, 2010
Hi!, I am trying to use the new software ccsv4 with old examples that use the edma module but my code is not linked, i do not why this happens, in ccsv3.1 the program works fine but in the new software it does not work. Could any help me?

The code that i use is the following:

#include
#include

#include "sine.h"
#include "edma.h"

/*
* ======== Declarations ======= */
#define BUFFSIZE 32

/*
* ======== Prototypes ======= */

/*
* ======== Global Variables ======= */
short gBuf0[BUFFSIZE];
short gBuf1[BUFFSIZE];

SINE_Obj sineObj;

/*
* ======== main ======= */
void main()
{
SINE_init(&sineObj, 256, 8 * 1024);

initEdma();

SINE_blockFill(&sineObj, gBuf0, BUFFSIZE); // Fill the buffer with sine data

EDMA_setChannel(hEdma); // Tell the EDMA to do a transfer

while (1) { // Loop Forever
}
}

AND THE ERRORS ARE FOLLOWS:

undefined first referenced
symbol in file
--------- ----------------
_EDMA_config ./edma.obj
_EDMA_open ./edma.obj
_EDMA_setChannel ./main.obj

error: unresolved symbols remain
error: errors encountered during linking; "prueba2.out" not built

>> Compilation failure
C:\ccsv4\utils\gmake\gmake: *** [prueba2.out] Error 1
C:\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project prueba2

_____________________________________
arosaless,

Since the code works fine in the older version of the CCS, *I* would expect the
difference to be in the include header files and the related library files.

Have you rebuilt the 'project' to reference the new libraries and header files?
Have you compared the old header files with the new header files?

I would expect to find the answer to the problem in the above two activities.
R. Williams

---------- Original Message -----------
From: a...@ipn.mx
To: c...
Sent: Fri, 15 Oct 2010 16:14:47 -0400
Subject: [c6x] CCSV4 WITH EDMA USE

> Hi!, I am trying to use the new software ccsv4 with old examples that
> use the edma module but my code is not linked, i do not why this
> happens, in ccsv3.1 the program works fine but in the new software it
> does not work. Could any help me?
>
> The code that i use is the following:
>
> #include
> #include #include "sine.h"
> #include "edma.h"
>
> /*
> * ======== Declarations =======> */
> #define BUFFSIZE 32
>
> /*
> * ======== Prototypes =======> */
>
> /*
> * ======== Global Variables =======> */
> short gBuf0[BUFFSIZE];
> short gBuf1[BUFFSIZE];
>
> SINE_Obj sineObj;
>
> /*
> * ======== main =======> */
> void main()
> {
> SINE_init(&sineObj, 256, 8 * 1024);
>
> initEdma();
>
> SINE_blockFill(&sineObj, gBuf0, BUFFSIZE); // Fill the buffer with
> sine data
>
> EDMA_setChannel(hEdma); // Tell
the EDMA to do a transfer
>
> while (1) { // Loop Forever
> }
> }
>
> AND THE ERRORS ARE FOLLOWS:
>
> undefined first referenced
> symbol in file
> --------- ----------------
> _EDMA_config ./edma.obj
> _EDMA_open ./edma.obj
> _EDMA_setChannel ./main.obj
>
> error: unresolved symbols remain
> error: errors encountered during linking; "prueba2.out" not built
>
> >> Compilation failure
> C:\ccsv4\utils\gmake\gmake: *** [prueba2.out] Error 1
> C:\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
> Build complete for project prueba2
------- End of Original Message -------

_____________________________________
Please make sure that appropriate CSL library is linked.

Regards
JS

----- Original Message -----
From: c...
To: c...
Sent: Fri Oct 15 15:14:47 2010
Subject: [c6x] CCSV4 WITH EDMA USE

Hi!, I am trying to use the new software ccsv4 with old examples that use the edma module but my code is not linked, i do not why this happens, in ccsv3.1 the program works fine but in the new software it does not work. Could any help me?

The code that i use is the following:

#include
#include

#include "sine.h"
#include "edma.h"

/*
* ======== Declarations ======= */
#define BUFFSIZE 32

/*
* ======== Prototypes ======= */

/*
* ======== Global Variables ======= */
short gBuf0[BUFFSIZE];
short gBuf1[BUFFSIZE];

SINE_Obj sineObj;

/*
* ======== main ======= */
void main()
{
SINE_init(&sineObj, 256, 8 * 1024);

initEdma();

SINE_blockFill(&sineObj, gBuf0, BUFFSIZE); // Fill the buffer with sine data

EDMA_setChannel(hEdma); // Tell the EDMA to do a transfer

while (1) { // Loop Forever
}
}

AND THE ERRORS ARE FOLLOWS:

undefined first referenced
symbol in file
--------- ----------------
_EDMA_config ./edma.obj
_EDMA_open ./edma.obj
_EDMA_setChannel ./main.obj

error: unresolved symbols remain
error: errors encountered during linking; "prueba2.out" not built

>> Compilation failure
C:\ccsv4\utils\gmake\gmake: *** [prueba2.out] Error 1
C:\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project prueba2

_____________________________________

_____________________________________