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.