This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DSK5416

Other Parts Discussed in Thread: CCSTUDIO, PCM3002

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...

 

  • Hello,

    shan said:

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    _C54XX_DMA_MCBSP_hMcbsp          C:\CCStudio_v3.3\C5400\dsk5416\lib\dsk5416f.lib

    This symbol is defined in the generated file 'tonecfg_csl.c', inside the 'cslCfgInit()' call. Is that file being generated correctly for you?

     

  • Hi Lee,

    As you mentioned in the previous post, that file is being generated by the BIOS 4.90.02.10 from CCS3.1 and it is a .cdb file, but i want to create a new project in CCS3.3 using the BIOS 5.31.02 it is a .tcf file but in the BIOS that csl library has been removed, So i tried to use the csl library and bsl library but it says the error C54XX_DMA_MCBSP_hMcbsp in not configured, I know how to configure it in BIOS   4.90.02.10 but i cant able to figure it out to configure in BIOS5.31.02. Kindly suggest any idea.

     

    thanks in advance.........

  • Did you check out some of the BIOS resources on the wiki?

    There is one for 4.90 users going to 5.x:

    http://processors.wiki.ti.com/index.php/Migrating_from_BIOS_4.9_to_BIOS_5.x

    I will also move this into the BIOS forum where there is much more expertise on BIOS.

    Thansk

    ki