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.

CCS/LAUNCHXL-CC2650: Getting started with an example from ble_sdk folder

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hi,

I have been trying to get an example running on the CC2650 module through Code Composer Studio. The documentation for the part leads me to believe that it is very simple to get started and all I have to do is open a new CCS project, import the example I want to run, and then click debug and the code should be uploaded to the board connected to my computer. The steps do not mention that the XDC folder needs to be imported and to find where the ti/bios file is located and manually importing that folder as well. If I did not import the folders, I would get errors stating the files could not be found. Additionally, I am getting a lot of error 1 and error 2s.

Specifically, I have imported the app and stack folders for the simple_broadcaster example in the ti/simplelink/ble_sdk/src/examples/simple_broadcaster/cc26xx. Then I have imported the xdc folder from ti/xdctools/packages. Then when I click debug I am met with these errors.

host/platforms/SUN/package/subdir_rules.mk:12: recipe for target 'build-1440335921-inproc' failed
java.io.IOException: file rename failed: C:\Users\RichardWang\workspace_v9\SimpleTest\Debug\configPkg\package\cfg\build_pem38415891868885855402.tmp
	at xdc.services.intern.gen.FileManager.moveFiles(FileManager.java:330)
	at xdc.services.intern.gen.Prog.gen(Prog.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at xdc.services.intern.xsr.Invoke.call(Invoke.java:130)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at xdc.services.intern.xsr.Invoke.call(Invoke.java:92)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
	at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
	at config.Shell.evaluateReader(Shell.java:849)
	at config.Shell.processReader(Shell.java:512)
	at config.Shell.processFile(Shell.java:571)
	at config.Shell.exec(Shell.java:781)
	at config.Shell.main(Shell.java:1416)
js: "C:/ti/ccs930/xdctools_3_60_02_34_core/packages/xdc/cfg/Main.xs", line 48: XDC runtime exception: java.io.IOException: file rename failed: C:\Users\RichardWang\workspace_v9\SimpleTest\Debug\configPkg\package\cfg\build_pem38415891868885855402.tmp
js: "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/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_cc13xx_cc26xx_2_21_01_08\products\bios_6_46_01_38\packages\ti\targets\arm\elf;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;C:/ti/ccs930/xdctools_3_60_02_34_core/packages;..;
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt#85(eval)", line 1
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 85
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 113
gmake.exe: *** [package.mak:202: package/cfg/build_pem3.xdl] Error 1
gmake.exe: *** [package.mak:202: package/cfg/build_pem3.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/build_pem3.xdl'
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.h'
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.h'
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.c'
gmake.exe: unlink: package/cfg/build_pem3.h: Permission denied
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.c'
js: "C:/ti/ccs930/xdctools_3_60_02_34_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
js: "C:/ti/ccs930/xdctools_3_60_02_34_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1440335921-inproc] Error 1
gmake[1]: *** [build-310428895-inproc] Error 1
gmake: *** [build-310428895] Error 2
gmake: *** [build-1440335921] Error 2
host/platforms/PC/package/subdir_rules.mk:12: recipe for target 'build-310428895-inproc' failed
host/platforms/PC/package/subdir_rules.mk:9: recipe for target 'build-310428895' failed
host/platforms/SUN/package/subdir_rules.mk:9: recipe for target 'build-1440335921' failed
Building file: "../host/platforms/arm/package/build.cfg"
Building file: "../host/platforms/macos/package/build.cfg"
Invoking: XDCtools
Invoking: XDCtools
"C:/ti/ccs930/xdctools_3_60_02_34_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -r debug -c "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" "../host/platforms/arm/package/build.cfg"
"C:/ti/ccs930/xdctools_3_60_02_34_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -r debug -c "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" "../host/platforms/macos/package/build.cfg"
making package.mak (because of package.bld) ...
making package.mak (because of package.bld) ...
configuring build.xem3 from package/cfg/build_pem3.cfg ...
configuring build.xem3 from package/cfg/build_pem3.cfg ...
host/platforms/macos/package/subdir_rules.mk:12: recipe for target 'build-2005888223-inproc' failed
js: "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/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_cc13xx_cc26xx_2_21_01_08\products\bios_6_46_01_38\packages\ti\targets\arm\elf;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;C:/ti/ccs930/xdctools_3_60_02_34_core/packages;..;
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt#85(eval)", line 1
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 85
js: "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/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_cc13xx_cc26xx_2_21_01_08\products\bios_6_46_01_38\packages\ti\targets\arm\elf;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/tidrivers_cc13xx_cc26xx_2_21_01_01/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/uia_2_01_00_01/packages;C:/ti/ccs930/xdctools_3_60_02_34_core/packages;..;
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 113
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt#85(eval)", line 1
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 85
    "C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/bios_6_46_01_38/packages/ti/targets/arm/elf/linkcmd.xdt", line 113
gmake.exe: *** [package.mak:202: package/cfg/build_pem3.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/build_pem3.xdl'
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.h'
gmake.exe: *** [package/cfg/build_pem3.xdl] Deleting file 'package/cfg/build_pem3.c'
gmake.exe: *** [package.mak:202: package/cfg/build_pem3.xdl] Error 1
js: "C:/ti/ccs930/xdctools_3_60_02_34_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failejs: "C:/ti/ccs930/xdctools_3_60_02_34_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
d due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-2005888223-inproc] Error 1
gmake[1]: *** [build-1755403057-inproc] Error 1
gmake: *** [build-2005888223] Error 2
gmake: *** [build-1755403057] Error 2
host/platforms/arm/package/subdir_rules.mk:12: recipe for target 'build-1755403057-inproc' failed
host/platforms/macos/package/subdir_rules.mk:9: recipe for target 'build-2005888223' failed
host/platforms/arm/package/subdir_rules.mk:9: recipe for target 'build-1755403057' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Can someone please tell me what steps I am skipping and if you can, please update the documentation for this module, so that those developing on this platform in the future can do so more easily.

  • Richard,

    For newer devices like CC2652 the SDK is integrated into Resource Explorer and you can easily just select the example you are interested in and import it directly into your workspace.  These are the recommended current devices that I see when I look at CC2650.

    • CC2642R  -  Supports Bluetooth 5
    • CC2652R  -  Multi-protocol support for Bluetooth low energy, Zigbee and Thread
    • CC2640R2F  -  Most up to date Bluetooth low energy (4.2) stack

    I am in the process of setting up the software for CC2650.  You mentioned that you are importing folders into your project.  That seems a bit odd.  Typically you would just import the example project using the import wizard.  There should not be a need to add folders.  I will get the software setup and report back on the steps that I take to import the simple broadcaster example.

    Regards,

    John

  • Richard,

    I installed the BLE SDK.

    Then in CCS I opened the Project Import Wizard.  I browsed to the simple broadcaster example and selected the projects there.  Note that I checked the box to copy them into my workspace.

    After importing them I get a message from CCS that these projects require the TI-RTOS software package for 13xx/26xx.

    I downloaded and installed TI-RTOS from here:

    http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/index.html

    After restarting CCS it detected the TI-RTOS installation.

    I then selected the app project and clicked build.  The project built successfully.  It takes a while to build the first time.  It will also report an error about the fact that these projects were set to use a much older version of the C compiler than what ships with CCSv9.3.

    For the newer devices the RTOS package is included in the SDK.

    Regards,

    John