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.

[FAQ] TDA4VL-Q1: How can I port a C7x algorithm using Code Composer Studio?

Part Number: TDA4VL-Q1


Hi Team,

Could you please explain the steps for creating a CCS workspace for C7x development, and provide an example? 

Regards,

Betsy Varughese

  • Prerequisites:

    1. Install CCS : https://www.ti.com/tool/download/CCSTUDIO/12.8.1
    2. Install J721S2 Processor RTOS SDK :  https://www.ti.com/tool/PROCESSOR-SDK-J721S2
    3. C7x CGT : https://www.ti.com/tool/C7000-CGT#downloads
    4. Linker script  :  For J721S2 platform builds, use the linker script located at:  "dsplib/cmake/linkers/C7120/lnk.cmd", For builds targeting different C7x DSP variants, use the appropriate linker script found at: "dsplib/cmake/linkers"
    5. Please follow the steps mentioned here to create a target configuration file for J721S2.

    CCS Workspace for C7x Development ( Using existing example.cpp from DSP Library) :

    Please complete the following steps to set up a new CCS project. 

    • File → New → Project 

    • A dialog box will appear. Select CCS Project from the options, and then click Next.

    • Fill in the following fields for the newly created CCS Project:

      • Target: Select Custom C7000 Device/ Specify the EVM
      • Project Name: For example, DSPLIB_add_example
      • Compiler Version: Choose the appropriate C7x compiler version from the drop-down menu
      • Project Template: Select Empty Project, then click Finish

    • The project workspace named DSPLIB_add_example will be created and displayed in the CCS Project Explorer window as follows:

    • To add example.cpp and the linker script from the SDK:

      • Right-click on the project in Project Explorer
      • Select Add Files
      • Browse and select the required files from your local SDK directory, adding them one by one

    • After adding all the required files, the project workspace will appear as shown below:

    • Next, configure the project properties:  Right click on the project workspace → Properties
      • Under Build → C7000 Compiler, update the following settings:

    Include dsplib → src path in the include option of C7000 compiler : 

    Under Build → C7000 Linker, Include the lib paths as follows: 

    • Then click on "Apply and Close"
    • To build the project → Right Click on the project workspace → Build Project 
    • After the build completes, an executable file will be generated in the corresponding build configuration folder (Release or Debug) within the project.

    Regards,

    Betsy Varughese