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.

Compiler: Need examples code for linking the obj file generated via CLPRU compiler with the DSP Core as host.

Tool/software: TI C/C++ Compiler

I already have firmware which works with PASM compiler. I am trying to use CLPRU compiler now to compile my code. I have modified the code for CLPRU compiler based on its syntax. The compilation is been done succesfully. I am using the obj linking approach to link my CLPRU generated binary after compilation. I am following the step mentioned in section 12.3 in the below mentioned document. I was able to find the required file in my <clpru_install_dir>/ti-cgt-pru_2.1.4/example

Currently, I am using the technique for ARM i.e. a15, a8 and a9 core with gcc compiler to link the CLPRU generated obj file. The method works fine and i am able to verify my code on EVMs too. 

Now, my original firmware supported DSP too. So i am using the same mentioned method to link the CLPRU generated obj file with C66x dsp core and ti-cgt-c6000_8.1.2 compiler. I have modified the target to DSP core "--host_image:target=C6000". But i am getting the following warning and my .out file does not contain any CLPRU generated symbol/instruction/data.

"<install_dir>lnk.cmd", line 40: warning #10068-D: no matching section.

Does the above mentioned method have been tested for any C66 core. if yes, please provide me with sample implementation.

  • Suraj,

    The support has not been explicitly tested with C66x, but it should work the same as ARM. Can you post the project that isn't working? You can send it by email if that works better.

  • Sample_project.zip

    I have added script which does all the compilation and the folder has all the source code needed. just setup the envirnment in the script and run the script. you will find my issue in the host application compilation.

    Note: there are lot of other warning which you can ignore but you need to find the mentioned warning which is the actual issue. grep it.

  • I get the following error message when building the C6x source code. I think this is because I don't have the PDK installed. I should be able to reproduce the issue with just object files since it is more of a linker problem. Can you provide a project that consists of just the hexpru and link steps?

    "icss_emacFwConfig.c", line 49: fatal error #1965: cannot open source file "ti/drv/icss_emac/firmware/am57x/v2_1/icss_emacFwConfig.h"

  • i have made the modification you asked for.

    2146.Sample_project.zip