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.