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.

CC2650协议栈编译不通过

Other Parts Discussed in Thread: CC2640, CC2650, SYSBIOS, BLE-STACK

我用的64位win7系统,  IAR版本7.80.4     协议栈ble_sdk_2_02_01_18

安装的时候我也是按照默认路径安装的,从网上看说版本不匹配,IAR路径不能有空格,我卸载后重新安装但是结果还是一样,

协议栈编译出错

Error while running "
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650iot\1.1_simple_peripheral\iar\stack\..\..\..\..\..\tools/lib_search/lib_search.exe"
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650iot\1.1_simple_peripheral\iar\stack/build_config.opt "
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650iot\1.1_simple_peripheral\iar\stack\..\..\..\..\..\tools/lib_search/params_split_cc2640.xml"
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650iot\1.1_simple_peripheral\iar\stack\..\..\..\..\..\src/../blelib
C:\ti\simplelink\ble_sdk_2_02_01_18\examples\cc2650iot\1.1_simple_peripheral\iar\stack/../config/lib_linker.cmd

Total number of errors: 1

Total number of warnings: 0

  • 我重新卸载协议栈后,重新安装后发现APP工程不能编译, 协议栈编译通过

  • iar可以在不同硬盘路径安装,你的版本可以使用的。使用cc2640r2需要8.1版本。

  • 需要修改tools菜单的工程配置,我的使用7.8,8.1两个版本。

  • tool 里面的工程配置需要怎么修改呢,我目前只安装了7.8 版本IAR

    8.1版本的IAR很奇怪安装不上

    我这边开发板是CC2650  LounchPad

  • 建议您先到 $PROJECT_PATH\iar\config\configPkg\下查看.errorlog文件来定位错误原因

    另外您是用的破解版?

  • warning: xdc.cfg.Program: "C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/hal/Hwi.xs", line 181: xdc.cfg.Program stack: For IAR targets, Program.stack is ignored. The C and Hwi stack sizes are determined by the size of the CSTACK section definition within the linker command file.
    C:/Users/lenovo/AppData/Local/Temp/make1408-2.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-3.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-4.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-5.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-6.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-7.sh: 1: Syntax error: "(" unexpected
    C:/Users/lenovo/AppData/Local/Temp/make1408-8.sh: 1: Syntax error: "(" unexpected
    gmake[1]: *** [rom_knl_Clock_lib.pp] Error 2
    gmake[1]: *** Waiting for unfinished jobs....
    gmake[1]: *** [rom_knl_Idle_lib.pp] Error 2
    gmake[1]: *** [rom_knl_Intrinsics_lib.pp] Error 2
    gmake[1]: *** [rom_knl_Event_lib.pp] Error 2
    gmake[1]: *** [rom_knl_Mailbox_lib.pp] Error 2
    gmake[1]: *** [rom_knl_Queue_lib.pp] Error 2
    gmake[1]: *** [rom_knl_Semaphore_lib.pp] Error 2
    C:/Users/lenovo/AppData/Local/Temp/make1408-1.sh: 1: Syntax error: "(" unexpected
    gmake[1]: *** [rom__BIOS_lib.pp] Error 2
    gmake: *** [C:/ti/simplelink/ble_sdk_2_02_01_18/examples/cc1350lp/simple_peripheral/iar/config/src/sysbios/rom_sysbios.arm3] 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/app_ble_prm3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/app_ble_prm3.xdl'
    gmake.exe: *** [package/cfg/app_ble_prm3.xdl] Deleting file `package/cfg/app_ble_prm3.h'
    gmake.exe: *** [package/cfg/app_ble_prm3.xdl] Deleting file `package/cfg/app_ble_prm3.c'

    我用的是破解版的, $PROJECT_PATH\iar\config\configPkg\下查看.errorlog文件如上,但是还是不知道问题在哪,追踪了路径,查不到相应的文件

  • 您看一下 file:///C:/ti/simplelink/ble_sdk_2_02_01_18/release_notes_BLE_Stack_2_2_1.html ,官方支持并测试的BLE-Stack的 IAR版本是v7.70.2