Hi,
I am usind DSK5416 along with CCS3.3, i am geting one problem in the source code of tone.c, the error says that
undefined first referenced
symbol in file
--------- ----------------
_C54XX_DMA_MCBSP_hMcbsp C:\CCStudio_v3.3\C5400\dsk5416\lib\dsk5416f.lib
I have tried with both the dsk5416.lib as well as the dsk5416f.lib and also i tried with the csl5416.lib also, i dont know where it has been declared in the program, i am converted this project from the 3.1 to 3.3 and also make the necessary changes, That led program is working. For your reference source code is given below
#define CHIP_5416
#include "C:\CCStudio_v3.3\C5400\dsk5416\include\dsk5416.h"
#include "C:\CCStudio_v3.3\C5400\dsk5416\include\dsk5416_pcm3002.h"
#include <math.h>
#define SINE_TABLE_SIZE 48
#define PI ( ( double )3.1415927 )
#define SINE_MAX 0x7FFE
int sinetable[SINE_TABLE_SIZE];
DSK5416_PCM3002_Config setup = {
0x010d, // Set-Up Reg 0 - Left channel DAC attenuation
0x010d, // Set-Up Reg 1 - Right channel DAC attenuation
0x0000, // Set-Up Reg 2 - Various ctl e.g. power-down modes
0x0000 // Set-Up Reg 3 - Codec data format control
};
void InitSineTable( void )
{
int i;
double increment= 0;
double radian = 0;
increment = ( PI * 2 ) / SINE_TABLE_SIZE;
for ( i = 0 ; i < SINE_TABLE_SIZE ; i++ )
{
sinetable[i] = ( int )( sin( radian ) * SINE_MAX );
radian += increment;
}
}
void main()
{
/* Call BSL init */
int j;
DSK5416_PCM3002_CodecHandle hCodec;
DSK5416_init();
InitSineTable();
hCodec = DSK5416_PCM3002_openCodec( 0, &setup );
while(1)
{
while ( !DSK5416_PCM3002_write16( hCodec, sinetable[j] ) );
while ( !DSK5416_PCM3002_write16( hCodec, sinetable[j] ) );
}
}
Kindly help to solve this problem...
Thanks in advance...