向各位请教一下,我安装CC26x2目前最新的协议栈“simplelink_cc26x2_sdk_2_10_00_44”,Xdctools的版本是“xdctools_3_50_05_12_core”编译BIM正常,stack报如下错误,请问如何解决!
Error[Li005]: no definition for "ICall_dispatcher" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\icall_startup.o]Error[Li005]: no definition for "ICall_enterCriticalSection" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\icall_startup.o]Error[Li005]: no definition for "ICall_leaveCriticalSection" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\icall_startup.o]Error[Li005]: no definition for "LL_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "HCI_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "L2CAP_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GAP_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "SM_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GATT_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GATTServApp_ProcessEvent" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "gapState" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "LL_ENC_ReverseBytes" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "LL_PRIV_ResolveRPA" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "LL_PRIV_FindPeerInRL" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "resolvingList" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_ClearResolvingListCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_GetIRK" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_AddDeviceToResolvingListCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_SetPrivacyModeCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "linkDB_Find" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "L2CAP_GetMTU" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_Authenticate" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATT_bm_free" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATT_ReadUsingCharUUID" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATT_RequestNextTransaction" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "linkDB_PerformFunc" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATTServApp_SendServiceChangedInd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "gapGetSRK" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "gapGetDevAddressMode" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_GetDevAddress" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_NumActiveConnections" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_isPairing" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_TerminateAuth" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_RemoveDeviceFromResolvingListCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATT_FindHandleUUID" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATTServApp_ReadAttr" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATT_FindNextAttr" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_ClearWhiteListCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "HCI_LE_AddWhiteListCmd" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_Bond" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_Signable" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GATTServApp_UpdateCharCfg" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "linkDB_GetInfo" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_SendSlaveSecurityRequest" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "LL_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "HCI_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "L2CAP_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GAP_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "SM_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GATT_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GATTServApp_Init" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_icall_ble.o]Error[Li005]: no definition for "GAP_RegisterBondMgrCBs" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "GAP_SetParamValue" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\gapbondmgr.o]Error[Li005]: no definition for "NVOCTP_loadApiPtrsMin" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_snv_wrapper.o]Error[Li005]: no definition for "driverTable" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\osal_snv_wrapper.o]Error[Li005]: no definition for "L2CAP_SetUserConfig" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\ble_user_config.o]Error[Li005]: no definition for "llUserConfig" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\ble_user_config.o]Error[Li005]: no definition for "GATT_bm_alloc" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\ble_dispatch_lite.o]Error[Li005]: no definition for "L2CAP_bm_alloc" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\Obj\ble_dispatch_lite.o]Fatal Error[Lp049]: there was no reference to __iar_data_init3, but it is needed to initialize section .bss (ble_dispatch_lite.o #8)Error while running Linker
Susan Yang:
请问您现在使用的是哪个版本的IAR?建议您使用 IAR for ARM 8.11.4
更多信息您可以参考
dev.ti.com/…/cc26x2-quickstart-intro.html
jun ding:
回复 Susan Yang:
谢谢回复!
我开始是使用8.10编译的,现在我已经将IAR ARM升级到8.22.2官网最新版本了,但是还是出现同样的错误。这个错误是指向编译的文件中找不到指定的函数,所以这个应该与IAR的版本没有关系。目前我测试CC2640R2F的SDK“simplelink_cc2640r2_sdk_1_50_00_58”也有同样的问题。但是退回到“simplelink_cc2640r2_sdk_1_40_00_45”则没有这个问题。
Error[Li005]: no definition for "ICall_dispatcher" [referenced from C:\ti\simplelink_cc26x2_sdk_2_10_00_44\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\project_zero\tirtos\iar\stack\FlashROM_Library\ Obj\icall_startup.o]
Loops:
回复 jun ding:
你好。请检查一下你的版本的编译环境是否设置正常。
jun ding:
回复 Loops:
如上所说的,我使用IAR ARM8.22.2编译“simplelink_cc2640r2_sdk_1_40_00_45”及以前的版本都没有问题,现在编译CC2640R2F的“simplelink_cc2640r2_sdk_1_50_00_58”与CC2642的“simplelink_cc26x2_sdk_2_10_00_44”都会出现类似的编译错误。
附:我使用的是Win7 x64系统,“simplelink_cc2640r2_sdk_1_50_00_58”与“simplelink_cc26x2_sdk_2_10_00_44”已删除原始“C:\TI”遗留文件,完全初始安装。
da qin zheng sheng:
回复 jun ding:
使用最新的ccs软件试试。
jun ding:
回复 da qin zheng sheng:
谢谢回复。
CCS7.2试过了,编译确实没有问题。不过去年使用CCS编译CC2640R2F的时候,编译出来的最低静态功耗不稳定后(正常时,可以达到100nA左右,偶尔上电会进入异常状态达到3mA左右。最后换成IAR编译就没有这个问题),就一直放弃使用CCS,而改用IAR了。