Part Number:CC2640R2F
如何将PTM添加到CC2640R2F的应用( offchip oad project)
我按照下面的链接地址修改项目的配置,
https://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_3_20_00_21/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#using-production-test-mode-ptm
将PTM添加到我的项目中,但是在编译app的时候报如下错误
l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/blestack/rom/ble_rom_releases/cc26xx_r2/Final_Release/common_r2.symbols" -l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/devices/cc26x0r2/driverlib/bin/ccs/driverlib.lib" -l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x0r2.aem3" -l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/drivers/lib/drivers_cc26x0r2.aem3" -l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/grlib/lib/ccs/m3/grlib.a" -l"D:/work/picksmart-tek-test-20211124/simple_peripheral_cc2640r2lp_oad_offchip_stack/TOOLS/ccs_linker_defines.cmd" -l"C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/blestack/common/cc26xx/ccs/cc26xx_app_oad.cmd" -llibc.a<Linking>
undefined first referenced symbol in file ——— —————- ATT_CompareUUID ./ICallBLE/icall_hci_tl.obj ATT_ParseErrorRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseExchangeMTURsp ./ICallBLE/icall_hci_tl.obj ATT_ParseExecuteWriteReq ./ICallBLE/icall_hci_tl.obj ATT_ParseExecuteWriteRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseFindByTypeValueReq ./ICallBLE/icall_hci_tl.obj ATT_ParseFindByTypeValueRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseFindInfoReq ./ICallBLE/icall_hci_tl.obj ATT_ParseFindInfoRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseHandleValueCfm ./ICallBLE/icall_hci_tl.obj ATT_ParseHandleValueInd ./ICallBLE/icall_hci_tl.obj ATT_ParsePrepareWriteReq ./ICallBLE/icall_hci_tl.obj ATT_ParsePrepareWriteRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseReadBlobReq ./ICallBLE/icall_hci_tl.obj ATT_ParseReadBlobRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseReadByGrpTypeRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseReadByTypeReq ./ICallBLE/icall_hci_tl.obj ATT_ParseReadByTypeRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseReadMultiReq ./ICallBLE/icall_hci_tl.obj ATT_ParseReadMultiRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseReadReq ./ICallBLE/icall_hci_tl.obj ATT_ParseReadRsp ./ICallBLE/icall_hci_tl.obj ATT_ParseWriteReq ./ICallBLE/icall_hci_tl.obj ATT_ParseWriteRsp ./ICallBLE/icall_hci_tl.obj HCI_SendControllerToHostEvent ./ICallBLE/icall_hci_tl.obj L2CAP_BuildConnectReq ./ICallBLE/icall_hci_tl.obj L2CAP_ParseFlowCtrlCredit ./ICallBLE/icall_hci_tl.obj L2CAP_ParseInfoReq ./ICallBLE/icall_hci_tl.obj L2CAP_ParseParamUpdateReq ./ICallBLE/icall_hci_tl.obj UART_config C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/drivers/lib/drivers_cc26x0r2.aem3<UART.oem3>
UART_count C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/source/ti/drivers/lib/drivers_cc26x0r2.aem3<UART.oem3>
osal_bm_adjust_header ./ICallBLE/icall_hci_tl.obj osal_bm_free ./Application/simple_peripheral_oad_offchip.objerror #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "simple_peripheral_cc2640r2lp_oad_offchip_app_FlashROM.out" not built
>> Compilation failure
makefile:218: recipe for target 'simple_peripheral_cc2640r2lp_oad_offchip_app_FlashROM.out' failed
gmake[1]: *** [simple_peripheral_cc2640r2lp_oad_offchip_app_FlashROM.out] Error 1
gmake[1]: Target 'secondary-outputs' not remade because of errors.
makefile:211: recipe for target 'all' failed
gmake: *** [all] Error 2
**** Build Finished ****
请问这个如何解决?
Kevin Qiu1:
看错误提示应该是你使用SDK( simplelink_cc2640r2_sdk_2_20_00_49)版本和指南不一致,导致无法link到一些文件
SDK2.20太老了,不适合用于新项目开发,建议你使用最新的SDK5.30并按照以下步骤添加PTM:
https://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_5_30_00_03/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#using-production-test-mode-ptm
如不能迁移,在你的SDK安装目录中找到对应的文件参考:C:/ti/simplelink_cc2640r2_sdk_5_30_00_03/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#using-production-test-mode-ptm
,
user5296727:
我按照这个步骤:
https://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_5_30_00_03/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#using-production-test-mode-ptm
但是发现还是出现这样的错误
,
Kevin Qiu1:
simple_peripheral例程已经添加了PTM版本,编译时直接选择PTM即可,如下:
,
user5296727:
我按照
C:/ti/simplelink_cc2640r2_sdk_2_20_00_49/docs/blestack/ble_user_guide/html/ble-stack-3.x/creating-a-custom-bluetooth-low-energy-application.html#using-production-test-mode-ptm
这个文档,但是还是出现上面的报错。
,
user5296727:
是不是PTM不能够在off-chip oad这个工程中使用?
,
Kevin Qiu1:
我检查了文档中的步骤,说明文档看起来有些过时,按照步骤操作确实不能成功添加PTM
我将与Team联系进一步确认