Other Parts Discussed in Thread: SYSCONFIG, CCSTUDIO
Tool/software:
Dear TI Team,
due to my project I am experimenting on a commadline build for a CI/CD Implementation. One of my maingoals is to build the project without a dependency to the OS of the local development machine.
I try to build my local CCS project on a Buildserver where I use the cmdline interface of CCS.
My local machine is Windows based (Windows 10, CCS Version: 12.0.0.00009) while the build server is linux based (Ubuntu 22.04.4 LTS, CCS Version: 12.0.0.00009).
I mainly used the Documentation from Create and Build Projects Using Command Line and Code Composer Studio Installer Usage.
I installed TI MCU+ SDK, sysconfig and TI Arm Clang Compiler to ~/ti
. After that I installed CCS into ~/ti
, too.
The Versions are the same as used on the local Windows build.
ortfeld@Buildserver:~/ti/ccs12.0.0/ccs/eclipse$ ls -l ~/ti total 24 drwxr-xr-x 4 ortfeld 25830 4096 Jun 7 14:00 ccs12.0.0 drwxrwxrwx 2 ortfeld 25830 4096 Jun 7 14:00 CCSExternalReferences drwxr-xr-x 8 ortfeld 25830 4096 Jun 7 10:08 mcu_plus_sdk_am64x_09_01_00_41 drwxr-xr-x 8 ortfeld 25830 4096 Jun 7 10:03 sysconfig_1.18.0 drwxr-xr-x 6 ortfeld 25830 4096 Jun 7 13:38 ti-cgt-armllvm_3.2.0.LTS drwxrwxrwx 3 ortfeld 25830 4096 Jun 7 13:58 tirex-localserver-3.7.1
I copied my CCS project to the buildserver and imported it to the local workspace with ./eclipse -noSplash -data ~/ccs-workspace/ -application com.ti.ccstudio.apps.projectImport -ccs.location ~/<PathTo-Project>/prj
I tried to build the project, but it fails because CCS can't find the required compiler:
ortfeld@Buildserver:~/ti/ccs12.0.0/ccs/eclipse$ ./eclipse -noSplash -data ~/ccs-workspace/ -application com.ti.ccstudio.apps.projectBuild -ccs.projects prj SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CCS headless build starting... [Fri Jun 07 14:03:18 CEST 2024] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ================================================================================ Pre processing... ================================================================================ Building... **** Clean-only build of configuration Debug for project prj **** /home/ortfeld/ti/ccs12.0.0/ccs/utils/bin/gmake -k -j 8 clean -O rm -rf "syscfg/ti_dpl_config.h" "syscfg/ti_drivers_config.h" "syscfg/ti_drivers_open_close.h" "syscfg/ti_board_config.h" "syscfg/ti_board_open_close.h" "syscfg/ti_enet_config.h" "syscfg/ti_enet_open_close.h" "syscfg/ti_enet_lwipif.h" "syscfg/ti_pru_io_config.inc" "freertos.hex" "syscfg/ti_dpl_config.c" "syscfg/ti_drivers_config.c" "syscfg/ti_drivers_open_close.c" "syscfg/ti_pinmux_config.c" "syscfg/ti_power_clock_config.c" "syscfg/ti_board_config.c" "syscfg/ti_board_open_close.c" "syscfg/ti_enet_config.c" "syscfg/ti_enet_open_close.c" "syscfg/ti_enet_soc.c" "syscfg/ti_enet_lwipif.c" "freertos.elf" rm -rf "syscfg/ti_dpl_config.o" "syscfg/ti_drivers_config.o" "syscfg/ti_drivers_open_close.o" "syscfg/ti_pinmux_config.o" "syscfg/ti_power_clock_config.o" "syscfg/ti_board_config.o" "syscfg/ti_board_open_close.o" "syscfg/ti_enet_config.o" "syscfg/ti_enet_open_close.o" "syscfg/ti_enet_soc.o" "syscfg/ti_enet_lwipif.o" "<...more files...>" rm -rf "syscfg/ti_dpl_config.d" "syscfg/ti_drivers_config.d" "syscfg/ti_drivers_open_close.d" "syscfg/ti_pinmux_config.d" "syscfg/ti_power_clock_config.d" "syscfg/ti_board_config.d" "syscfg/ti_board_open_close.d" "syscfg/ti_enet_config.d" "syscfg/ti_enet_open_close.d" "syscfg/ti_enet_soc.d" "syscfg/ti_enet_lwipif.d" "<...more files...>" rm -rf "syscfg/" Finished clean **** Build Finished **** Buildfile generation error occurred.. Product ti_cgt_tiarmclang v3.2.0.00 is not currently installed and no compatible version is available. Please install this product or a compatible version. Build stopped.. ================================================================================ CCS headless build complete! 1 out of 1 projects have errors.
How can this problem be tackled? Is there a command telling CCS where the Compiler is installed? I tried to add a link or move the compiler directory ti-cgt-armllvm_3.2.0.LTS
itself to ~/ti/ccs12.0.0/tools/compiler
, but it didn't helped.
Is it possible that there is a dependency left in the project settings from the local windows project.
Is there more documentation or a guideline how to implement such a CCS headless build for a CI/CD Pipeline on a buildserver?
Many thanks in advance!
Daniel Ortfeld