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.

__FILE__ without a path in CCS 6.1.2

Other Parts Discussed in Thread: SYSBIOS, TM4C1294NCPDT

I'm trying to do get the __FILE__ to work without a path like a similar close thread I’ll link below. 

 

I'm using CCS 6.1.2

 

I found a similar solution in this thread.

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/171844/__file__-without-full-path

 

When I add:    FILENAME_IN_ECLIPSE_PROJECT="\"${InputFileName}"\"    I get a compile error.

 

Build of libraries done.

clem4f package/cfg/RTOS_pem4f.c ...

C:/Users/user/AppData/Local/Temp/make9064-1.sh: 1: Syntax error: Unterminated quoted string

gmake.exe: *** [package/cfg/RTOS_pem4f.oem4f] Error 2

js: "C:/ccs6p1p2/xdctools_3_31_00_24_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

making ../src/sysbios/sysbios.aem4f ...

gmake[1]: Entering directory `C:/SVN_ashwp1337/Tiva_Projs/conformTiva/project/src/sysbios'

 

 

I tried ${InputFileName} and ${InputFileBaseName} but got the same compile error.

 

Any ideas?

Thanks,

Doug

  • Hi Doug,

    Sorry for the delay. let me look into this and get back to you.

    Thanks

    ki

  • Hi Doug,

    When I add:    FILENAME_IN_ECLIPSE_PROJECT="\"${InputFileName}"\"    I get a compile error.

    The build errors you provided do not look related to the above. If you remove that string from the --define option, all the build errors go away?

  • I do not get the build errors when I remove the line.

  • I cannot seem to be able to reproduce the issue. I tried with both CCS 12.x and CCS 6.x. Both work fine. It seems like the error is some odd RTSC buid error. Can you try a non-RTSC project and see if that works? Can you also provide an example test project which reproduces the issue? Please try to make it as self-contained (no external dependencies) as possible.

    Thanks

    ki

  • I imported the blinky example and did a build with no problems then I added the line FILENAME_IN_ECLIPSE_PROJECT="\"${InputFileName}"\"  to the pre defined symbols and it worked.

    I then imported a RTOS example :  empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT and did a build with no problem as expected then I added the line FILENAME_IN_ECLIPSE_PROJECT="\"${InputFileName}"\"  to the pre defined symbols and it failed.

    Below is the console window output.


    **** Build of configuration Debug for project empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT ****

    "C:\\ccs6p1p2\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../empty_min.cfg'
    'Invoking: XDCtools'
    "C:/ccs6p1p2/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ccs6p1p2/tirtos_tivac_2_16_01_14/packages;C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/tidrivers_tivac_2_16_01_13/packages;C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages;C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/ndk_2_25_00_09/packages;C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/uia_2_00_05_50/packages;C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/ns_1_11_00_10/packages;C:/ccs6p1p2/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C1294NCPDT -r release -c "C:/ccs6p1p2/ccsv6/tools/compiler/ti-cgt-arm_5.2.9" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path=\"C:/SVN_ashwp1337/Tiva_Projs/conformTiva/workspace/empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT\" --include_path=\"C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.1.71b\" --include_path=\"C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/posix\" --include_path=\"C:/ccs6p1p2/ccsv6/tools/compiler/ti-cgt-arm_5.2.9/include\" -g --gcc --define=ccs=\"ccs\" --define=FILENAME_IN_ECLIPSE_PROJECT=\"\\"\"\\" --define=PART_TM4C1294NCPDT --define=ccs --define=TIVAWARE --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on " "../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 ...
    making C:/SVN_ashwp1337/Tiva_Projs/conformTiva/workspace/empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT/src/sysbios/sysbios.aem4f ...
    gmake[1]: Entering directory `C:/SVN_ashwp1337/Tiva_Projs/conformTiva/workspace/empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT/src/sysbios'
    clem4f C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/BIOS.c ...
    asmem4f C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...
    asmem4f C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...
    asmem4f C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...
    asmem4f C:/ccs6p1p2/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...
    arem4f BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...
    gmake[1]: Leaving directory `C:/SVN_ashwp1337/Tiva_Projs/conformTiva/workspace/empty_min_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT/src/sysbios'
    Build of libraries done.
    clem4f package/cfg/empty_min_pem4f.c ...
    C:/Users/l454291/AppData/Local/Temp/make32684-1.sh: 1: Syntax error: Unterminated quoted string
    gmake.exe: *** [package/cfg/empty_min_pem4f.oem4f] Error 2
    js: "C:/ccs6p1p2/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: Target `all' not remade because of errors.

    **** Build Finished ****

  • Interestingly, I can reproduce the issue in 6.1.x with the Empty Minimal Project from the TI-RTOS for Tiva 2.16. But the standard Empty projects appears fine.

    Also, the Empty Minimal Project builds fine with CCS 12.x. Can you try with the latest CCS version? Please note that CCS 6.1.x is very old and completely unsupported.

    Thanks

    ki

  • I could try a newer version of CCS but it would take quite a while to install it and import the project and get it working again then it would need to be fully tested assumig that the solution is to upgrade CCS.