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.

AIC23 problem

 

dsk_app example in the cd associated with the accessories of the C6455 DSK , is working ok using the debug build configuration   ,but when i use release build configuration i get this error

could not open source file "csl.h"

 can any one help me with this

  • Ahmed,

    It sounds like the include file path is not set properly in your Release configuration.  Switch between the Debug and Release settings and see what the differences are.  And then, make an update to the release configuration to point to the same locations as your Debug one.

    Regards,
    Dan

     

  • Thanks Mr Dan

    i did that , and added the extra paths of the debug configuration into the release ,and the error has gone but 2 new errors appeared again.

    this is the error:

    "Project build options do not match Global configuration settings.  Compiler options do not specify -mv64+, but configuration is for C64x+"

    i attached the error , to have a better look

  • Ahmed,

    The image you attached is pretty small, so it's hard for me to read.  I don't see any error message for the first red X.  Do you have any additional info about that?  It looks like the 2nd red X is the message that you refer to. 

    If you're using the 6455, that's a 64x+ device, and the compiler options should specify -mv6400+.  Select your project, right click and choose "Properties".  Then, under the C/C++ build menu on the left, select "Settings".  Then, in the window that comes up, under the C6000 compiler, you should select "Basic Options" and ensure that target processor version has a 6400+ in it.

    Regards,
    Dan

  • i did that too, and changed the target processor version to 6400+ , but didn't work and i got 17 errors , i attached them below in the file.

    i appreciate your effort.

     

    2335.error2.rar

     

  • this is the 17 errors i got from the console window

    undefined                                                            first referenced
      symbol                                                                     in file    
     ---------                                                                   ----------------
     _CSL_edma3ChannelOpen                          ./dsk_app.obj  
     _CSL_edma3GetParamHandle                    ./dsk_app.obj  
     _CSL_edma3HwChannelControl                ./dsk_app.obj  
     _CSL_edma3HwChannelSetupParam      ./dsk_app.obj  
     _CSL_edma3HwChannelSetupQue          ./dsk_app.obj  
     _CSL_edma3HwControl                             ./dsk_app.obj  
     _CSL_edma3HwSetup                                ./dsk_app.obj  
     _CSL_edma3Init                                          ./dsk_app.obj  
     _CSL_edma3Open                                     ./dsk_app.obj  
     _CSL_edma3ParamSetup                        ./dsk_app.obj  
     _DSK6455_AIC23_openCodec               ./dsk_app.obj  
     _DSK6455_DIP_get                                ./dsk_app.obj  
     _DSK6455_DIP_init                                  ./dsk_app.obj  
     _DSK6455_LED_init                               ./dsk_app.obj  
     _DSK6455_LED_toggle                          ./dsk_app.obj  
     _DSK6455_init                                        ./dsk_app.obj  

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

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

     

    the project is a RTSC project , does it support the Release build configuration ?

    Thanks

     

     

  • Ok, this seems to be making it worse.  Can you try creating a new build configuration (based on the debug configuration), verify that it builds, and then just make the changes for release mode.  Usually these changes are something like removing a predefined debug symbol and changing the optimization from None to either -o2 or -o3.  If that doesn't work, can you point me to where you got the project from, or zip it up and attach it?

    Regards,

    Dan

     

  • Thanks so much Dan for your help, i applied all the debug configuration  to the relesae and it worked , the reason i got these errors ,was one of the debug configurations (TConf Script Compiler--> General Options) i forgot to add to the release in the beggining ,but now it is OK

    THANKS again