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: XDCtools

Part Number: EK-TM4C123GXL

Tool/software: Code Composer Studio

Hi all, Is there a way to solve this problem:

**** Build of configuration Debug for project helloworld_EK_TM4C123GXL_TI ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 2 all -O 
 
Building file: "../helloworld.cfg"
Invoking: XDCtools
"C:/ti/ccs930/xdctools_3_60_02_34_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/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path=\"C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI\" --include_path=\"C:/Users/hardi/workspace_v9/helloworld_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/ccs930/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  " "../helloworld.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring helloworld.xem4f from package/cfg/helloworld_pem4f.cfg ...
subdir_rules.mk:19: recipe for target 'build-792163521-inproc' failed
error: xdc.cfg.Program: "C:/ti/ccs930/xdctools_3_60_02_34_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/ccs930/xdctools_3_60_02_34_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package.mak:202: package/cfg/helloworld_pem4f.xdl] Error 1
js: "C:/ti/ccs930/xdctools_3_60_02_34_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-792163521-inproc] Error 1
gmake: *** No rule to make target 'build-792163521', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-792163521', needed by 'configPkg/linker.cmd'.
gmake: *** No rule to make target 'build-792163521', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-792163521', needed by 'configPkg/compiler.opt'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

thank you,

Scott

  • Scott,

    Looks like it needs an older version of XDCTools.  I took a look at the release notes for TI-RTOS 2.16 and it mentions XDCTools 3.32.  You can download older versions of XDCTools here: http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/

    Regards,

    John

  • John,

    I should have mentioned this in the original post, but I'm trying to run the example code helloworld_EK_TM4C123GXL_TI.

    I downloaded some previous versions of XDCTools, but I don't know how to point to them. Can you please let me know how I can change the XDC_CG_ROOT path variable? I've tried going into Preferences but the Edit button is greyed-out.

  • Scott,

    CCS should detect the new installation of XDCTools and list it here:

    If it is not listed you can specify where it is installed at the top of that dialog and then refresh.

    Once the XDCTools installation is detected you can set your project to use it. Here is a screen shot from CCSv9.30 showing project properties and where the xdctools version is specified.  Changing this will result in that other variable being changed.

    Regards,

    John

  • John,

    Thanks for the tip, very helpful. I tried xdctools_3_32_00_06 and here's what I get:

    **** Build of configuration Debug for project helloworld_EK_TM4C123GXL_TI ****
    
    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 2 all -O 
     
    Building file: "../helloworld.cfg"
    Invoking: XDCtools
    making ../src/sysbios/sysbios.aem4f ...
    "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/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path=\"C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI\" --include_path=\"C:/Users/hardi/workspace_v9/helloworld_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/ccs930/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  " "../helloworld.cfg"
    gmake[1]: Entering directory 'C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI/src/sysbios'
    clem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/BIOS.c ...
    makefile:57: recipe for target 'BIOS.obj' failed
    /usr/bin/sh: -c: line 24: syntax error: unexpected end of file
    gmake[1]: *** [BIOS.obj] Error 258

    I'm also seeing this when I "clean" the project:

    Then I tried building without clean, I got:

    **** Build of configuration Debug for project helloworld_EK_TM4C123GXL_TI ****
    
    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 2 all -O 
     
    Building file: "../helloworld.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_32_02_25_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/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path=\"C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI\" --include_path=\"C:/Users/hardi/workspace_v9/helloworld_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/ccs930/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  " "../helloworld.cfg"
    making package.mak (because of .xdcenv.mak) ...
    configuring helloworld.xem4f from package/cfg/helloworld_pem4f.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI/src/sysbios/sysbios.aem4f ...
    gmake[1]: Entering directory `C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI/src/sysbios'
    clem4f C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/BIOS.c ...
    gmake[1]: Leaving directory `C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI/src/sysbios'
    Build of libraries failed.
    subdir_rules.mk:19: recipe for target 'build-792163521-inproc' failed
          0 [main] sh 10712 sync_with_child: child 5672(0x230) died before initialization with status code 0xC0000142
         20 [main] sh 10712 sync_with_child: *** child state waiting for longjmp
    C:/Users/hardi/AppData/Local/Temp/make10752-1.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [BIOS.obj] Error 128
    gmake: *** [C:/Users/hardi/workspace_v9/helloworld_EK_TM4C123GXL_TI/src/sysbios/sysbios.aem4f] Error 2
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_02_25_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_02_25_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/helloworld_pem4f.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/helloworld_pem4f.xdl'
    gmake.exe: *** [package/cfg/helloworld_pem4f.xdl] Deleting file `package/cfg/helloworld_pem4f.h'
    gmake.exe: *** [package/cfg/helloworld_pem4f.xdl] Deleting file `package/cfg/helloworld_pem4f.c'
    js: "C:/ti/xdctools_3_32_02_25_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-792163521-inproc] Error 1
    gmake: *** [build-792163521] Error 2
    subdir_rules.mk:16: recipe for target 'build-792163521' failed
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    


    I googled "child state waiting for longjmp" and it seems to be related to Windows PATH var. 

    Is there an option in CCS to report in a log file where it's getting libraries?
    thank you,
    Scott
  • Scott,

    I asked around and this is likely an issue with cygwin.

    The FAQ here has a link on ways to resolve this:

    https://e2e.ti.com/support/tools/ccs/f/81/t/786662

    Regards,

    John

  • John,

    Thanks for your help!  that seems to have fixed the problem. I'm not sure exactly what fixed it because I changed a couple Windows path variables, restarted CCS a few times, and rebuilt the project a few times. I followed the suggestions from the link you sent me: and I removed WinAVR completely and removed a path variable C:\Program Files\Texas Instruments. So, I think it came down to removing the path variables. I posted them here in case anyone else has this issue.

    thanks again!