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.

[参考译文] WEBENCH®︎Tools/CC2540TDK-light:编译 TI 的 CC2540TDK-Light 代码时出错

Guru**** 2563000 points
Other Parts Discussed in Thread: BLE-STACK, CC2540

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/587672/webench-tools-cc2540tdk-light-error-when-compiling-ti-code-of-cc2540tdk-light

器件型号:CC2540TDK-light

工具/软件:WEBENCHRegistered设计工具

您好!  

我尝试在 IAR 嵌入式工作平台8051 10.10.1上编译 CC2540TDK-Light Dev 套件的原始源代码、但未成功。 我的机器中还有 BLE-Stack 2.2.1。  有什么想法吗?

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

构建配置:BLELight - CC2540
正在更新生成树...
照明灯.c
ERROR[Pe144]:类型为"uint8 (*)(uint16、gattAttribute_t *、uint8 *、uint8 *、uint16、 UINT8)"不能用于初始化类型为"pfnGATTReadAttrCB_t" C:\Texas Instruments\BLE-CC254x-1.4.2.2\projects\ble\Profiles\Light\lights.c 326的实体
ERROR[PE144]:类型"uint8 (*)(uint16、gattAttribute_t *、uint8 *、uint8、uint16)"的值不能用于初始化类型"pfnGATTWriteAttrCB_t" C:\Texas Instruments\BLE-CC254x-1.4.2.2.27\Lights\Lights\Lights\Lights\Lights\Ding\projects\ble\Lighting\projects
ERROR[PE167]:"gattServiceCBs_t const __xdata_ROM *"类型的参数与"uint8" C:\Texas Instruments\BLE-CC254x-1.4.2.2\projects\ble\Profiles\Light\lights.c 358类型的参数不兼容
ERROR[PE165]:函数调用 C:\Texas Instruments\BLE-CC254x-1.4.2.2\projects\ble\Profiles\Light\lights.c 358中的参数太少
运行 C/C++编译器时出错

错误总数:4.
警告总数:0

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、HHH、

    在软件随附的自述文件中、它表示只能与 BLE-CC254x-1.4.0配合使用、尝试安装该版本并将代码复制到"projects"文件夹中。

    此致、
    反叛分子