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.

Error The Filename Or Extension Is Too Long

Other Parts Discussed in Thread: CC1352P

Hi Experts,

I'm using PinInterrupt example CC1352P --> TI-RTOS --> TI clang complier for building a project standalone with Edge impulse.

When I am trying to compile with some precompiled headers, I am getting into " The filename or extension too long OxCE " issue as below

tiarmclang: error: unable to execute command: Couldn't execute program 'C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin\tiarmlnk.exe': The filename or extension is too long. (0xCE)
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang.out] Error 1
gmake[1]: Target 'secondary-outputs' not remade because of errors.
gmake: *** [all] Error 2
makefile:919: recipe for target 'all' failed

I am not able to understand why the issue is happening exactly..

Could you please help me to understand , When does this issue happen exactly? and How do we solve it in CCS?

Console details attachment below :

  • How do we solve it in CCS?

    Try changing the filename length of one of the source files. Making it smaller or larger seems to fix the issue in other environments.

    https://github.com/android/ndk/issues/1241#issuecomment-1028944920

  • Hey Kier,

    Thanks for your support!

    I will try building the project with your suggestion, it would be curious to see if it works,

    and also, In that Github link, they've suggested using the option -v to clear the bugs... Same mentioned in my CCS raw console log output. 

    I'm not sure where to include this command -v exactly, Could you shed some light on it here !!

    Regards,

    Keerthivasan

  • Ki Keerthivasan,

    '-v' is the verbose option for the tiarmclang command- line which can be added from Project Properties -> Build -> Arm Compiler.  Please review the TI Arm Clang Compiler Tools User's Guide for more information.

    Regards,
    Ryan

  • Hey Ryan Brown,

    Thanks for the explanation !

    I referred that TI Arm Clang Compiler Tools User's Guide , I'm not getting it clearly on how to configure -v verbose in the command line??

    I attaching the project were, I'm working on .. 

     ei_sensor_CC1352P1_LAUNCHXL_tirtos_ticlang.zip

    Any ideas??

    Regards

    Keerthivasan,

  • Add -v to "Command" or select "Enable verbose output" from Advanced Options -> Diagnostic Options.

    Regards,
    Ryan

  • Hey Ryan Brown,

    Verbose executed and attached the information below ..


    makefile:946: recipe for target 'ei_sensor_CC1352P1_LAUNCHXL_tirtos_ticlang.out' failed
    TI Arm Clang Compiler 1.3.0.LTS
    Target: arm-ti-none-eabi
    Thread model: posix
    InstalledDir: C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin

    tiarmclang: error: unable to execute command: Couldn't execute program 'C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin\tiarmlnk.exe': The filename or extension is too long.  (0xCE)

    How do i change the filename or extension that would enable me to achieve arm-ti-none-eabi target?

    Regards,

    Keerthivasan

  • I did not observe any similar issues using the pinInterrupt example, CCS 11.1, TI-Clang 1.3.0.LTS , and SDK 5.10

    **** Build of configuration Debug for project pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang ****
    
    "C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../pinInterrupt.syscfg"
    Invoking: SysConfig
    "C:/ti/sysconfig_1.8.0/sysconfig_cli.bat" -s "C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/.metadata/product.json" --script "C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/pinInterrupt.syscfg" -o "syscfg" --compiler ticlang
    Running script...
    Validating...
    Generating Code (pinInterrupt.syscfg)...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_devices_config.c...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_drivers_config.c...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_drivers_config.h...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_utils_build_linker.cmd.genlibs...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\syscfg_c.rov.xs...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_utils_runtime_model.gv...
    Writing C:\Users\a0274016\workspace_v11\pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang\Debug\syscfg\ti_utils_runtime_Makefile...
    Finished building: "../pinInterrupt.syscfg"
     
    Building file: "../main_tirtos.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source/ti/posix/ticlang" -DDeviceFamily_CC13X2 -gstrict-dwarf -gdwarf-3 -march=armv7e-m -MMD -MP -MF"main_tirtos.d_raw" -MT"main_tirtos.o" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug/syscfg"  @"C:/Users/a0274016/workspace_v11/tirtos_builds_cc13x2_cc26x2_release_ticlang_5_10_00_48_s/Debug/configPkg/compiler.opt"  -o"main_tirtos.o" "../main_tirtos.c"
    Finished building: "../main_tirtos.c"
     
    Building file: "../pinInterrupt.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source/ti/posix/ticlang" -DDeviceFamily_CC13X2 -gstrict-dwarf -gdwarf-3 -march=armv7e-m -MMD -MP -MF"pinInterrupt.d_raw" -MT"pinInterrupt.o" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug/syscfg"  @"C:/Users/a0274016/workspace_v11/tirtos_builds_cc13x2_cc26x2_release_ticlang_5_10_00_48_s/Debug/configPkg/compiler.opt"  -o"pinInterrupt.o" "../pinInterrupt.c"
    Finished building: "../pinInterrupt.c"
     
    Building file: "syscfg/ti_devices_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source/ti/posix/ticlang" -DDeviceFamily_CC13X2 -gstrict-dwarf -gdwarf-3 -march=armv7e-m -MMD -MP -MF"syscfg/ti_devices_config.d_raw" -MT"syscfg/ti_devices_config.o" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug/syscfg"  @"C:/Users/a0274016/workspace_v11/tirtos_builds_cc13x2_cc26x2_release_ticlang_5_10_00_48_s/Debug/configPkg/compiler.opt"  -o"syscfg/ti_devices_config.o" "syscfg/ti_devices_config.c"
    Finished building: "syscfg/ti_devices_config.c"
     
    Building file: "syscfg/ti_drivers_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source" -I"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source/ti/posix/ticlang" -DDeviceFamily_CC13X2 -gstrict-dwarf -gdwarf-3 -march=armv7e-m -MMD -MP -MF"syscfg/ti_drivers_config.d_raw" -MT"syscfg/ti_drivers_config.o" -I"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug/syscfg"  @"C:/Users/a0274016/workspace_v11/tirtos_builds_cc13x2_cc26x2_release_ticlang_5_10_00_48_s/Debug/configPkg/compiler.opt"  -o"syscfg/ti_drivers_config.o" "syscfg/ti_drivers_config.c"
    Finished building: "syscfg/ti_drivers_config.c"
     
    Building target: "pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang.out"
    Invoking: Arm Linker
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian -mthumb -Oz -DDeviceFamily_CC13X2 -gstrict-dwarf -gdwarf-3 -march=armv7e-m -Wl,-m"pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang.map" -Wl,-i"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/source" -Wl,-i"C:/ti/simplelink_cc13x2_26x2_sdk_5_10_00_48_s/kernel/tirtos/packages" -Wl,-i"C:/Users/a0274016/workspace_v11/pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang/Debug/syscfg" -Wl,-i"C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang_linkInfo.xml" -Wl,--rom_model -o "pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang.out" "./main_tirtos.o" "./pinInterrupt.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_drivers_config.o" "../cc13x2_cc26x2_tirtos.cmd" -Wl,-l"ti/display/lib/ticlang/m4f/display.a" -Wl,-l"ti/grlib/lib/ticlang/m4f/grlib.a" -Wl,-l"third_party/spiffs/lib/ticlang/m4f/spiffs_cc26xx.a" -Wl,-lti_utils_build_linker.cmd.genlibs -Wl,-l"C:/Users/a0274016/workspace_v11/tirtos_builds_cc13x2_cc26x2_release_ticlang_5_10_00_48_s/Debug/configPkg/linker.cmd"  -Wl,-l"ti/devices/cc13x2_cc26x2/driverlib/bin/ticlang/driverlib.lib" -Wl,-llibc.a 
    Finished building target: "pinInterrupt_CC1352P_2_LAUNCHXL_tirtos_ticlang.out"
     
    
    **** Build Finished ****
    

    I do not know why your command line path searches include both forward and backward slashes (i.e. "/" and "\") but this is most likely causing issues which need to be resolved.  Perhaps try re-installing the resources and start by building an unmodified example.  I also recommend using a later version of the SIMPLELINK-CC13XX-CC26XX-SDK which includes long-term support of TI-CLANG.

    Regards,
    Ryan

  • I will try building the project with your suggestion, it would be curious to see if it works

    Did you try this? If so, what was the outcome?

  • Hey Ryan Brown,

    In my CCS, Pin interrupt examples are working fine with TI Arm Clang Compiler.. 

    I'm trying to implement running standalone Edge Impulse model with CC1352P2 Pin interrupt example in CCS by following this Guide.

    In that I have got some issues in the Linker ( Because of Windows Limitation bug ).. 

    So I made discussion with Edge Impulse forum - Thread 

    Regards,

    Keerthivasan

  • Hey Kier, 

    Yes I tried, but still issue has not been resolved.. 

    So I made discussion with EI Forum - Thread

  • Yes, I done the workaround they have been provided.

    I was facing another set of issues, for which I have reached out to the developer again.

    Thanks a lot for your support !

    Regards,

    Keerthivasan.