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.
Hello
I try to learn tms320f28335 from teaching cd. When I try to build the lab 6 exercise, i had error whose name is unresolved symbols remain due to .out file.
At output window:
----------------------------- Lab16.pjt - Debug -----------------------------
[Lab16.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "Lab16.c"
[DSP2833x_ADC_cal.asm] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "DSP2833x_ADC_cal.asm"
[DSP2833x_CodeStartBranch.asm] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "DSP2833x_CodeStartBranch.asm
[DSP2833x_SysCtrl.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "DSP2833x_SysCtrl.c"
[DSP2833x_usDelay.asm] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "DSP2833x_usDelay.asm"
[DSP2833x_GlobalVariableDefs.c] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -g -pdsw225 -fr"C:/CCStudio_v3.3/MyProjects/Lab16/Debug" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_headers/include" -i"C:/tidcs/C28/dsp2833x/v131/DSP2833x_common/include" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 --float_support=fpu32 -@"../../../../../../CCStudio_v3.3/MyProjects/Lab16/Debug.lkf" "DSP2833x_GlobalVariableDefs.c"
[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_ConfigCpuTimer C:\\CCStudio_v3.3\\MyProjects\\Lab16\\Debug\\Lab16.obj
_CpuTimer0 C:\\CCStudio_v3.3\\MyProjects\\Lab16\\Debug\\Lab16.obj
_InitCpuTimers C:\\CCStudio_v3.3\\MyProjects\\Lab16\\Debug\\Lab16.obj
_InitPieCtrl C:\\CCStudio_v3.3\\MyProjects\\Lab16\\Debug\\Lab16.obj
_InitPieVectTable C:\\CCStudio_v3.3\\MyProjects\\Lab16\\Debug\\Lab16.obj
error: unresolved symbols remain
error: errors encountered during linking; "./Debug/Lab16.out" not built
>> Compilation failure
Build Complete,
1 Errors, 0 Warnings, 0 Remarks.
How can i build without error? Can you help me ?
Is the project you are building actually compiling the C source files that contain these labels?
For instance, the _ConfigCpuTimer, _CpuTimer0 and _InitCpuTimers are defined in <CONTROLSUITE_INSTALL_DIR>\device_support\f2833x\v132\DSP2833x_common\source\DSP2833x_CpuTimers.c
The _InitPieCtrl is in <CONTROLSUITE_INSTALL_DIR>\device_support\f2833x\v132\DSP2833x_common\source\DSP2833x_PieCtrl.c
The _initPieVectTable is in <CONTROLSUITE_INSTALL_DIR>\device_support\f2833x\v132\DSP2833x_common\source\DSP2833x_PieVect.c
You need to make sure these are in your project and compiled accordingly.