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
Hi all,
I am trying to import a DCAN example project for the AM437x evm into CCS and I am experiencing some issues.
When I import the project, a few of the "Includes" paths can not be found. I also receive a warning that the build-varaiable PDK_INSTALL_PATH can not be resolved. All the missing paths are also linked to this variable, as you can see from the following screenshots (Project->Properties->build->GNU Compiler->Directories):
The warnings can be seen below:
When I edit the missing paths to be C:\ti\pdk_am437x_1_0_14\packages\ti\starterware\examples\dcan instead of linking it to the PDK_INSTALL_PATH variable, all warnings disappear. However when building the project, I receive the error that there is an undefined referenence to __kill. You can refer to the build log below:
**** Build of configuration Debug for project DCAN_LoopbackExample_evmAM437x_armTestProject ****
"C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 4 all -O
Building target: "DCAN_LoopbackExample_evmAM437x_armTestProject.out"
Invoking: GNU Linker
"C:/ti/ccs910/ccs/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a8 -marm -Dam4379 -DUSE_BIOS -DSOC_AM437X -DevmAM437x -DRTOS_BUILD -DAM43XX_FAMILY_BUILD -Og -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -mfloat-abi=hard -Wl,-Map,"DCAN_LoopbackExample_evmAM437x_armTestProject.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard" -L"/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -Wl,--defsym,STACKSIZE=0x18000 -Wl,--defsym,HEAPSIZE=0x400 --specs=nano.specs -o"DCAN_LoopbackExample_evmAM437x_armTestProject.out" "./dcan_app.o" "./dma_utils.o" "./edma_utils.o" "./loopback_app_main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lgcc -lrdimon -lm -lnosys -Wl,--end-group
makefile:148: recipe for target 'DCAN_LoopbackExample_evmAM437x_armTestProject.out' failed
C:/ti/bios_6_75_02_00/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard\libg_nano.a(lib_a-signalr.o): In function `_kill_r':
/db/ztree/library/trees/newlib/newlib-a00/src/linaro/gcc-arm-none-eabi-7-2017-q4-major/src/newlib/newlib/libc/reent/signalr.c:61: undefined reference to `_kill'
collect2.exe: error: ld returned 1 exit status
makefile:144: recipe for target 'all' failed
gmake[1]: *** [DCAN_LoopbackExample_evmAM437x_armTestProject.out] Error 1
gmake: *** [all] Error 2
**** Build Finished ****
I think it is quite obvious that the error comes from the PDK_INSTALL_PATH variable, but I would be greatly appreciated if you could provide some assistance to solve this problem. I look forward to hearing from you as soon as possible. Kindly let me know if I should forward the archive file as well.
I am using CCS 9.1.0.00010 and Processor SDK RTOS 5.03.00.07.
Hello,
Uhhhhm said:When I import the project, a few of the "Includes" paths can not be found. I also receive a warning that the build-varaiable PDK_INSTALL_PATH can not be resolved. All the missing paths are also linked to this variable, as you can see from the following screenshots (Project->Properties->build->GNU Compiler->Directories):
Uhhhhm said:When I edit the missing paths to be C:\ti\pdk_am437x_1_0_14\packages\ti\starterware\examples\dcan instead of linking it to the PDK_INSTALL_PATH variable, all warnings disappear.
The generated project is designed to use the PDK_INSTALL_PATH variable. I would add that variable to the project, as a Linked Resource Path Variable, and set it to the correct path.
Example:
This should properly set up all the paths of the project and you should be able to build it successfully (worked for me)
Thanks
ki