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.

Creating a new rtsc project for cc3200 using ccs v6.1.2

Other Parts Discussed in Thread: CC3200, SYSBIOS

Hi,

Can anyone please guide me to create a new ti-rtos based project using cc3200?

I have tried to create one using following steps:

1. Project->New CCS project

2. File->new->RTSC Configuration File

Building this project generates error:

Description Resource Path Location Type
can't locate file 'ti/targets/rts6000/link.xdt' along the path: C:\ti\tirtos_cc32xx_2_16_01_14\products\bios_6_45_02_31\packages\ti\platforms\simplelink;C:/ti/tirtos_cc32xx_2_16_01_14/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/tidrivers_cc32xx_2_16_01_13/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/ns_1_11_00_10/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/xdctools_3_32_00_06_core/packages;..; .xdchelp /TI_RTOS_Test line 94 C/C++ Problem

**** Build of configuration Debug for project TI_RTOS_Test ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../TI_RTOS_Test.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc32xx_2_16_01_14/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/tidrivers_cc32xx_2_16_01_13/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/ns_1_11_00_10/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/uia_2_00_05_50/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC3200 -r debug -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7" "../TI_RTOS_Test.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring TI_RTOS_Test.xem4 from package/cfg/TI_RTOS_Test_pem4.cfg ...
js: "C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/targets/linkUtils.xs", line 94: xdc.services.global.XDCException: xdc.FILE_NOT_FOUND: can't locate file 'ti/targets/rts6000/link.xdt' along the path: C:\ti\tirtos_cc32xx_2_16_01_14\products\bios_6_45_02_31\packages\ti\platforms\simplelink;C:/ti/tirtos_cc32xx_2_16_01_14/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/tidrivers_cc32xx_2_16_01_13/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/ns_1_11_00_10/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/xdctools_3_32_00_06_core/packages;..;
"C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/platforms/simplelink/linkcmd.xdt#71(eval)", line 1
"C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/platforms/simplelink/linkcmd.xdt", line 71
"C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/platforms/simplelink/linkcmd.xdt", line 118
gmake.exe: *** [package/cfg/TI_RTOS_Test_pem4.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/TI_RTOS_Test_pem4.xdl'
gmake.exe: *** [package/cfg/TI_RTOS_Test_pem4.xdl] Deleting file `package/cfg/TI_RTOS_Test_pem4.h'
gmake.exe: *** [package/cfg/TI_RTOS_Test_pem4.xdl] Deleting file `package/cfg/TI_RTOS_Test_pem4.c'
js: "C:/ti/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: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Thanks

Tanvi

  • Hi Tanvi,

    Why don't you try importing one of the TI-RTOS examples, and then rename the project and the files.  You can then replace contents of the example source code with yours.  That may be simpler than what you're trying.  I'm not sure what would be causing the error, but if you still get it using my suggested method could you please attach your .cfg file.

    Best regards,

        Janet

  • Hi Janet,

    I tried importing ti-rtos example for cc3200 as following:

    But i get error while importing...

    can u please guide me?

    Thanks

    Tanvi

  • Tanvi,
    I don't know if it makes any difference but try using View->Resource Explorer, then select TI-RTOS CC32xx, and then look for SYS/BIOS Kernel examples. The best one to start is 'hello'. I am not sure which exact subtrees you need to open in Resource Explorer to find SYS/BIOS Kernel examples but they are somewhere there under your board.
  • Hi Sasha,

    I imported 'hello' project to my work space.

    But build gives following error:

    Description Resource Path Location Type
    xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: .xdchelp /hello_CC3200_LAUNCHXL_TI_CC3200 line 209 C/C++ Problem

    **** Build of configuration Debug for project hello_CC3200_LAUNCHXL_TI_CC3200 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../hello.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc32xx_2_16_01_14/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/tidrivers_cc32xx_2_16_01_13/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/ns_1_11_00_10/packages;C:/ti/tirtos_cc32xx_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC3200 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7" --compileOptions "-mv7M4 --code_state=16 --float_support=vfplib --abi=eabi -me --include_path=\"D:/CCS Projects/SER_WIFI/hello_CC3200_LAUNCHXL_TI_CC3200\" --include_path=\"C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0\" --include_path=\"C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0/inc\" --include_path=\"C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0/driverlib\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include\" -g --define=cc3200 --define=PART_CC3200 --define=ccs --define=CCWARE --diag_wrap=off --display_error_number --diag_warning=225 --diag_warning=255 --gen_func_subsections=on " "../hello.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring hello.xem4 from package/cfg/hello_pem4.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making D:/CCSPRO~1/SER_WIFI/hello_CC3200_LAUNCHXL_TI_CC3200/src/sysbios/sysbios.aem4 ...
    gmake[1]: Entering directory `D:/CCSPRO~1/SER_WIFI/hello_CC3200_LAUNCHXL_TI_CC3200/src/sysbios'
    clem4 C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/BIOS.c ...
    C:/Users/user/AppData/Local/Temp/make10404-1.sh: 1: Syntax error: Unterminated quoted string
    gmake[1]: Leaving directory `D:/CCSPRO~1/SER_WIFI/hello_CC3200_LAUNCHXL_TI_CC3200/src/sysbios'
    gmake[1]: *** [BIOS.obj] Error 2
    Build of libraries failed.
    gmake: *** [D:/CCSPRO~1/SER_WIFI/hello_CC3200_LAUNCHXL_TI_CC3200/src/sysbios/sysbios.aem4] Error 2
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_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_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/hello_pem4.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/hello_pem4.xdl'
    gmake.exe: *** [package/cfg/hello_pem4.xdl] Deleting file `package/cfg/hello_pem4.h'
    gmake.exe: *** [package/cfg/hello_pem4.xdl] Deleting file `package/cfg/hello_pem4.c'
    js: "C:/ti/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 ****

  • You have a white space somewhere in your paths. If you post the file src/sysbios/makefile from your project I should be able to tell you what the problem is.
  • XOPTS = -I"C:/ti/xdctools_3_32_00_06_core/packages/" -Dxdc_target_types__=C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/targets/arm/elf/std.h -Dxdc_target_name__=M4
    
    vpath % C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/
    vpath %.c C:/ti/xdctools_3_32_00_06_core/packages/
    
    CCOPTS    = --endian=little -mv7M4 --float_support=vfplib --abi=eabi -q -ms --opt_for_speed=2  --program_level_compile -o3 -g --optimize_with_debug  -Dti_sysbios_knl_Task_minimizeLatency__D=FALSE -Dti_sysbios_knl_Clock_stopCheckNext__D=FALSE -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_32_00_06_core/packages/
    
    BIOS_ROOT = C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/ti/sysbios/
    
    BIOS_DEFS =  -Dti_sysbios_BIOS_swiEnabled__D=TRUE -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_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=16 -Dti_sysbios_knl_Task_checkStackFlag__D=TRUE -Dti_sysbios_knl_Task_initStackFlag__D=TRUE -Dti_sysbios_knl_Task_DISABLE_ALL_HOOKS -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_utils_Load_hwiEnabled__D=FALSE -Dti_sysbios_family_arm_m3_Hwi_dispatcherSwiSupport__D=TRUE -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=FALSE -Dxdc_runtime_Assert_DISABLE_ALL -Dxdc_runtime_Log_DISABLE_ALL
    
    BIOS_INC  = -I"C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/"
    
    TARGET_INC = -I"C:/ti/tirtos_cc32xx_2_16_01_14/products/bios_6_45_02_31/packages/"
    
    INCS = $(BIOS_INC) $(TARGET_INC)  --include_path="D:/CCS --include_path="C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0" --include_path="C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0/inc" --include_path="C:/ti/tirtos_cc32xx_2_16_01_14/products/CC3200_driverlib_1.1.0/driverlib" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" 
    
    CC = C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl -c $(CCOPTS) -I C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include
    ASM = C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl -c $(CCOPTS) -I C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include
    AR = C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armar rq
    
    DEL = C:/ti/xdctools_3_32_00_06_core/packages/../bin/rm -f
    CP = C:/ti/xdctools_3_32_00_06_core/packages/../bin/cp -f
    
    define RM
    	$(if $(wildcard $1),$(DEL) $1,:)
    endef
    
    define ASSEMBLE
    	@echo asmem4 $< ...
    	@$(ASM) $(BIOS_DEFS) $(XOPTS) $(INCS) $<
    endef
    
    all: sysbios.aem4
    
    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/Swi.c knl/Swi_andn.c knl/Task.c hal/Hwi.c hal/Hwi_stack.c hal/Hwi_startup.c family/arm/m3/Hwi.c family/arm/m3/TaskSupport.c family/arm/m3/Timer.c gates/GateHwi.c gates/GateMutex.c heaps/HeapMem.c makefile
    	@-$(call RM, $@)
    	@echo clem4 $< ...
    	@$(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/Swi.c \
    	$(BIOS_ROOT)knl/Swi_andn.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)family/arm/m3/Hwi.c \
    	$(BIOS_ROOT)family/arm/m3/TaskSupport.c \
    	$(BIOS_ROOT)family/arm/m3/Timer.c \
    	$(BIOS_ROOT)gates/GateHwi.c \
    	$(BIOS_ROOT)gates/GateMutex.c \
    	$(BIOS_ROOT)heaps/HeapMem.c \
    
    sysbios.aem4: BIOS.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj
    	@-$(call RM, $@)
    	@echo arem4 $^ ...
    	@$(AR) $@ $^
    
    
    clean:
    	@$(DEL) ..\makefile.libs
    	@-$(call RM, *)
    

  • You are missing a closing quote for the option --include_path="D:/CCS.
    Go to your project properties->CCS Build->Compiler->Include Options, and verify that all added include paths are properly quoted.

  • Hi Sasha,

    Thanks a lot for your reply. I checked all the include paths but could not find spaces. Also I was not able to track the "D:/CCS path as it was not listed in project properties->CCS Build->Compiler->Include Options.

    Anyway I tried creating new CCS project using SYS/BIOS -> Typical template. This works fine.

    Thanks
  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.