• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C67x Single Core DSP Forum » unresolved symbol MCBSP_open
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Forums

unresolved symbol MCBSP_open

This question is answered
abhishek srivastava
Posted by abhishek srivastava
on Mar 27 2012 06:14 AM
Intellectual270 points

why this error occurs?what other headers or libraries required??

screen shot is included for your reference.

thank you

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • abhishek srivastava
    Posted by abhishek srivastava
    on Mar 27 2012 06:12 AM
    Intellectual270 points

    after building of following code for sine wave

    #include "C:\Users\abhi\Downloads\DSK6713\DSK6713\c6000\dsk6713\include\DSK6713.h"
    #include "C:\Users\abhi\Downloads\DSK6713\DSK6713\c6000\dsk6713\include\DSK6713_AIC23.h"
    #include <math.h>

    #define Fs 32000 // Sampling frequency in Hz
    #define f 5000 // Frequency in Hz
    #define pi ( ( double )3.1415927 )
    #define Vm 12659//Peak value of sine wave with 79uV resolution, 12659 for 1Vpp
    float x[Fs/1000]; // Fs/1000 is length of sequence
    DSK6713_AIC23_Config config = { \
    0x0017, /* 0 DSK6713_AIC23_LEFTINVOL Left line input channel volume */ \
    0x0017, /* 1 DSK6713_AIC23_RIGHTINVOL Right line input channel volume */\
    0x00ff, /* 2 DSK6713_AIC23_LEFTHPVOL Left channel headphone volume */ \
    0x00ff, /* 3 DSK6713_AIC23_LEFTHPVOL right channel headphone volume */ \
    0x0011, /* 4 DSK6713_AIC23_ANAPATH Analog audio path control */ \
    0x0000, /* 5 DSK6713_AIC23_DIGPATH Digital audio path control */ \
    0x0000, /* 6 DSK6713_AIC23_POWERDOWN Power down control */ \
    0x0043, /* 7 DSK6713_AIC23_DIGIF Digital audio interface format */ \
    0x0081, /* 8 DSK6713_AIC23_SAMPLERATE Sample rate control */ \
    0x0001 /* 9 DSK6713_AIC23_DIGACT Digital interface activation */ \
    };
    void main()
    { int n;
    float b;
    int N=Fs/f;
    double theta =2*pi*f/Fs;
    DSK6713_AIC23_CodecHandle hCodec;
    DSK6713_init(); //Initialize board support library
    hCodec = DSK6713_AIC23_openCodec(0, &config); //Open the codec
    DSK6713_AIC23_setFreq(hCodec, 4); //Set the sampling rate at 32 kHz
    for(n=0;n<N;n++)
    x[n]=sin(theta * n);
    while(1)
    {
    for ( n = 0 ; n < N ; n++ )
    {
    b=Vm*x[n];
    while (!DSK6713_AIC23_write(hCodec, b));
    while (!DSK6713_AIC23_write(hCodec, b));
    }
    }
    }


    i am getting following error while compilation of sinewave.c as


    #10010 errors encountered during linking; "sine_wave.out" not built    sine_wave             
    <a href="file:/D:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain    sine_wave        
    unresolved symbol _MCBSP_open, first referenced in ../dsk6713bsl.lib<dsk6713_aic23_opencodec.obj>    
    unresolved symbol _MCBSP_start, first referenced in ../dsk6713bsl.lib<dsk6713_aic23_opencodec.obj>


    why it is so? any other file to be included?? can any one give some solution to this error please

    thank you

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Lisa TI
    Posted by Lisa TI
    on Mar 28 2012 10:38 AM
    Guru99865 points

    Hi Abishek,

    I will do two things here.  It seems like you need whatever library/support package is necessary for MCBSP.  So I will move this post to the device forum for you.

    However, once you find out which includes are missing .... this wiki topic will help give you some ideas of how to add these and correct them so you don't get unresolved symbols.  If you feel you should have all you need, you can use this wiki to just double check everything is in the correct place.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Best Regards,
    Lisa

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brad Griffis
    Posted by Brad Griffis
    on Mar 28 2012 20:33 PM
    Guru57330 points

    MCBSP_open comes from the CSL.  You will need to add the include path to the compiler options.  You'll need to add the library to the project as well, either through the linker options or by adding the file directly to the project.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------- 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • abhishek srivastava
    Posted by abhishek srivastava
    on Mar 28 2012 22:35 PM
    Intellectual270 points

    i think i have included the files for CSL. what else is missing?

    have a look on screen shot.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Brad Griffis
    Posted by Brad Griffis
    on Mar 29 2012 08:55 AM
    Guru57330 points

    I don't see a screenshot.  If it's "unresolved symbol" then that's a linker error.  That means you have not correctly added the library to your project.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------- 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • abhishek srivastava
    Posted by abhishek srivastava
    on Mar 29 2012 13:16 PM
    Intellectual270 points

    i have added all required libraries as can be seen in screenshot.shall i re-attach any library? which one?