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.
Tool/software: Code Composer Studio
I seem to be getting closer. I am getting a linker error indicating a library cannot be found. But, the library file is in a path that is included in the link command line:
Building target: "C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH/../Debug/T4_CP_Build.out"
Invoking: C2000 Linker
"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.2.LTS/bin/cl2000" -v28 -ml -mt --advice:performance=all --define=_DEBUG --define=LARGE_MODEL -g --diag_wrap=off --display_error_number --c_src_interlist --asm_directory="C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug" --obj_directory="C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug" -z -m"C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/T4_CP_Build.map" --stack_size=0x400 --warn_sections -i"C:/OBVP-GCBR/THAAD/CODE/Control DSP/lib/Flash2812_API_V210/lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.2.LTS/lib" -i"C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH" -i"C:/OBVP-GCBR/THAAD/CODE/Control DSP" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="CP_FLASH_linkInfo.xml" --rom_model -o "C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH/../Debug/T4_CP_Build.out" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_AngSpeed.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_BIT.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_FOC.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_Fault.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_HWS.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_ISR.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_MsgProcessor.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/app_PI.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_adc.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_can.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_canC.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_flash.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_isr.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_pwm.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_sci.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_spi.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_sysctrl.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/bsp_timers.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/global.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/main.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/Debug/vector.obj" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH.cmd" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/lib/Flash2812_API_V210/lib/Flash2812_API_V210.lib" "C:/OBVP-GCBR/THAAD/CODE/Control DSP/lib/IQmath/v15a/lib/IQmath.lib" -lrts2800_ml.lib -llibc.a
<Linking>
"C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH.cmd", line 66: error #10008-D: cannot find file "Flash2812_API_V210.lib"
"C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH.cmd", line 67: error #10008-D: cannot find file "Flash2812_API_V210.lib"
The library file “Flash2812_API_V210.lib” is located in folder “C:/OBVP-GCBR/THAAD/CODE/Control DSP/lib/Flash2812_API_V210/lib”.
Also, I unchecked “ XDAIS” in the Products tab and checked the “XDCtools” and I get the following warnings. Is this a problem?
Description Resource Path Location Type
Build-variable 'XDAIS_CG_ROOT' cannot be resolved. This project may not build as expected. CP_FLASH properties Problem
Invalid project path: Include path not found (\packages\ti\xdais). CP_FLASH pathentry Path Entry Problem
Invalid project path: Include path not found (C:\OBVP-GCBR\THAAD\CODE\include). CP_FLASH pathentry Path Entry Problem
Thanks for your help!
Ok. In that case can you check the file search path options for the linker and make sure that
C:/OBVP-GCBR/THAAD/CODE/Control DSP/lib/Flash2812_API_V210/lib/Flash2812_API_V210.lib
Is listed before
C:/OBVP-GCBR/THAAD/CODE/Control DSP/CP_FLASH.cmd
Something like this (your options would list a lot more files, I just created this for reference). You can use the up down arrow to change the order.
My thought is that the library needs to be found prior to the linker command file referencing it.
Regards,
John