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.

Using CSL for DM642 in CCS4

Other Parts Discussed in Thread: SPRC090

 Hello,

I just switched from CCS3.1 to CCS4 and now I am trying to compile and link our application code for the dm642 which makes use of the chip support library. As CCS4 has no CSL integrated, I downloaded and installed it separately. As DSP BIOS (5.40.02.22) configuration doesn't support csl any more,  I added the include search path and the library search path (lib_3x) to the build options manually. Additionally I added the define CHIP_DM642 to the predefines. Is there anything else I have to consider??

- Any additional predefine I have to add?

- Do I have to use lib_2x or lib_3x libraries?

 

Thanks in advance

 

 

 

  • Hi,

    There are a few additional considerations for this migration. Check the links (here and here).

    Hope this helps,

    Rafael

  • Hi Rafael,

    thanks for your fast answer. I completed the migration from BIOS 4.90 to BIOS 5.40 witout any problems so far. I created the tcf file manually without using cdb to tcf conversion utility. That seemed to be the safest way for me. I also integrated csl and the code compiles and links correctly. I executed following 4 steps:

    1. Added csl include path in build options

    2. Added csl library path in build options

    3. Added CHIP_DM642 predefine in build options

    4. Included cslDM642.lib in linker command file

    Do I have to call CSL_Init() once in my application, for example in main? Should I use lib_2x or lib_3x?

    Thanks and have a nice day

  • Marc,

    Marc said:

    Do I have to call CSL_Init() once in my application, for example in main?

    Yes, you should add the CSL_Init() call to properly make use of the CSL functions (BIOS 4.x used to call this function automatically)

    Marc said:

    Should I use lib_2x or lib_3x?

    The CSL release notes of the SPRC090 package says:

    "All the libraries under folder lib_2x are built using Codegen tools v4.32 with options -mo -al -k -qq -o3 -ml3 and all the libraries under folder lib_3x are built using Codegen tools v5.1.0 with options -mo -al -k -qq -o3 -ml3."

    Therefore the lib_3x is for the newer compiler and therefore should be used. 

    Usually the experts at the device forums have better expertise about the Chip Support Library functionality, therefore if you have questions about it please feel free to post there.

    Also, if you experience any BIOS functional disruption you may get additional insights at the BIOS forum.

    Hope this helps,

    Rafael