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.

CCS/EK-TM4C123GXL: TI RTOS Build Error for the examples

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: TM4C123GH6PM, SYSBIOS

Tool/software: Code Composer Studio

Hello all, 

I am trying to learn about RTOS using TI hardware and CCS. After I installed the RTOS package for the hardware that I am using, I tried to run the examples that were pre-made. I couldn't "build" any examples, but everything went smooth with the other Tiva Series package for the H/W. 

The RTOS project is located in the same workspace, in which the other project that got built without any errors. But, still I couldn't process the build for RTOS examples. 

Here's the log : 

**** Build of configuration Debug for project empty_min_EK_TM4C123GXL_TI ****

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

Building file: "../empty_min.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages;C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages;C:/ti/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09/packages;C:/ti/tirtos_tivac_2_16_00_08/products/uia_2_00_05_50/packages;C:/ti/tirtos_tivac_2_16_00_08/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/ccs920/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path=\"C:/Users/Karthik Shanmugam/CCS_workspace_v9_2/empty_min_EK_TM4C123GXL_TI\" --include_path=\"C:/Users/Karthik Shanmugam/CCS_workspace_v9_2/empty_min_EK_TM4C123GXL_TI\" --include_path=\"C:/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b\" --include_path=\"C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/posix\" --include_path=\"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/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 " "../empty_min.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring empty_min.xem4f from package/cfg/empty_min_pem4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
Build of libraries failed.
subdir_rules.mk:19: recipe for target 'build-1848779583-inproc' failed
gmake: C:/Users/Karthik: No such file or directory
gmake: *** No rule to make target `C:/Users/Karthik'. Stop.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/empty_min_pem4f.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/empty_min_pem4f.xdl'
gmake.exe: *** [package/cfg/empty_min_pem4f.xdl] Deleting file `package/cfg/empty_min_pem4f.h'
gmake.exe: *** [package/cfg/empty_min_pem4f.xdl] Deleting file `package/cfg/empty_min_pem4f.c'
js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1848779583-inproc] Error 1
gmake: *** No rule to make target 'build-1848779583', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1848779583', needed by 'configPkg/linker.cmd'.
gmake: *** No rule to make target 'build-1848779583', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-1848779583', needed by 'configPkg/compiler.opt'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Karthik,

    This is a known issue with building TI-RTOS projects in workspaces that contain whitespaces. I see a space in your workspace: 

    C:/Users/Karthik Shanmugam/CCS_workspace_v9_2/empty_min_EK_TM4C123GXL_TI

    Try starting a new workspace with no spaces, something like c:/CCS_workspace_v9_2, then reimport the project into it and build. Let us know if that does not help resolve the issue.

  • Thanks for the response. 

    I followed your steps and it works now! So, in the beginning, I tried to change the workspace by using the "Switch workspace" option but, I got an error from CCS saying that the directory or the folder is just a read-only. 

    But, now I tried to change to a new workspace during the startup of CCS, and it worked smoothly.