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.

my first TI-RTOS project does not build ;)

Guru 18435 points
Other Parts Discussed in Thread: SYSBIOS, TM4C123GH6PGE

Good morning,

I'm trying to use Bluetopia + TI-RTOS on top of the dk-tm4c123g Launchpad. I've simply taken a project from CCS Explorer, and added the required #includes <.h> for Bluetopia, as stated in their README. At the moment, I'm happy if this thing builds. I have been adding the required source include folders and libraries and everything went ok up to now, when I cannot get rid of the following errors:

  • fatal error #1965: cannot open source file "C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/Debug/configPkg/package/cfg/spiloopback_pem4f.h"    .xdchelp    /spiloopback_TivaTM4C123GH6PGE    line 39    C/C++ Problem
  • xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:    .xdchelp    /spiloopback_TivaTM4C123GH6PGE    line 184    C/C++ Problem

The full log of this procedure comes next :)

**** Build of configuration Debug for project spiloopback_TivaTM4C123GH6PGE ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
        1 archivo(s) copiado(s).
making ../src/sysbios/sysbios.aem4f ...
gmake[1]: Entering directory `C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios'
clem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/BIOS.c ...
>> ERROR: no source files, nothing to do
asmem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...
>> ERROR: no source files, nothing to do
asmem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...
>> ERROR: no source files, nothing to do
asmem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...
>> ERROR: no source files, nothing to do
asmem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...
>> ERROR: no source files, nothing to do
arem4f BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...
  -->  error: 'BIOS.obj' not found
  -->  error: 'm3_Hwi_asm.obj' not found
  -->  error: 'm3_Hwi_asm_switch.obj' not found
gmake[1]: Leaving directory `C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios'
  -->  error: 'm3_IntrinsicsSupport_asm.obj' not found
  -->  error: 'm3_TaskSupport_asm.obj' not found
