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.

TM4C129XNCZAD: CCStudio 11.2 command line manipulation to be used in docker environment

Part Number: TM4C129XNCZAD
Other Parts Discussed in Thread: CCSTUDIO

Hi, 

I'm working to setup the build environment needed to compile the code that will go in our product which is using TM4C129XNCZAD. This build environment will be a docker setup that will run on Microsoft Azure DevOps

The purpose of this is to be able to reproduce the build and make code correction easily even in 20 years from now.

I'm currently able to install all the needed software in an ubuntu docker image but  CCStudio 11.2 is not detecting the installed addon. 

I'm presently installing all the following using "--unattendedmodeui none --mode unattended" option.

CCS11.2.0.00007_linux-x64.tar.gz

tirtos_tivac_setuplinux_2_10_01_38.bin

ti_cgt_tms470_5.2.9_linux_installer_x86.bin

 

Here is the DockerFile that I’m using:

##########################################################

FROM ubuntu:16.04

  

RUN dpkg --add-architecture i386

RUN apt-get update

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get install -y libc6:i386 libasound2 libusb-0.1-4 libstdc++6 libxt6 libncurses5 libcanberra-gtk-module unzip wget software-properties-common build-essential ca-certificates curl libgconf-2-4 libdbus-glib-1-2 libpython2.7 python2.7 libxtst6 at-spi2-core binutils python3-pip libtinfo5

COPY CCS11.2.0.00007_linux-x64.tar.gz /FromTi/CCS11.2.0.00007_linux-x64.tar.gz

RUN cd /FromTi/; tar -xzpvf /FromTi/CCS11.2.0.00007_linux-x64.tar.gz

COPY tirtos_tivac_setuplinux_2_10_01_38.bin /FromTi/tirtos_tivac_setuplinux_2_10_01_38.bin

RUN chmod +x /FromTi/tirtos_tivac_setuplinux_2_10_01_38.bin

COPY ti_cgt_tms470_5.2.9_linux_installer_x86.bin /FromTi/ti_cgt_tms470_5.2.9_linux_installer_x86.bin

RUN chmod +x /FromTi/ti_cgt_tms470_5.2.9_linux_installer_x86.bin

RUN /FromTi/CCS11.2.0.00007_linux-x64/ccs_setup_11.2.0.00007.run --unattendedmodeui none --debuglevel 2 --mode unattended --enable-components PF_TM4C

RUN /FromTi/tirtos_tivac_setuplinux_2_10_01_38.bin --unattendedmodeui none --mode unattended --prefix /root/ti/

RUN /FromTi/ti_cgt_tms470_5.2.9_linux_installer_x86.bin --unattendedmodeui none --mode unattended --prefix /root/ti/ccs1120/ccs/tools/compiler/

ENV PATH=/root/ti/ccs1120/ccs/eclipse/:${PATH}

VOLUME /media/XFER

WORKDIR /media/XFER

 ##########################################################

I'm building the docker image this way : 

docker build -t docker_ccstudio_dev .\Generated

I'm starting docker this way :

docker run -it --rm -v <path to firmware source code>:/media/XFER docker_ccstudio_dev /bin/bash

I can see that everything seems to be installed properly :

root@7c070d0a457f:~/ti# ls /root/ti/ccs1120/ccs/tools/compiler/
dmed ti-cgt-arm_20.2.5.LTS ti-cgt-arm_5.2.9 ti-cgt-armllvm_1.3.1.LTS
root@7c070d0a457f:~/ti# ls /root/ti
CCSExternalReferences ccs1120 tirex-localserver-3.7.1 tirtos_tivac_2_10_01_38 xdctools_3_30_04_52_core

In this docker, I import my project using the following command : eclipse -noSplash -data "/workspace" -application com.ti.ccstudio.apps.projectImport -ccs.location <path to project>

Then I try to build:

/root/ti/ccs1120/ccs/eclipse/eclipse -noSplash -data "/workspace" -application com.ti.ccstudio.apps.projectBuild -ccs.workspace

 

This is the output :

 

--------------------------------------------------------------------------------

Importing project from '/media/XFER/XXXXX...

Done!

root@3936b692ccfb:/media/XFER/3003818-firmware_v7.1/3003818# /root/ti/ccs1120/ccs/eclipse/eclipse -noSplash -data "/workspace" -application com.ti.ccstudio.apps.projectBuild -ccs.workspace

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CCS headless build starting... [Tue Apr 19 16:09:07 UTC 2022]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

================================================================================

Pre processing...

================================================================================

Building...

**** Clean-only build of configuration Debug for project XXXXXXXXXXXX ****

 

/root/ti/ccs1120/ccs/utils/bin/gmake -k clean

 

rm -rf  " _FIRMWARE_3003818.hex"  "configPkg/linker.cmd" "configPkg/compiler.opt"  " _FIRMWARE_3003818.out"

rm -rf "main.obj" "source/device.obj" "source/modules/canbus.obj" "source/modules/communication.obj" "source/modules/console.obj" "source/modules/daughtercard.obj" "source/modules/demo.obj" "source/modules/device_status.obj" "source/modules/eeprom.obj" "source/modules/ethernet.obj" "source/modules/helpers.obj" "source/modules/module_settings.obj" "source/modules/motherboard.obj" "source/modules/push_buttons.obj" "source/modules/status_leds.obj"

rm -rf "main.d" "source/device.d" "source/modules/canbus.d" "source/modules/communication.d" "source/modules/console.d" "source/modules/daughtercard.d" "source/modules/demo.d" "source/modules/device_status.d" "source/modules/eeprom.d" "source/modules/ethernet.d" "source/modules/helpers.d" "source/modules/module_settings.d" "source/modules/motherboard.d" "source/modules/push_buttons.d" "source/modules/status_leds.d"

rm -rf  "configPkg/"

Finished clean

 

**** Build Finished ****

Buildfile generation error occurred..

Product com.ti.rtsc.TIRTOStivac v2.10.1.38 is not currently installed and no compatible version is available. Please install this product or a compatible version.

Build stopped..

 ------------------------------------------------

I would like to know how to refresh code composer studio discovered products in CCStudio 11.2 with the command line to solve this issues ?

Is there any refresh needed for the compiler also ?

Where can I find ti_cgt_tms470_5.2.3_linux_installer_x86.bin ?

Thanks, 

Jean-Philippe