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.

Unable to build C6457 CSL

Greetings,

I am trying to build C6457 CSL from source available with TMDXEVM6457. The CSL version is c6457_03_04_01.

I get "could not open source file csl_dev.h" .

In fact this file is not preset in the "inc" folder of CSL.

Can any one please comment on this? Can any one please send me the csl_dev.h file for C6457.

 

Thanks,

Amit

  • Mariana said:

     

    Hi Mariana,

    Thank you for addressing this.

    I am not able to find the csl_dev.h on this link : https://gforge.ti.com/gf/project/c6455tcp2/scmsvn/?action=browse&path=%2Ftrunk%2Fsource%2Finclude%2Fcsl_dev.h

    I get 404 file not found error.

    An Exception Has Occurred

    trunk/source/include/csl_dev.h: unknown location

    HTTP Response Status

    Your help is highly appreciated. Also can you please take this issue to the CSL team of C6457.

     

    Thanks,

    Amit

  • Amit,
     
    Are you sure it didn't say cslr_dev.h?  That file exists, but csl_dev.h does not exist.  You should use the latest csl v03.04.03 found at: http://focus.ti.com/docs/toolsw/folders/print/sprc924.html.  The file is found in the C6457\csl_c6457_src\inc\ directory.
     
    Are you building a project via CCS, or are you trying to build a library via a makefile of some sort?
     
    Regards,
    Travis
  • Hi Travis,

    Thank you for your response.

    tscheck said:

    Are you sure it didn't say cslr_dev.h?  That file exists, but csl_dev.h does not exist.  You should use the latest csl v03.04.03 found at: http://focus.ti.com/docs/toolsw/folders/print/sprc924.html.  The file is found in the C6457\csl_c6457_src\inc\ directory.

    I downloaded the latest CSL code from the link and tried building the code. I am getting the same "could not open source file csl_dev.h" error in csl_devGetBaseAddress.c source file. It has following files included:
    #include <soc.h>
    #include <cslr_dev.h>
    #include <csl_dev.h>


    tscheck said:
    Are you building a project via CCS, or are you trying to build a library via a makefile of some sort?

    I have attached the CCSv4 project for CSL for you reference.

    Please let me know if I am missing any thing.

    Thanks,

    Amit

    csl_c6457_src.zip
  • Hi Amit,

    tscheck should be able to help you.

    Just FYI, to get the files you might need to install SVN in your machine, and then look at access information on the link.

  • Amit,

    The official response is that if you want to build the library from the csl source files, you should really use either the build_csl.bat or build_csle.bat scripts that are supplied with the csl.  The build instructions are detailed in the release notes, section 9.   There are CGT version requirements, as well as, other steps such as setting an environment variable, "TARGET=c6457".  If you use the batch file and these steps, it would not have errored, since the csl_devGetBaseAddress.c is not called by anything, the scripts would not have used it in the build.  You can simply remove this file and build without it in CCS to get rid of the error.  We will actually remove this file from the next csl release to avoid confusion.  As a heads up, when trying to duplicate your error message in CCS, I ran across another build issue involving csl_version.c file.  This error again can be avoided by following the build instructions in the release notes and is related to the environment variable I mention above.  Essentially the c6457 is not defined in CCS and because of that some of the variables are not set in csl_version.h.  In order to get around this in CCS, you can change your C6000 Compiler command to be "${C6000_CG_ROOT}/bin/cl6x" -D c6457.

    At a higher level, I'm not quite sure I understand why you are trying to rebuild the complete library.  If you want/need to change a few files, you can include the modified source files in the project, which will over-ride the .lib functions.  Just FYI, let me know your reasoning.

    Regards,

    Travis

     

  • Thank you all for your responses.
    I excluded the
    csl_devGetBaseAddress.c file from the build and defined "c6457" in build settings and now I am able to build the library without any issues.

    Thanks,

    Amit