gmake[1]: *** [sysbios.aem4f] Error 1
gmake[1]: Target `all' not remade because of errors.
gmake: *** [../src/sysbios/sysbios.aem4f] Error 2
'Building file: ../DK_TM4C123G.c'
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.8/include" --include_path="c:/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware/dk-tm4c123g" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpskrnl/TI_RTOS" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/hcitrans/TI_RTOS" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btvs/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpsvend" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gatt/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gaps/include" -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PGE --define=ccs --define=TIVAWARE --define=TARGET_IS_BLIZZARD_RA1 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="DK_TM4C123G.pp" --cmd_file="./configPkg/compiler.opt"  "../DK_TM4C123G.c"
"c:/ti/xdctools_3_30_03_47_core/packages/xdc/cfg/global.h", line 39: fatal error #1965: cannot open source file "C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/Debug/configPkg/package/cfg/spiloopback_pem4f.h"

1 catastrophic error detected in the compilation of "../DK_TM4C123G.c".
>> Compilation failure
'Building file: ../spiloopback.c'
Compilation terminated.
gmake: *** [DK_TM4C123G.obj] Error 1
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.8/include" --include_path="c:/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware/dk-tm4c123g" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpskrnl/TI_RTOS" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/hcitrans/TI_RTOS" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btvs/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpsvend" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gatt/include" --include_path="C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gaps/include" -g --gcc --define=ccs="ccs" --define=PART_TM4C123GH6PGE --define=ccs --define=TIVAWARE --define=TARGET_IS_BLIZZARD_RA1 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="spiloopback.pp" --cmd_file="./configPkg/compiler.opt"  "../spiloopback.c"
"c:/ti/xdctools_3_30_03_47_core/packages/xdc/cfg/global.h", line 39: fatal error #1965: cannot open source file "C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/Debug/configPkg/package/cfg/spiloopback_pem4f.h"

1 catastrophic error detected in the compilation of "../spiloopback.c".
>> Compilation failure
Compilation terminated.
gmake: *** [spiloopback.obj] Error 1
'Building file: ../spiloopback.cfg'
'Invoking: XDCtools'
"c:/ti/xdctools_3_30_03_47_core/xs" --xdcpath="c:/ti/tirtos_tivac_2_10_01_38/packages;c:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages;c:/ti/tirtos_tivac_2_10_01_38/products/ndk_2_24_01_18/packages;c:/ti/tirtos_tivac_2_10_01_38/products/uia_2_00_02_39/packages;c:/ti/ccsv6/ccs_base;C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages;C:/ti/tirtos_tivac_2_10_01_38/products/ndk_2_24_01_18/packages;C:/ti/tirtos_tivac_2_10_01_38/products/uia_2_00_02_39/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C123GH6PGE -r release -c "c:/ti/ccsv6/tools/compiler/arm_5.1.8" --compileOptions "-mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path=\"c:/ti/ccsv6/tools/compiler/arm_5.1.8/include\" --include_path=\"c:/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Hardware/dk-tm4c123g\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpskrnl/TI_RTOS\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/hcitrans/TI_RTOS\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btvs/include\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/btpsvend\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/include\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gatt/include\" --include_path=\"C:/ti/Connectivity/CC256X BT/CC256x M4 Bluetopia SDK/v1.2 R2/Cortex_M4/Bluetopia/profiles/gaps/include\" -g --gcc --define=ccs=\"ccs\" --define=PART_TM4C123GH6PGE --define=ccs --define=TIVAWARE --define=TARGET_IS_BLIZZARD_RA1 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on  " "../spiloopback.cfg"
configuring spiloopback.xem4f from package/cfg/spiloopback_pem4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
    cd C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src
    c:/ti/xdctools_3_30_03_47_core/gmake.exe -f C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/makefile.libs GEN_SRC_DIR=C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src
making C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios/sysbios.aem4f ...
gmake[1]: Entering directory `C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios'
clem4f C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/BIOS.c ...
C:/Users/kaz/AppData/Local/Temp/make3344-1.sh: 1: Syntax error: Unterminated quoted string
gmake[1]: *** [BIOS.obj] Error 2
gmake[1]: Leaving directory `C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios'
gmake: *** [C:/Users/kaz/workspace_v6_0/spiloopback_TivaTM4C123GH6PGE/src/sysbios/sysbios.aem4f] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_30_03_47_core/packages/xdc/cfg/SourceDir.xs", line 184: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_30_03_47_core/packages/xdc/cfg/Main.xs", line 159: Error: Configuration failed!
xdctools_3_30_03_47_core\gmake.exe: *** [package/cfg/spiloopback_pem4f.xdl] Error 1
xdctools_3_30_03_47_core\gmake.exe: *** Deleting file `package/cfg/spiloopback_pem4f.xdl'
xdctools_3_30_03_47_core\gmake.exe: *** [package/cfg/spiloopback_pem4f.xdl] Deleting file `package/cfg/spiloopback_pem4f.h'
xdctools_3_30_03_47_core\gmake.exe: *** [package/cfg/spiloopback_pem4f.xdl] Deleting file `package/cfg/spiloopback_pem4f.c'
js: "C:/ti/xdctools_3_30_03_47_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

So, has anybody an idea of why is this not working? What I am doing wrong? XDC Related errors should be solved in RTSC tab, shouldn't they? :)I have all the repositories and TI-RTOS for TivaC checked there.

Let me know my error! :)

