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.

failed to locate right platform for TMS320C6727 in clk example code.

Other Parts Discussed in Thread: TMS320C6727, CCSTUDIO

I tried using the example code provided in tutorial but failed to locate TMS320C6727 platform while creating .tcf configurations as TMS320C6727 is part of my board.

I tried with ti.platforms.padk6727 to know if I can move further, but failed to build the code, the error is as follows:

-------------------------- clkTickCalc.pjt - Debug --------------------------
[Configuration1.tcf] "C:\CCStudio_v3.3\bios_5_31_02\xdctools\tconf" -b -Dconfig.importPath="C:/CCStudio_v3.3/bios_5_31_02/packages;" Configuration1.tcf

[clk.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -fr"D:/SVN/ETROLZ/Project_Outputs/Software/Design/SourceCode/Experiment_Codes/ClkTickCalc/ClkTickApp/clk/dsk6713/Debug" -d"_DEBUG" -mv6700 -@"dsk6713/Debug.lkf" "clk.c"
"clk.c", line 23: fatal error: could not open source file "clkcfg.h"
1 fatal error detected in the compilation of "clk.c".
Compilation terminated.

>> Compilation failure

[Configuration1cfg.s62] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -fr"D:/SVN/ETROLZ/Project_Outputs/Software/Design/SourceCode/Experiment_Codes/ClkTickCalc/ClkTickApp/clk/dsk6713/Debug" -d"_DEBUG" -mv6700 -@"dsk6713/Debug.lkf" "Configuration1cfg.s62"

[Configuration1cfg_c.c] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -g -fr"D:/SVN/ETROLZ/Project_Outputs/Software/Design/SourceCode/Experiment_Codes/ClkTickCalc/ClkTickApp/clk/dsk6713/Debug" -d"_DEBUG" -mv6700 -@"dsk6713/Debug.lkf" "Configuration1cfg_c.c"

Build Complete,
1 Errors, 0 Warnings, 0 Remarks.

Help me resolve this issue.

  • The name of your configuration script is Configuration1.tcf. By default, the generated header file is named Configuration1cfg.h. Your app source code was originally paired with the configuration script clk.cfg, so it expects the header file clkcfg.h. You can either rename your configuration script to clk.cfg, or edit your clk.c file to include Configuration1cfg.h.

  • Thanks,
    Your reply helped in resolving the issue. I missed adding build options under compiler and linker tabs.

    The program worked and reported time in ticks, how do I convert ticks to time in seconds?
    May I know a way to convert 1 tick in terms of seconds.

    Log reported is as follows:

    0 clk example started.

    1 The time in task is: 0 ticks
    2 task going to sleep for 10 ticks...
    3 ...awake! Time is: 10 ticks

  • When you open your TCF script in the graphical config, click on Scheduling->PRD, right-click on PRD and select Properties. By default, the setting "Use CLK to drive PRD" is checked, and the field Microseconds/Tick contains the value you are looking for. You can change that property but I am guessing from your question that you are using whatever the default is.