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.

[参考译文] CCS/CC2640R2F:BLE 堆栈的应用链接错误,是否有任何线索?

Guru**** 2563960 points
Other Parts Discussed in Thread: CC2640, CC2640R2F, CC2650

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/588784/ccs-cc2640r2f-app-link-error-with-ble-stack-any-clue

器件型号:CC2640R2F
Thread 中讨论的其他部件:CC2640CC2650

工具/软件:Code Composer Studio

尊敬的所有人:

我尝试使用新 SDK 将项目从 CC2640迁移到 CC2640R2F、但遇到链接错误以及未解析的符号。

消息如下所示:

是否有任何关于原因或缺失的线索?

========================================================================

构建目标:ibs02_r2f_app.out
调用:ARM 链接器
"/home/itrs/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/bin/armcl --cmd_file="/home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/config/build_components.opt --cmd_file="/home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/config/factory_config.opt --cmd_file="/home/itrs/Work-bt/ingics-ble-ti/proj/ibs02_r2f/src/../config/build_config.opt --cmd_file="/home/itrs/Work-bt/ingics-ble-ti/proj/ibs02_r2f/src/../config/ccs_compiler_defines.bcfg --mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --define=device_family=cc26x0r2 --define=cc26r2=membular_define=cc26r2 --define=ctrad_define=ctrad_define=ctrad_define -define=cird-define -define=cc26r=ctrad_define -define -us=ctradctrad_define -define -us=ctrad_define -define -us=ctradctradctrad_define -define -define -us=ctraduel_define -us=ctraduel_define -define -us=ctraduel_us=ctraduel_define -define -define -us=ctraduel_define -us=ctraduel_def define=use_ICALL --define=xdc_runtime_assert_disable_all --define=xdc_runtime_Log_disable_all -g --c99 --gcc --diag_warning=225 --diag_xml=off --display_error_number --gen_erebc_subsections=on --abi=ei=102m=express-d_line-f_display_subs=d=10242-intrack_zh-display_subs=2-display_info-display_subs=d=d_display_display_subs=d=d_subs=d_subscaps=d=d_subs=d_display_zh-display_subs=d_display_subs=d_subs=d_subs=d_display-display-display-display_subs=d=d_subs=d_subs=d_subs=d_subs=d_subs=d_subs=d_display-display-display-display-display-display-display-/home/itrs/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include /home/itrs/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/lib rom_model -o "ibs02_r2f_app.out""./Application/src/board_key.obj ""./Application/src/ccfg_app_ble.obj ""./Application/src/ibs02cfg.obj ""./Application/src/igs_beacon.obj ""./Application/src/lis2dh.obj ""./Application/src/main.obj ""./Application/src/si7021.obj ""./Application/src/tinyprintf.obj ""./Application/src/uart_printf.obj /Drivers/TRNG/TRNGCC26XX.obj /ICall/icall_user_config.obj /PROFILES/devinfoservice.obj /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/rom/ble_rom_releases/cc26xx_r2/Final_Release/common_r2.symbols /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/kernel/tirtos/packages/ti/dpl/lib/dpl_cc26x0r2.aem3 ""./Drivers/ECC/ECCROMCC26XX.obj ""./ICall/icall.obj "".c /ICallBLE/ble_user_config.obj -l.c /Startup/board.obj -l.c "/Drivers/RF/RFCC26XX_singleMode.obj /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/drivers/lib/drivers_cc26x0r2.aem3 -l.c /home/itrs/Work-bt/ingics-ble-ti/proj/ibs02_r2f/config/ccs_linker_defines.cmd -l.l "/Application/src/i2c_si114x.obj -l.c -dl"/ICall/icall_cc2650.obj /ICallBLE/icall_api_lite.obj /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/devices/cc26x0r2/driverlib/bin/ccs/driverlib.lib /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/display/lib/display.aem3 /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/blestack/common/cc26xx/ccs/cc26xx_app.cmd

未定义的首次引用
符号
------ --------
GAPBondMgr_Register
GAPBondMgr_SetParameter
GAPRole_GetParameter
GAPRole_SetParameter
GAPRole_StartDevice
GAPRole_TerminateConnection
GAPRole_createTask
GAP_RegisterForMsgs.
GAP_SetParamValue
GATTServApp_AddService
GATTServApp_RegisterService
GATT_RegisterForMsgs
GATT_SendRsp
GGS_AddService
GGS_SetParameter
HCI_EXT_AdvEventNoticeCmd
HCI_EXT_ConnEventNoticeCmd
HCI_EXT_SetTxPowerCmd
I2C_CONFIG /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/drivers/lib/drivers_cc26x0r2.aem3
I2C_COUNT /home/itrs/ti/simplelink_cc2640r2_sdk_1_30_00_25/source/ti/drivers/lib/drivers_cc26x0r2.aem3
Util_constructClock
Util_constructQueue
Util_convertBdAddr2Str
Util_dequeueMsg
Util_enqueueMsg
Util_startClock
charUserDescUUID
CharacterUUID
linkDB_getinfo
LinkDB_NumActive
OSAL_SNV_READ
OSAL_SNV_WRITE
primServiceUUID
用户0Cfg

错误#10234-D:未解析的符号仍然存在
错误#10010:链接期间遇到错误;未构建"ibs02_r2f_app.out"

>>编译失败
Makefile:181:目标'ibs02_r2f_app.out'的配方失败
gmake.1]:***[ibs02_r2f_app.out]错误1.
gmake:***[全部]错误2.
Makefile:177:目标“全部”的配方失败

****构建完成****

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

    您可能会遇到各种错误。 它们似乎主要来自两个地方:

    1.移植项目中的路径不正确。 例如、Util_函数是 util.c、.h 中的应用程序代码 您是否为这些文件设置了正确的包含路径? 您是否将文件作为项目的一部分进行编译? GAPRole 也是如此。
    2.库配置不正确或根本没有库。 这可能来自未链接的 HCI_和 GGS_函数。 您是否重建了堆栈项目并将先前的 build_config.opt 设置移植到了新的堆栈项目?

    您能否发布应用程序和堆栈项目的构建日志? (确保选择"Rebuild All"(全部重建)。 此外、请勿将整个日志复制并粘贴到注释中、因为它们会很长且无法读取。 请改为使用"丰富格式"按钮附加文件。