各位大神 您好
小弟欲使用CC2640R2 Launchpad Board 學習BT5.0開發,但在環境建置以及範例compile時就碰上問題無法往前,描述如下
作業系統為64bits Win10 1809 企業版,公司電腦防毒軟體不可關閉
安裝完CCS8.3.1後,接著安裝simplelink_cc2640r2_sdk_1_40_00_45,依照預設路徑完成後匯入範例程式simple_central (路徑C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\blestack),而後進行編譯測試–>>>
可以編譯simple_central_cc2640r2lp_stack_library, 出現下列Warnings
Product 'XDCtools' v3.50.2.20 is not currently installed. A compatible version 3.51.1.18_core will be used. simple_central_cc2640r2lp_stack_library simple_central_cc2640r2lp_stack_library Problem
無法編譯simple_central_cc2640r2lp_app, 出現下列錯誤訊息與Console
Description Resource Path Location Type
gmake: *** [build-1884802623] Error 2 simple_central_cc2640r2lp_app C/C++ Problem
gmake: *** [C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/TOOLS/src/makefile.libs:57: C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2 simple_central_cc2640r2lp_app C/C++ Problem
gmake: Target 'all' not remade because of errors. simple_central_cc2640r2lp_app C/C++ Problem
gmake[1]: *** [build-1884802623-inproc] Error 1 simple_central_cc2640r2lp_app C/C++ Problem
gmake[1]: *** [makefile:57: rom_sysbios.obj] Error 128 simple_central_cc2640r2lp_app C/C++ Problem
xdctools_3_51_01_18_core\gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1 simple_central_cc2640r2lp_app C/C++ Problem
xdctools_3_51_01_18_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.c' simple_central_cc2640r2lp_app C/C++ Problem
xdctools_3_51_01_18_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.h' simple_central_cc2640r2lp_app C/C++ Problem
xdctools_3_51_01_18_core\gmake.exe: *** Deleting file 'package/cfg/app_ble_pem3.xdl' simple_central_cc2640r2lp_app C/C++ Problem
與Console
**** Build of configuration FlashROM_StackLibrary for project simple_central_cc2640r2lp_app ****
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -OBuilding file: "../TOOLS/app_ble.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_51_01_18_core/xs" –xdcpath="C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source;C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages;C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS" –compileOptions "-mv7M3 –code_state=16 -me -O4 –opt_for_speed=0 –include_path=\"C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app\" –include_path=\"C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/Application\" –include_path=\"C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/Startup\" –include_path=\"C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/PROFILES\" –include_path=\"C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/Include\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/common/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_central/src/app\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/profiles/roles/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/profiles/roles\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/profiles/simple_profile\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/target\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/heapmgr\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/services/src/saddr\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/services/src/sdata\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2\" –include_path=\"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include\" –define=DeviceFamily_CC26X0R2 –define=BOARD_DISPLAY_USE_LCD=0 –define=BOARD_DISPLAY_USE_UART=1 –define=BOARD_DISPLAY_USE_UART_ANSI=1 –define=CC2640R2_LAUNCHXL –define=CC26XX –define=CC26XX_R2 –define=ICALL_EVENTS –define=ICALL_JT –define=ICALL_LITE –define=ICALL_MAX_NUM_ENTITIES=6 –define=ICALL_MAX_NUM_TASKS=3 –define=ICALL_STACK0_ADDR –define=POWER_SAVING –define=RF_SINGLEMODE –define=STACK_LIBRARY –define=USE_ICALL –define=xdc_runtime_Assert_DISABLE_ALL –define=xdc_runtime_Log_DISABLE_ALL -g –c99 –gcc –diag_warning=225 –diag_wrap=off –display_error_number –gen_func_subsections=on –abi=eabi " "../TOOLS/app_ble.cfg"
configuring app_ble.xem3 from package/cfg/app_ble_pem3.cfg …
generating custom ROM library makefile …Starting build of library sources …
making C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3 …
clem3 C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/BIOS.c …
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1884802623-inproc' failed
0 [main] sh 13596 sync_with_child: child 2480(0x3F0) died before initialization with status code 0xC0000142
14 [main] sh 13596 sync_with_child: *** child state waiting for longjmp
C:/Users/534081/AppData/Local/Temp/make16968-3.sh: fork: Resource temporarily unavailable
gmake[1]: *** [makefile:57: rom_sysbios.obj] Error 128
gmake: *** [C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/TOOLS/src/makefile.libs:57: C:/Users/534081/workspace_v8/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_51_01_18_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_51_01_18_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_51_01_18_core\gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1
xdctools_3_51_01_18_core\gmake.exe: *** Deleting file 'package/cfg/app_ble_pem3.xdl'
xdctools_3_51_01_18_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.h'
xdctools_3_51_01_18_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_51_01_18_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-1884802623-inproc] Error 1
gmake: *** [build-1884802623] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-1884802623' failed
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
嘗試過官網上類似問題解決方法包含下列, 但仍無法解決:
1.重新安裝CCS與simplelink_cc2640r2_sdk_1_40_00_45
2.安裝最新版CCS9
3.安裝最新版simplelink_cc2640r2_sdk
4.安裝BLE-CC254x-1.4.1.43908b 與 ble_sdk_2_02_03_08_setup
5.安裝xdctools_3_50_02_20_core–>>系統無法安裝–>>失敗
6.更新ccs–>>無法更新–>>失敗
想請問是否有建議方法可以完成CCS環境建設並正常編譯CC2640R2_SDK進行開發?
感謝各位大神協助與指教
Viki Shi:
这个版本的SDK非常老了,建议下载最新版SDK 3.30并配合最新版的CCS进行测试
地址:www.ti.com/…/SIMPLELINK-CC2640R2-SDK
software-dl.ti.com/…/ccs_downloads.html
CHUN LIN CHENG:
回复 Viki Shi:
Hi Viki
重新安裝最新版本CCS後9.3.0與simplelink_cc2640r2_sdk_3_30_00_20仍舊無法compile simple_central_cc2640r2lp_appDescriprion如下
Description Resource Path Location Type
gmake: *** [build-1884802623] Error 2 simple_central_cc2640r2lp_appC/C++ Problem
gmake: *** [C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/TOOLS/src/makefile.libs:57: C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2 simple_central_cc2640r2lp_appC/C++ Problem
gmake: Target 'all' not remade because of errors. simple_central_cc2640r2lp_appC/C++ Problem
gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1 simple_central_cc2640r2lp_appC/C++ Problem
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.c' simple_central_cc2640r2lp_appC/C++ Problem
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.h' simple_central_cc2640r2lp_appC/C++ Problem
gmake.exe: *** Deleting file 'package/cfg/app_ble_pem3.xdl' simple_central_cc2640r2lp_appC/C++ Problem
gmake[1]: *** [build-1884802623-inproc] Error 1 simple_central_cc2640r2lp_appC/C++ Problem
gmake[1]: *** [makefile:60: rom_sysbios.obj] Error 128 simple_central_cc2640r2lp_appC/C++ Problem
xdc.cfg.SourceDir: "C:/ti/xdctools_3_51_03_28_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: app_ble.cfg /simple_central_cc2640r2lp_app/TOOLSC/C++ ProblemConsole如下
**** Build of configuration FlashROM_StackLibrary for project simple_central_cc2640r2lp_app ****
"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 4 all -O
Building file: "../TOOLS/app_ble.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_51_03_28_core/xs" –xdcpath="C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source;C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/kernel/tirtos/packages;C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS" –compileOptions "-mv7M3 –code_state=16 -me -O4 –opt_for_speed=1 –include_path=\"C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app\" –include_path=\"C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/Application\" –include_path=\"C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/Startup\" –include_path=\"C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/PROFILES\" –include_path=\"C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/Include\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/controller/cc26xx_r2/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/rom\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/common/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_central/src/app\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/icall/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/profiles/roles/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/profiles/roles\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/profiles/simple_profile\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/target\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/hal/src/target/_common\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/hal/src/target/_common/cc26xx\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/hal/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/heapmgr\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/icall/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/osal/src/inc\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/services/src/saddr\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/blestack/services/src/sdata\" –include_path=\"C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/source/ti/devices/cc26x0r2\" –include_path=\"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include\" –define=DeviceFamily_CC26X0R2 –define=BOARD_DISPLAY_USE_LCD=0 –define=BOARD_DISPLAY_USE_UART=1 –define=BOARD_DISPLAY_USE_UART_ANSI=1 –define=CC2640R2_LAUNCHXL –define=CC26XX –define=CC26XX_R2 –define=ICALL_EVENTS –define=ICALL_JT –define=ICALL_LITE –define=ICALL_MAX_NUM_ENTITIES=6 –define=ICALL_MAX_NUM_TASKS=3 –define=ICALL_STACK0_ADDR –define=POWER_SAVING –define=STACK_LIBRARY –define=USE_ICALL –define=xdc_runtime_Assert_DISABLE_ALL –define=xdc_runtime_Log_DISABLE_ALL -g –c99 –gcc –diag_warning=225 –diag_wrap=off –display_error_number –gen_func_subsections=on –abi=eabi " "../TOOLS/app_ble.cfg"
making package.mak (because of package.bld) …
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) …
configuring app_ble.xem3 from package/cfg/app_ble_pem3.cfg …
generating custom ROM library makefile …
Starting build of library sources …
making C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3 …
clem3 C:/ti/simplelink_cc2640r2_sdk_3_30_00_20/kernel/tirtos/packages/ti/sysbios/BIOS.c …
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1884802623-inproc' failed0 [main] sh 1688 sync_with_child: child 2112(0x2EC) died before initialization with status code 0xC000014247 [main] sh 1688 sync_with_child: *** child state waiting for longjmp
C:/Users/534081/AppData/Local/Temp/make16504-3.sh: fork: Resource temporarily unavailable
gmake[1]: *** [makefile:60: rom_sysbios.obj] Error 128
gmake: *** [C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/TOOLS/src/makefile.libs:57: C:/Users/534081/workspace_v9/simple_central_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_51_03_28_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_51_03_28_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package.mak:202: package/cfg/app_ble_pem3.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/app_ble_pem3.xdl'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.h'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file 'package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_51_03_28_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-1884802623-inproc] Error 1
gmake: *** [build-1884802623] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-1884802623' failed
gmake: Target 'all' not remade because of errors.**** Build Finished ****
是否有套件還需要安裝呢?
謝謝
CHUN LIN CHENG:
回复 Viki Shi:
Hi Viki
我安裝Cygwin64後重開機即可正常compile
謝謝!