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.
Hi,
I'm having issues with building an old project using CCS V3.3. All of the files in my project compile correctly until it gets to one .cmd file where every symbol has an error that says "Undefined symbol". Is there something special I need to do to get that file to compile?
Thanks
Hi Daniel,
symbol has an error that says "Undefined symbol"
This is a fairly common linker error. Please see the below link for more details:
https://software-dl.ti.com/ccs/esd/documents/dmed/HTML/10234.html
Thanks
ki
This is the syntax of the statement that is throwing an error. There are other variables in the same file that are written in the same way but don't give an error when the project is built. Because of this, I'm not sure that I'm missing a library file but I don't know what the issue would be.
Does your project use DSP/BIOS? And if so, are you including the necessary files for it?
Yes it does use DSP/BIOS and it includes a .tcf file. Are there other files that need to be included?
What are all the error messages? Please copy and paste them to a text file and attach it to this thread
Here are the errors
------------------------- Tahiti_MainFwr.pjt - Debug ------------------------- [Linking...] "C:\CCStudio_v3.3PLA\C6000\cgtools\bin\cl6x" -@"Debug.lkf" <Linking> "Tahiticfg.cmd", line 186: warning: no matching section "Tahiticfg.cmd", line 215: warning: no matching section "Tahiticfg.cmd", line 222: warning: no matching section "Tahiticfg.cmd", line 226: warning: no matching section "Tahiticfg.cmd", line 258: warning: no matching section "Tahiticfg.cmd", line 262: warning: no matching section "Tahiticfg.cmd", line 266: warning: no matching section "Tahiticfg.cmd", line 270: warning: no matching section "Tahiticfg.cmd", line 274: warning: no matching section "Tahiticfg.cmd", line 278: warning: no matching section "Tahiticfg.cmd", line 315: warning: no matching section "Tahiticfg.cmd", line 339: warning: no matching section "Tahiticfg.cmd", line 343: warning: no matching section "Tahiticfg.cmd", line 347: warning: no matching section "Tahiticfg.cmd", line 351: warning: no matching section "Tahiticfg.cmd", line 355: warning: no matching section "Tahiticfg.cmd", line 359: warning: no matching section "Tahiticfg.cmd", line 363: warning: no matching section "Tahiticfg.cmd", line 367: warning: no matching section "Tahiticfg.cmd", line 371: warning: no matching section "Tahiticfg.cmd", line 375: warning: no matching section "Tahiticfg.cmd", line 379: warning: no matching section "Tahiticfg.cmd", line 383: warning: no matching section undefined first referenced symbol in file --------- ---------------- CLK_COUNTSPMS C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_HTIMEDIV C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_HTIMEMULT C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_LTIMEDIV C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_LTIMEMULT C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_PRD C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> CLK_TDDR C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> GBL_CACHE C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<hwi.o67P> GBL_CLKIN C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> GBL_FREQ C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> GBL_TRCMASKVALUE C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<trc.o67P> LOG_system C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> MEM_gNumHeap C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> PRD_SCALAR C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> PRD_SWIHANDLE C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> SDRAM_HEAP SDRAM_SECTOR_0 SYS$config C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> _BIOS_init C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<autoinit.o67P> _BIOS_start C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<boot.o67P> _MEM_memtab C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<biosdata.o67P> _main C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib/bios_NONINST.a67P<boot.o67P> error: unresolved symbols remain "Tahiticfg.cmd", line 12: error: undefined symbol "SDRAM_HEAP" used in expression "Tahiticfg.cmd", line 14: error: undefined symbol "SDRAM_HEAP" used in expression "Tahiticfg.cmd", line 27: error: undefined symbol "SDRAM_SECTOR_0" used in expression "Tahiticfg.cmd", line 30: error: undefined symbol "SDRAM_HEAP" used in expression "Tahiticfg.cmd", line 42: error: undefined symbol "SDRAM_HEAP" used in expression "Tahiticfg.cmd", line 72: error: undefined symbol "IRAM" used in expression "Tahiticfg.cmd", line 73: error: undefined symbol "SDRAM" used in expression "Tahiticfg.cmd", line 74: error: undefined symbol "IRAM_CODE" used in expression "Tahiticfg.cmd", line 75: error: undefined symbol "FLASH" used in expression "Tahiticfg.cmd", line 76: error: undefined symbol "SDRAM_SECTOR_0" used in expression "Tahiticfg.cmd", line 77: error: undefined symbol "SDRAM_HEAP" used in expression "Tahiticfg.cmd", line 78: error: undefined symbol "PRD_clock" used in expression "Tahiticfg.cmd", line 79: error: undefined symbol "PRD_Watchdog" used in expression "Tahiticfg.cmd", line 80: error: undefined symbol "HWI_RESET" used in expression "Tahiticfg.cmd", line 81: error: undefined symbol "HWI_NMI" used in expression "Tahiticfg.cmd", line 82: error: undefined symbol "HWI_RESERVED0" used in expression "Tahiticfg.cmd", line 83: error: undefined symbol "HWI_RESERVED1" used in expression "Tahiticfg.cmd", line 84: error: undefined symbol "HWI_INT4" used in expression "Tahiticfg.cmd", line 85: error: undefined symbol "HWI_INT5" used in expression "Tahiticfg.cmd", line 86: error: undefined symbol "HWI_INT6" used in expression "Tahiticfg.cmd", line 87: error: undefined symbol "HWI_INT7" used in expression "Tahiticfg.cmd", line 88: error: undefined symbol "HWI_INT8" used in expression "Tahiticfg.cmd", line 89: error: undefined symbol "HWI_INT9" used in expression "Tahiticfg.cmd", line 90: error: undefined symbol "HWI_INT10" used in expression "Tahiticfg.cmd", line 91: error: undefined symbol "HWI_INT11" used in expression "Tahiticfg.cmd", line 92: error: undefined symbol "HWI_INT12" used in expression "Tahiticfg.cmd", line 93: error: undefined symbol "HWI_INT13" used in expression "Tahiticfg.cmd", line 94: error: undefined symbol "HWI_INT14" used in expression "Tahiticfg.cmd", line 95: error: undefined symbol "HWI_INT15" used in expression "Tahiticfg.cmd", line 96: error: undefined symbol "PRD_swi" used in expression "Tahiticfg.cmd", line 97: error: undefined symbol "KNL_swi" used in expression "Tahiticfg.cmd", line 98: error: undefined symbol "TSK_idle" used in expression "Tahiticfg.cmd", line 99: error: undefined symbol "TSK_MAIN" used in expression "Tahiticfg.cmd", line 100: error: undefined symbol "TSK_UARTA_TRANSFER" used in expression "Tahiticfg.cmd", line 101: error: undefined symbol "TSK_Process" used in expression "Tahiticfg.cmd", line 102: error: undefined symbol "TSK_Parser" used in expression "Tahiticfg.cmd", line 103: error: undefined symbol "TSK_ServoControl" used in expression "Tahiticfg.cmd", line 104: error: undefined symbol "TSK_HouseKeeping" used in expression "Tahiticfg.cmd", line 105: error: undefined symbol "TSK_TrajectoryScheduler" used in expression "Tahiticfg.cmd", line 106: error: undefined symbol "TSK_Gpib" used in expression "Tahiticfg.cmd", line 107: error: undefined symbol "TSK_UARTB_TRANSFER" used in expression "Tahiticfg.cmd", line 108: error: undefined symbol "TSK_GpibIsr" used in expression "Tahiticfg.cmd", line 109: error: undefined symbol "TSK_SerialPortAInput" used in expression "Tahiticfg.cmd", line 110: error: undefined symbol "TSK_SerialPortBInput" used in expression "Tahiticfg.cmd", line 111: error: undefined symbol "TSK_SerialPortAResponse" used in expression "Tahiticfg.cmd", line 112: error: undefined symbol "TSK_SerialPortBResponse" used in expression "Tahiticfg.cmd", line 113: error: undefined symbol "TSK_FPButtonHandler" used in expression "Tahiticfg.cmd", line 114: error: undefined symbol "TSK_TECCalibration" used in expression "Tahiticfg.cmd", line 115: error: undefined symbol "TSK_TECControl" used in expression "Tahiticfg.cmd", line 116: error: undefined symbol "LOG_system" used in expression "Tahiticfg.cmd", line 117: error: undefined symbol "SEM_UARTA" used in expression "Tahiticfg.cmd", line 118: error: undefined symbol "SEM_GPIB" used in expression "Tahiticfg.cmd", line 119: error: undefined symbol "SEM_UARTB" used in expression "Tahiticfg.cmd", line 120: error: undefined symbol "SEM_UARTA_TRANSFER" used in expression "Tahiticfg.cmd", line 121: error: undefined symbol "SEM_ADC" used in expression "Tahiticfg.cmd", line 122: error: undefined symbol "SEM_EXECUTE_COMMAND" used in expression "Tahiticfg.cmd", line 123: error: undefined symbol "SEM_SERVO_CONTROL" used in expression "Tahiticfg.cmd", line 124: error: undefined symbol "ParserProcSem" used in expression "Tahiticfg.cmd", line 125: error: undefined symbol "DownloadSem" used in expression "Tahiticfg.cmd", line 126: error: undefined symbol "TrajectorySchedulerSem" used in expression "Tahiticfg.cmd", line 127: error: undefined symbol "CommandWaitSem" used in expression "Tahiticfg.cmd", line 128: error: undefined symbol "GpibTaskSem" used in expression "Tahiticfg.cmd", line 129: error: undefined symbol "SEM_UARTB_TRANSFER" used in expression "Tahiticfg.cmd", line 130: error: undefined symbol "SEM_DataAcquisition" used in expression "Tahiticfg.cmd", line 131: error: undefined symbol "SerialPortBInputSem" used in expression "Tahiticfg.cmd", line 132: error: undefined symbol "SerialPortAOutputSem" used in expression "Tahiticfg.cmd", line 133: error: undefined symbol "SerialPortAInputSem" used in expression "Tahiticfg.cmd", line 134: error: undefined symbol "SerialPortBOutputSem" used in expression "Tahiticfg.cmd", line 135: error: undefined symbol "HousekpgSem" used in expression "Tahiticfg.cmd", line 136: error: undefined symbol "FPButtonHandlerSem" used in expression "Tahiticfg.cmd", line 137: error: undefined symbol "SEM_TECCalibration" used in expression "Tahiticfg.cmd", line 138: error: undefined symbol "SEM_TECControl" used in expression "Tahiticfg.cmd", line 139: error: undefined symbol "CommandProcQueHandle" used in expression "Tahiticfg.cmd", line 140: error: undefined symbol "ParserProcQueHandle" used in expression "Tahiticfg.cmd", line 141: error: undefined symbol "AsciiCommandResponseQueHandle" used in expression "Tahiticfg.cmd", line 142: error: undefined symbol "DownloadProcQueHandle" used in expression "Tahiticfg.cmd", line 143: error: undefined symbol "GpibResponseProcQueHandle" used in expression "Tahiticfg.cmd", line 144: error: undefined symbol "MessageFreepoolQueHandle" used in expression "Tahiticfg.cmd", line 145: error: undefined symbol "BufferFreepoolQueHandle" used in expression "Tahiticfg.cmd", line 146: error: undefined symbol "GpibResponseBufferQueHandle" used in expression "Tahiticfg.cmd", line 147: error: undefined symbol "EventActionProcQueHandle" used in expression "Tahiticfg.cmd", line 148: error: undefined symbol "srqQueHandle" used in expression "Tahiticfg.cmd", line 149: error: undefined symbol "SerialAResponseBufferQueHandle" used in expression "Tahiticfg.cmd", line 150: error: undefined symbol "SerialBResponseBufferQueHandle" used in expression "Tahiticfg.cmd", line 151: error: undefined symbol "SerialAResponseProcQueHandle" used in expression "Tahiticfg.cmd", line 152: error: undefined symbol "SerialBResponseProcQueHandle" used in expression "Tahiticfg.cmd", line 153: error: undefined symbol "FPButtonQueHandle" used in expression "Tahiticfg.cmd", line 170: error: undefined symbol "GBL_CACHE" used in expression "Tahiticfg.cmd", line 189: error: undefined symbol "CLK_PRD" used in expression "Tahiticfg.cmd", line 190: error: undefined symbol "CLK_COUNTSPMS" used in expression "Tahiticfg.cmd", line 191: error: undefined symbol "CLK_REGS" used in expression "Tahiticfg.cmd", line 192: error: undefined symbol "CLK_USETIMER" used in expression "Tahiticfg.cmd", line 193: error: undefined symbol "CLK_TIMERNUM" used in expression "Tahiticfg.cmd", line 194: error: undefined symbol "CLK_TDDR" used in expression "Tahiticfg.cmd", line 203: error: undefined symbol "HWI_CFGDISPATCHED" used in expression error: errors encountered during linking; "./Debug/Tahiti_MainFwr.out" not built >> Compilation failure Build Complete, 96 Errors, 23 Warnings, 0 Remarks.
I transferred it to a text document so I could upload it
-z -c -m"./Debug/Tahiti_MainFwr.map" -o"./Debug/Tahiti_MainFwr.out" -w -x -i"./Libraries" -i"C:/CCStudio_v3.3PLA/C6000/csl/lib" -i"C:/CCStudio_v3.3PLA/C6000/xdais/lib" -i"C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib" -i"C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/rtdx/lib/c6000" -i"C:/CCStudio_v3.3PLA/C6000/cgtools/lib" -priority "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\IRAM.cmd" "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\Tahiti.cmd" "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\Libraries\csl_C672x_03_00_09_00\dsp\lib\csl_C6727.lib" "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\PatchDspRom\applySystemPatch.obj" "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\PatchDspRom\c672xSystemPatchV2_00_00.lib"
I believe the issue is related to DSP/BIOS build issue. When you build the BIOS tcf file, it should generate the additional required files for the build. I'm not sure if they are getting generated properly in your build? In any case this is beyond my area of expertise. I will bring this thread to the attention of the device experts for further suggestions
Thanks
ki
Hello Daniel,
Please note that TMS320C6720 is an older part. Our team no longer has hardware or software expertise on this part, so any support we can offer will be limited. I am going to send your thread to another team member with experience in TI-RTOS (not DSP/BIOS) to see if they recognize anything. However, they might not be able to offer any additional assistance.
Regards,
Nick
Hi Jianzhong,
I am unable to migrate to SYS/BIOS 6 due to the requirement of using CCSv4 or higher. In order to compile this older part, I have to use CCSv3 since that is the version that was originally used to program the chip. Are there any other resources that you know of that might help me figure out these issues?
Thanks
I transferred it to a text document so I could upload it
In the Debug.lkf I noticed there are some spaces in one of the directories : Main Firmware
Spaces in pathnames can cause issues for the later generation SYS/BIOS tools, and not sure how well the DSP/BIOS tools handle them.
Maybe worth trying to rename the directory to remove the spaces.
Admittedly this is just a guess as I don't use CCS 3.3 nor DSP/BIOS.
Hi Chester,
I tried changing the directory to remove all spaces, but that didn't seem to make a difference and I'm still getting all of the same errors. Do you think it might have something to do with the syntax of some of these commands? It looks like every error points to a line in the .cmd file that includes a "*". I'm not very familiar with this syntax but I feel like I am missing something since all of the errors have that in common.
For example it points to line 186 saying there is no matching section.
Thanks
I was somehow able to find some files that were missing from the project in a location I have never checked before and that seemed to fix almost all of my issues. Thank you all for your help