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.

CCS/TMS320F28379D: SYS/BIOS incompatible task declarations

Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hello,

I am using CCS 8.3.1 with XDCtools 3.51.02.21 and BIOS 6.76.01.12


I am trying to create a project and when I create tasks through app.cfg I get incompatible declarations and it fails to compile.

These are the lines

"package/cfg/app_p28FP.c", line 24428: error: declaration is incompatible with "void task_pwmSet(xdc_UArg, xdc_UArg)" (declared at line 1262) <-----------------------------------------------------------------
"package/cfg/app_p28FP.c", line 24439: error: declaration is incompatible with "void task_printData(xdc_UArg, xdc_UArg)" (declared at line 1279) <---------------------------------------------------------------

below is the console output.

Building file: "../app.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="C:/ti/bios_6_76_01_12/packages;" xdc.tools.configuro -o configPkg -t ti.targets.C28_float -p ti.platforms.tms320x28:TMS320F28379D -r release -c "C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.4.LTS" --compileOptions "-g" "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.x28FP from package/cfg/app_p28FP.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/Users/kipke/OneDrive/Documents/FINAL_CAPSTONE_PROJECT_2019/CODE_BASE/Oct28_Workspace/gripper/src/sysbios/sysbios.a28FP ...
cl28FP C:/ti/bios_6_76_01_12/packages/ti/sysbios/BIOS.c ...
asm28FP C:/ti/bios_6_76_01_12/packages/ti/sysbios/family/c28/Hwi_asm.s28 ...
asm28FP C:/ti/bios_6_76_01_12/packages/ti/sysbios/family/c28/Hwi_disp_asm.s28 ...
asm28FP C:/ti/bios_6_76_01_12/packages/ti/sysbios/family/c28/IntrinsicsSupport_asm.s28 ...
asm28FP C:/ti/bios_6_76_01_12/packages/ti/sysbios/family/c28/TaskSupport_asm.s28 ...
ar28FP BIOS.obj c28_Hwi_asm.obj c28_Hwi_disp_asm.obj c28_IntrinsicsSupport_asm.obj c28_TaskSupport_asm.obj ...
Build of libraries done.
cl28FP package/cfg/app_p28FP.c ...

>> Compilation failure
subdir_rules.mk:12: recipe for target 'build-1293328015-inproc' failed
"package/cfg/app_p28FP.c", line 24428: error: declaration is incompatible with "void task_pwmSet(xdc_UArg, xdc_UArg)" (declared at line 1262) <-----------------------------------------------------------------
"package/cfg/app_p28FP.c", line 24439: error: declaration is incompatible with "void task_printData(xdc_UArg, xdc_UArg)" (declared at line 1279) <---------------------------------------------------------------
2 errors detected in the compilation of "package/cfg/app_p28FP.c".
gmake.exe: *** [package/cfg/app_p28FP.mak:18: package/cfg/app_p28FP.o28FP] Error 1
js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1293328015-inproc] Error 1
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/linker.cmd'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1293328015', needed by 'configPkg/compiler.opt'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Any help would be appreciated thanks.

  • Hi Chris,

    Can you include the code in the .cfg? Here's an example in the .cfg

    var task0Params = new Task.Params();
    task0Params.instance.name = "task1";
    task0Params.stackSize = 512;
    Program.global.task1 = Task.create("&task1Fxn", task0Params);

    Then in the source, I have this

    Void task1Fxn(UArg arg0, UArg arg1)
    {
       ...

    Todd

  • Hi Todd,


    I had the function name and handle as the same identifier, this may have been the issue?

    I deleted the task and created a new one with a different handle name, it builds now without errors.

    Cheers