Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE
Hi Team,
I need help with the troubleshooting below:
I am trying to migrate a working project from a computer with CCS 12.8.* to a new computer that is running CCS 20.4.0. The project is for a F28388D MCU.
I have looked at the plenty online recources that are connected to that error message but could not find one, that fits my case. The closest I got was this TI document: https://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#error-unresolved-symbols-remain
This document states: "It is quite common to hit this error if you try to create your own project based on a TivaWare or ControlSuite example but forget to add the required libraries to the project using the --library option in the linker's File Search Path options." which sounds exactly like something I could have messed up.
What I did is: I created a new project for my MCU with the project wizard. Since the old project used C2000 (version 4.02.00.00), digital power sdk (version 4.01.00.00) and motor control sdk (version 4.01.00.00), I installed those packages accordingly. Then I adjusted the product dependencies and compiler include paths in my project properties. Via the project explorer, I also clicked on "adjust linked file" for the driverlib.lib file and chose the one from here: C:/ti/C2000Ware_4_02_00_00/driverlib/f2838x/driverlib/ccs/Release/driverlib.lib
I did that for both the cpu's that my MCU / my project contains.
Then I went to properties - C2000 linker - file search path and inserted the following under --library: C:\ti\C2000Ware_4_02_00_00\driverlib\f2838x\driverlib\ccs\Release\driverlib.lib
I then also inserted the following under --search_path: C:\ti\C2000Ware_4_02_00_00\driverlib\f2838x\driverlib\ccs\Release
So I guess I should comply to the afformentioned document (?).
My build output is still the following:
[7] undefined first referenced
[8] symbol in file
[9] --------- ----------------
[10] __disable_interrupts ./src/main_cpu2.obj
[11] __enable_interrupts ./src/main_cpu2.obj
[12]error #10234-D: unresolved symbols remain
[13]error #10010: errors encountered during linking; "desire_wea_CCS_cpu2.out" not built
[14]**** Build finished ****
I checked in which files these "undefined symbols" appear (since I did not use them in main_cpu2.c):
C:\ti\C2000Ware_4_02_00_00\driverlib\f2838x\driverlib\ccs\Release\driverlib.lib
C:\Users\username\workspace_ccs\workspace_V3\wea_CCS_cpu2\CPU2_FLASH\wea_CCS_cpu2_linkinfo.xml
C:\Users\username\workspace_ccs\workspace_V3\wea_CCS_cpu2\CPU2_FLASH\wea_CCS_cpu2.map
C:\Users\username\workspace_ccs\workspace_V3\wea_CCS_cpu2\device\driverlib\interrupt.h
Which seems odd to me, since those are all TI-generated files. My last assumption is, that the compiler version might be wrong, since the project on the old computer in CCS 12.8.* used the compiler TI v22.6.0.LTS and my new compiler is TI v22.6.3.LTS but from what I read this should not cause any trouble...
Regards,
Marvin