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.

TMS320F28P659DK-Q1: Compiler not detetcting the variables definded under CPU1 in the Sysctrl.C file

Part Number: TMS320F28P659DK-Q1
Other Parts Discussed in Thread: C2000WARE

I am new to this dual core controller

I have added CPU1 in predefined symbol.

And started a test code.

"C:\\ti\\ccs1240\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building target: "test.out"
Invoking: C2000 Linker
"C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcrc --fp_mode=relaxed --advice:performance=all --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"test.map" --stack_size=0x200 --warn_sections -i"C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="test_linkInfo.xml" --rom_model -o "test.out" "./f28p65x_codestartbranch.obj" "./f28p65x_cputimers.obj" "./f28p65x_dbgier.obj" "./f28p65x_defaultisr.obj" "./f28p65x_dma.obj" "./f28p65x_gpio.obj" "./f28p65x_piectrl.obj" "./f28p65x_pievect.obj" "./f28p65x_sdfm_drivers.obj" "./f28p65x_struct.obj" "./f28p65x_sysctrl.obj" "./f28p65x_tempsensorconv.obj" "./f28p65x_usdelay.obj" "./main.obj" "../28p65x_generic_ram_lnk_cpu1.cmd" -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
ClkCfgRegs ./f28p65x_sysctrl.obj
CpuSysRegs ./f28p65x_sysctrl.obj
Dcc0Regs ./f28p65x_sysctrl.obj
Dcc1Regs ./f28p65x_sysctrl.obj
WdRegs ./f28p65x_sysctrl.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "test.out" not built

>> Compilation failure
makefile:148: recipe for target 'test.out' failed
gmake[1]: *** [test.out] Error 1
makefile:144: recipe for target 'all' failed
gmake: *** [all] Error 2

If any one have idea please let me know.

  • Hi Arun,

    Can you start off with one of our C2000WARE SDK's dual core device support example located here: C:\ti\c2000\C2000Ware_5_01_00_00\device_support\f28p65x\examples\dual\dma\

    There seems to be undefined references for clock config, cpusys, dcc and watchdog which should be defined in the f28p65x_globalvariabledefs.c file. Can you add this file to your project and try rebuilding?

    Best,

    Ryan Ma