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.

TM4C123GH6PM: create/build TIRTOS project using command line

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: CCSTUDIO, , SYSBIOS

Hello,

I have some code and I want to create/build a CCS projects using this codes but the project shall be using the TI-RTOS.

so what is the required command line to create/build the project?

I checked the link Create and Build Projects Using Command Line (ti.com) but it isn't obvious what is the required options to create the project using the TI-RTOS, also if i created the project using the CCS then i tried to use the command line, the building will fail while if it tried to build from the CCS, the building will success.

///////////////// building command

C:\ti\ccs1010\ccs\eclipse\eclipsec -noSplash -data "D:\FirmwareMine\Projects\FWTFS\GESAF\Examples\CCS_new2\workspace" ^
-application com.ti.ccstudio.apps.buildProject^
-ccs.projects TestProject ^
-ccs.configuration Debug

///////////////building output

D:\FirmwareMine\Projects\FWTFS\GESAF\Examples\CCS_new2>C:\ti\ccs1010\ccs\eclipse\eclipsec -noSplash -data "D:\FirmwareMine\Projects\FWTFS\GESAF\Examples\CCS_new2\workspace" -application com.ti.ccstudio.apps.projectBuild -ccs.workspace

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Thu Jan 14 14:40:11 EET 2021]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

================================================================================
Pre processing...


================================================================================
Building...


**** Build of configuration Debug for project TestProject ****

"C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "../TestProject.cfg"
Invoking: XDCtools
"C:/ti/ccs1010/xdctools_3_61_02_27_core/xs" --xdcpath="C:/ti/tirtos_tivac_2_16_01_14/packages;C:/ti/tirtos_tivac_2_16_01_14/products/tidrivers_tivac_2_16_01_13/packages;C:/ti/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_tivac_2_16_01_14/products/ndk_2_25_00_09/packages;C:/ti/tirtos_tivac_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/tirtos_tivac_2_16_01_14/products/ns_1_11_00_10/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C123GH6PM -r release -c "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path=\"C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.1.71b\" --include_path=\"C:/ti/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/posix\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/TestProject\" --include_path=\"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/TestProject/GESAF/ApplicationLayer/Application/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/TestProject/GESAF/ApplicationLayer\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/Environment/StdLog\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/Environment/StdType\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/Environment/EnvironmentAbstraction/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/MCAbstractionLayer/Communication/I2C/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/MCAbstractionLayer/Communication/SPI/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/MCAbstractionLayer/Communication/UART/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/MCAbstractionLayer/IO/DIO/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/MCAbstractionLayer/IO/ADC/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/ServiceLayer/Display/CLCDE/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/ServiceLayer/Diagnostic/PROBE/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/ServiceLayer/Diagnostic/ELOG/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/ServiceLayer/Memory/NVM/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/ServiceLayer/Memory/CBUF/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/IO/IoHwAb/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/Pressure/BMX280/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/Pressure/BMP180/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/Communication/NRF24l01P/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/Communication/NGPS/GESAF/include\" --include_path=\"D:/FirmwareMine/Projects/FWTFS/GESAF/Examples/CCS_new2/GESAF_STACK/PlatformAbstractionLayer/Display/HD44780/GESAF/include\" --define=ccs=\"ccs\" --define=PART_TM4C123GH6PM --define=ccs --define=TIVAWARE -g --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "../TestProject.cfg"
configuring TestProject.xem4f from package/cfg/TestProject_pem4f.cfg ...
subdir_rules.mk:12: recipe for target 'build-2007359121-inproc' failed
error: xdc.cfg.Program: "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
js: "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_61_02_27_core\gmake.exe: *** [package.mak:202: package/cfg/TestProject_pem4f.xdl] Error 1
js: "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-2007359121-inproc] Error 1
gmake: *** [build-2007359121] Error 2
subdir_rules.mk:9: recipe for target 'build-2007359121' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Please advise!

Thanks,

Mohammed

  • Mohammed,

    Based on the error message I believe you are not using the correct xdctools version.  

    error: xdc.cfg.Program: "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.knl' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.

    Basically software packages like TI-RTOS are closely tied to xdctools.  The software package will specify a version to use.  I will loop in the TM4C team as they would know the specific version.  The release notes for TI-RTOS 2.16 mention xdctools 3.32.  http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/2_16_01_14/exports/tirtos_full_2_16_01_14/release_notes_tirtos_tivac_2_16_01_14.html

    I found a bug report that mentions that this TI-RTOS does not work with newer xdctools versions.  https://sir.ext.ti.com/jira/browse/EXT_EP-9284

    Regards,

    John

  • Hello Mohammed,

    The XDCtools that was used for validation of TI-RTOS for Tiva-C is XDCTools 3.32.00.06. Looking at my TI-RTOS products, that is still what I am using today.

    Please try to see if that works first.

  • Thank you very much John,

    Actually, I already have two versions of the CCS one is version 9.30 and the other is 10. so some reason i was using CCS 9.30 all the time but when i tried to use the command line, i used version 10 which invokes the newer version of the XDCtool.

    anyway, once i invoked the eclipsec of the CCS version 9.30, it invoked the correct version of the XDCtool version 3.32.00.06.

    so the build problem had been resolved, now any idea about the required parameters that needs to create the project? 

    Mohammed

  • Thank you very much Ralph.

    this resolved the build problem, so what about the creation for the project using the command line, it isn't clear what is the required options.

    Mohammed

  • Hello Mohammed,

    I have not done any command line builds for TI-RTOS for TM4C, so I am not certain either. I have been trying to search for something to indicate what is needed but have not been able to find anything.

    Can you share what steps you are taking right now? Are you just using an example project and if so which one? If not, can you try with an example project and verify you are still having that issue? I ask all of this because I would need to try and recreate the issue to be able to try and help here. I don't really have any experience with this, but I'll see what I can do.