TI中文支持网
TI专业的中文技术问题搜集分享网站

1.4.2移植central和peripheral一体工程问题?

工程是从1.3.2移植到1.4.2以后就出现的问题?1.3.2中Profiles中没有gattserapp_util.c文件;

Error[e27]: Entry "GATTServApp_InitCharCfg::?relay" in module gattservapp_util ( G:\ble\190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\gattservapp_util.r51 ) redefined in module gattservapp ( G:\ble\190128\BLE-CC254x-1.4.2.2\Projects\ble\Libraries\CC2541DB\bin\CC2541_BLE_peri.lib )Error while running Linker

Viki Shi:

这个报错是重复定义,gattservapp_util ,gattservapp重复包含了

ZANGk:

回复 Viki Shi:

那我屏蔽以后看看

ZANGk:

回复 Viki Shi:

gattservapp_util 屏蔽以后出现更多问题了
Warning[w6]: Type conflict for external/entry "GAP_Authenticate", in module gapbondmgr
against external/entry in module gap_linkmgr; function types differ in parameter 1;
class/struct/union field/base types do not match for field/base 'secReqs'; class/struct/union
field/base types do not match for field/base 'keyDist'; class/struct/union field names do not
match: sLinkKey vs mEncKey
Warning[w6]: Type conflict for external/entry "GAP_TerminateLinkReq", in module central
against external/entry in module gap_linkmgr; function types have different numbers of
parameters
Warning[w6]: Type conflict for external/entry "GATT_WriteCharValue", in module
simpleBLECentral against external/entry in module gatt_client; function types differ in
parameter 2; class/struct/union types have different sizes
Warning[w6]: Type conflict for external/entry "GATT_Notification", in module simpleBLE
against external/entry in module gatt_server; function types differ in parameter 2;
class/struct/union types have different sizes
Warning[w6]: Type conflict for external/entry "GATTServApp_ProcessCharCfg", in module
simpleGATTprofile against external/entry in module gattservapp; function types have
different numbers of parameters
Warning[w6]: Type conflict for external/entry "GATTServApp_ReadAttr", in module
gapbondmgr against external/entry in module gattservapp; function types have different
numbers of parameters
Warning[w6]: Type conflict for external/entry "GATTServApp_RegisterService", in module
devinfoservice against external/entry in module gattservapp; function types have different
numbers of parameters
Warning[w6]: Type conflict for external/entry "linkDB_Find", in module gapbondmgr against
external/entry in module linkdb; function return types are different; class/struct/union types
have different sizes
Warning[w6]: Type conflict for external/entry "linkDB_PerformFunc", in module gapbondmgr
against external/entry in module linkdb; function types differ in parameter 1; function types
differ in parameter 1; class/struct/union types have different sizes
Warning[w6]: Type conflict for external/entry "appForceBoot", in module
simpleBLEPeripheral against external/entry in module OnBoard; prototyped function vs
K&R function
Warning[w6]: Type conflict for external/entry "osal_CbTimerStart", in module gatt_task
against external/entry in module osal_cbtimer; function types differ in parameter 3; different
basic types
Warning[w6]: Type conflict for external/entry "osal_CbTimerUpdate", in module gatt_client
against external/entry in module osal_cbtimer; function types differ in parameter 2; different
basic types
Error[e46]: Undefined external "GAP_EstablishLinkReq::?relay" referred in central ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
central.r51 )
Error[e46]: Undefined external "GAP_DeviceDiscoveryRequest::?relay" referred in central (
G:\ble\190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\
Obj\central.r51 )
Error[e46]: Undefined external "GAP_RegisterForMsgs::?relay" referred in central ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
central.r51 )
Error[e46]: Undefined external "GAP_PeriConnRegister::?relay" referred in gap ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
gap.r51 )
Error[e46]: Undefined external "GATT_bm_free::?relay" referred in gapbondmgr ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
gapbondmgr.r51 )
Error[e46]: Undefined external "GAP_UpdateLinkParamReq::?relay" referred in peripheral (
G:\ble\190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\
Obj\peripheral.r51 )
Error[e46]: Undefined external "gapProfileState" referred in simpleBLE ( G:\ble\190128\
BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
simpleBLE.r51 )
Error[e46]: Undefined external "GATT_bm_alloc::?relay" referred in simpleBLE ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
simpleBLE.r51 )
Error[e46]: Undefined external "linkDBNumConns" referred in simpleGATTprofile ( G:\ble\
190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\
simpleGATTprofile.r51 )
应该是和lib库冲突了;怎么处理一下啊???????????????

ZANGk:

回复 Viki Shi:

你好,官方有1.4.2.2 CC2541多角色demo么?

ZANGk:

回复 Viki Shi:

one.docx

Viki Shi:

回复 ZANGk:

多角色的有comborole例程,链接: processors.wiki.ti.com/…/SimpleBLE_ComboRoles

ZANGk:

回复 Viki Shi:

下载以后移植到1.4.2.2ble,打开以后编译不过去;明显还是1.3.2的工程啊,呵呵
Error[Pe136]: struct "<unnamed>" has no field "value" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 567
Error[Pe136]: struct "<unnamed>" has no field "value" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 719
Error[Pe136]: struct "<unnamed>" has no field "handlesInfo" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 991
Error[Pe136]: struct "<unnamed>" has no field "handlesInfo" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 992
Error[Pe136]: struct "<unnamed>" has no field "dataList" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 1021
Error[Pe136]: struct "<unnamed>" has no field "dataList" C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLECentralBroadcaster\Source\simpleBLECentralBroadcaster.c 1022
Error while running C/C++ Compiler

赞(0)
未经允许不得转载:TI中文支持网 » 1.4.2移植central和peripheral一体工程问题?
分享到: 更多 (0)