Have a nice day.

  • Later problems are mainly caused by the failed compilations at the very beginning with error messages claiming that there are no surce files on the command line. I would like to see 'makefile' in the directory src/sysbios in your project. There could be some hints in that file, so please post it to this thread.
    I would guess that the problems are caused by white spaces in the directory where you installed Bluetopia SDK. I don't know much about it, so I don't know if it installs in a directory with white spaces by default, but you could try changing the install directory and try again,

  • Good morning from Barcelona, Sasha :)

    Please find next the 'makefile' inside the src/sysbios directory :)


    XOPTS = -I"c:/ti/xdctools_3_30_03_47_core/packages/" -Dxdc_target_types__=C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/targets/arm/elf/std.h -Dxdc_target_name__=M4F

    vpath % C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/
    vpath %.c c:/ti/xdctools_3_30_03_47_core/packages/

    CCOPTS    = --endian=little -mv7M4 --abi=eabi --float_support=fpv4spd16 -q -ms --opt_for_speed=2  --program_level_compile -o3 -g --optimize_with_debug  -Dti_sysbios_family_arm_m3_Hwi_enableException__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_disablePriority__D=32U -Dti_sysbios_family_arm_m3_Hwi_numSparseInterrupts__D=0U

    XDC_ROOT  = c:/ti/xdctools_3_30_03_47_core/packages/

    BIOS_ROOT = C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/

    BIOS_DEFS =  -Dti_sysbios_BIOS_swiEnabled__D=FALSE -Dti_sysbios_BIOS_taskEnabled__D=TRUE -Dti_sysbios_BIOS_clockEnabled__D=TRUE -Dti_sysbios_BIOS_runtimeCreatesEnabled__D=TRUE -Dti_sysbios_hal_Hwi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Swi_DISABLE_ALL_HOOKS -Dti_sysbios_knl_Task_DISABLE_ALL_HOOKS -Dti_sysbios_BIOS_smpEnabled__D=FALSE -Dti_sysbios_Build_useHwiMacros -Dti_sysbios_knl_Swi_numPriorities__D=16 -Dti_sysbios_knl_Task_deleteTerminatedTasks__D=FALSE -Dti_sysbios_knl_Task_numPriorities__D=4 -Dti_sysbios_knl_Task_checkStackFlag__D=FALSE -Dti_sysbios_knl_Clock_TICK_SOURCE=ti_sysbios_knl_Clock_TickSource_TIMER -Dti_sysbios_knl_Clock_TICK_MODE=ti_sysbios_knl_Clock_TickMode_PERIODIC -Dti_sysbios_hal_Core_delegate_getId=ti_sysbios_hal_CoreNull_getId__E -Dti_sysbios_hal_Core_delegate_interruptCore=ti_sysbios_hal_CoreNull_interruptCore__E -Dti_sysbios_hal_Core_delegate_lock=ti_sysbios_hal_CoreNull_lock__E -Dti_sysbios_hal_Core_delegate_unlock=ti_sysbios_hal_CoreNull_unlock__E -Dti_sysbios_hal_Core_numCores__D=1 -Dti_sysbios_hal_CoreNull_numCores__D=1 -Dti_sysbios_utils_Load_taskEnabled__D=TRUE -Dti_sysbios_utils_Load_swiEnabled__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_dispatcherSwiSupport__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_dispatcherTaskSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherAutoNestingSupport__D=TRUE -Dti_sysbios_family_arm_m3_Hwi_dispatcherIrpTrackingSupport__D=TRUE -Dti_sysbios_knl_Semaphore_supportsEvents__D=FALSE -Dti_sysbios_knl_Semaphore_supportsPriority__D=TRUE -Dxdc_runtime_Assert_DISABLE_ALL -Dxdc_runtime_Log_DISABLE_ALL

    BIOS_INC  = -I"C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/"

    TARGET_INC = -I"C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/"

    INCS = $(BIOS_INC) $(TARGET_INC)  --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.8/include" --include_path="c:/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c" --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X

    CC = c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armcl -c $(CCOPTS) -I c:/ti/ccsv6/tools/compiler/arm_5.1.8/include
    ASM = c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armcl -c $(CCOPTS) -I c:/ti/ccsv6/tools/compiler/arm_5.1.8/include
    AR = c:/ti/ccsv6/tools/compiler/arm_5.1.8/bin/armar rq

    DEL = cmd.exe /q /c del /f
    CP = cmd.exe /q /c copy /Y

    define RM
        $(if $(wildcard $1),$(DEL) $1,:)
    endef

    define ASSEMBLE
        @echo asmem4f $< ...
        @$(ASM) $(BIOS_DEFS) $(XOPTS) $(INCS) $<
    endef

    all: sysbios.aem4f

    m3_Hwi_asm.obj: family/arm/m3/Hwi_asm.sv7M makefile
        @-$(call RM, $@)
        $(ASSEMBLE) --output_file=m3_Hwi_asm.obj

    m3_Hwi_asm_switch.obj: family/arm/m3/Hwi_asm_switch.sv7M makefile
        @-$(call RM, $@)
        $(ASSEMBLE) --output_file=m3_Hwi_asm_switch.obj

    m3_IntrinsicsSupport_asm.obj: family/arm/m3/IntrinsicsSupport_asm.sv7M makefile
        @-$(call RM, $@)
        $(ASSEMBLE) --output_file=m3_IntrinsicsSupport_asm.obj

    m3_TaskSupport_asm.obj: family/arm/m3/TaskSupport_asm.sv7M makefile
        @-$(call RM, $@)
        $(ASSEMBLE) --output_file=m3_TaskSupport_asm.obj


    BIOS.obj: BIOS.c knl/Clock.c knl/Idle.c knl/Intrinsics.c knl/Queue.c knl/Semaphore.c knl/Task.c hal/Hwi.c hal/Hwi_stack.c hal/Hwi_startup.c gates/GateHwi.c gates/GateMutex.c family/arm/m3/Hwi.c family/arm/m3/TaskSupport.c family/arm/lm4/Timer.c makefile
        @-$(call RM, $@)
        @echo clem4f $< ...
        @$(CC) $(BIOS_DEFS) $(XOPTS) $(INCS) \
        $(BIOS_ROOT)BIOS.c \
        $(BIOS_ROOT)knl/Clock.c \
        $(BIOS_ROOT)knl/Idle.c \
        $(BIOS_ROOT)knl/Intrinsics.c \
        $(BIOS_ROOT)knl/Queue.c \
        $(BIOS_ROOT)knl/Semaphore.c \
        $(BIOS_ROOT)knl/Task.c \
        $(BIOS_ROOT)hal/Hwi.c \
        $(BIOS_ROOT)hal/Hwi_stack.c \
        $(BIOS_ROOT)hal/Hwi_startup.c \
        $(BIOS_ROOT)gates/GateHwi.c \
        $(BIOS_ROOT)gates/GateMutex.c \
        $(BIOS_ROOT)family/arm/m3/Hwi.c \
        $(BIOS_ROOT)family/arm/m3/TaskSupport.c \
        $(BIOS_ROOT)family/arm/lm4/Timer.c \

    sysbios.aem4f: BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj
        @-$(call RM, $@)
        @echo arem4f $^ ...
        @$(AR) $@ $^


    clean:
        @-$(call RM, sysbios.aem4f)
        @-$(call RM, BIOS.obj)
        @-$(call RM, m3_Hwi_asm.obj)
        @-$(call RM, m3_Hwi_asm_switch.obj)
        @-$(call RM, m3_IntrinsicsSupport_asm.obj)
        @-$(call RM, m3_TaskSupport_asm.obj)

    The Bluetopia install directory is this one:

    "C:\ti\Connectivity\CC256X BT\CC256x M4 Bluetopia SDK\v1.2 R2\Cortex_M4\Bluetopia"

    Indeed, it has spaces in it. However, it is the default install directory but it is in its inner structure. I mean, I can change the install location but not all the folders' names inside of it! :)

    I have seen many similar threads saying "oh, it was failing because of my shell". So, how can I be sure my system is using the right shell when compiling? I've removed them now but I had some "git" installations with their own shell and so on. The problem is still here.

    Ok, let me know. I tried to obtain some logical answer from the Bluetopia guys but they only answered "check your CCS plugins".

  • As you can see from the line:
    INCS = $(BIOS_INC) $(TARGET_INC)  --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.8/include" --include_path="c:/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c" --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X --include_path="C:/ti/Connectivity/CC256X
    the white spaces are the problem. Include paths are incomplete and don't have matching quotes. If I understood you correctly, there are white spaces in Bluetopia paths that you can't control. Then, SYS/BIOS will need a change to deal with white spaces. Can you find the directory ti/sysbios in your SYS/BIOS installation and open the file Build.xs in a text editor? There is a function 'getIncludePaths' in there. Replace the old version of that function with the following:

    function getIncludePaths() {
        var File = xdc.module("xdc.services.io.File");
        var Build = xdc.module("ti.sysbios.Build");

        var includePaths = "";
        for (var i = 0; i < Build.includePaths.length; i++) {
            includePaths += "-I\"" + File.getDOSPath(Build.includePaths[i]) + "\" ";
        }
        return (includePaths);
    }

    Let me know if that changes anything, and please attach a new copy of makefile in case the build fails again.

  • This went simply perfect.

    Many, many thanks.

    Let me know if you need me to do further tests for this issue.

    Marking the thread as 'solved'.

  • The same issue occurred in TI's "Intro to the TI-RTOS Kernel Workshop" Lab 4. A close quote was left out in one of the --include_path= statements in the makefile. Made the change to Build.xs (had a 7/10/2015 modified date) and that solved the problem. The first build after the change was not clean but it went through eventually and I was able to go to debug. All the builds after the first build were clean.

    Will future updates to CCS undo the fix Sasha Slijepcevic (TI employee) provided in the Build.xs file or will the fix be included?
  • Please start a new thread and reference this one.
  • Steve,
    which version of SYS/BIOS or TI-RTOS are you using? The newer ones were supposed to have that bug fix.