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

CC2640r2f BLE4.2 on-chip oad失败

参考TI文档及例程进行on-Chip升级,

使用的工程是:C:\ti\simplelink_cc2640r2_sdk_1_50_00_58\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_onchip目录下的工程,

在升级过程中提示错误,不知从哪里入手解决,请高手指点,谢谢

[1] : <Info> – 08:15:11.250
OAD – Update Connection Settings
——————————————————————–
[2] : <Info> – 08:15:11.250
Start OAD Download
——————————————————————–
[3] : <Info> – 08:15:11.250
StartReset Service Discovery
——————————————————————–
[4] : <Info> – 08:15:11.251
OAD Send UUID Discovery
——————————————————————–
[5] : <Tx> – 08:15:11.250
-Type : 0x01 (Command)
-OpCode : 0xFE11 (GAP_UpdateLinkParamReq)
-Data Length : 0x0A (10) byte(s)
ConnHandle : 0x0000 (0)
IntervalMin : 0x0006 (6)
IntervalMax : 0x0006 (6)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x000A (10)
Dump(Tx):
0000:01 11 FE 0A 00 00 06 00 06 00 00 00 0A 00 …………..
——————————————————————–
[6] : <Rx> – 08:15:11.259
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE11 (GAP_UpdateLinkParamReq)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 11 FE 00 ………
——————————————————————–
[7] : <Tx> – 08:15:11.261
-Type : 0x01 (Command)
-OpCode : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
-Data Length : 0x12 (18) byte(s)
ConnHandle : 0x0000 (0)
Value : 00:00:00:00:00:00:00:B0:00:40:51:04:D0:FF:00:F0
Dump(Tx):
0000:01 86 FD 12 00 00 00 00 00 00 00 00 00 B0 00 40 ……………@
0010:51 04 D0 FF 00 F0 Q…..
——————————————————————–
[8] : <Rx> – 08:15:11.290
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 86 FD 00 ………
——————————————————————–
[9] : <Error> – 08:15:11.449
OAD Attribute Reset Handle Not Found Error
Attempting To Discover Oad Service
——————————————————————–
[10] : <Info> – 08:15:11.452
Image Service Discovery
——————————————————————–
[11] : <Info> – 08:15:11.453
OAD Send UUID Discovery
——————————————————————–
[12] : <Rx> – 08:15:11.448
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0A (10) bytes(s)
Event : 0x0501 (1281) (ATT_ErrorRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x04 (4)
ReqOpCode : 0x06 (ATT_FindByTypeValueReq)
Handle : 0x0001 (1)
ErrorCode : 0x0A (10) (ATTR_NOT_FOUND)
No Attribute Found Within The Given Attribute Handle Range
Dump(Rx):
0000:04 FF 0A 01 05 00 00 00 04 06 01 00 0A ………….
——————————————————————–
[13] : <Tx> – 08:15:11.454
-Type : 0x01 (Command)
-OpCode : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
-Data Length : 0x12 (18) byte(s)
ConnHandle : 0x0000 (0)
Value : 00:00:00:00:00:00:00:B0:00:40:51:04:C0:FF:00:F0
Dump(Tx):
0000:01 86 FD 12 00 00 00 00 00 00 00 00 00 B0 00 40 ……………@
0010:51 04 C0 FF 00 F0 Q…..
——————————————————————–
[14] : <Rx> – 08:15:11.479
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD86 (GATT_DiscPrimaryServiceByUUID)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 86 FD 00 ………
——————————————————————–
[15] : <Info> – 08:15:11.648
OAD Send UUID Info Discovery
——————————————————————–
[16] : <Rx> – 08:15:11.648
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0A (10) bytes(s)
Event : 0x0507 (1287) (ATT_FindByTypeValueRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x04 (4)
Handle : 0C:00
Handle : FF:FF
Dump(Rx):
0000:04 FF 0A 07 05 00 00 00 04 0C 00 FF FF ………….
——————————————————————–
[17] : <Rx> – 08:15:11.846
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0507 (1287) (ATT_FindByTypeValueRsp)
Status : 0x1A (26) (The Procedure Is Completed)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 07 05 1A 00 00 00 ………
——————————————————————–
[18] : <Tx> – 08:15:11.846
-Type : 0x01 (Command)
-OpCode : 0xFD84 (GATT_DiscAllCharDescs)
-Data Length : 0x06 (6) byte(s)
ConnHandle : 0x0000 (0)
StartHandle : 0x000C (12)
EndHandle : 0xFFFF (65535)
Dump(Tx):
0000:01 84 FD 06 00 00 0C 00 FF FF ……….
——————————————————————–
[19] : <Rx> – 08:15:11.877
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD84 (GATT_DiscAllCharDescs)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 84 FD 00 ………
——————————————————————–
[20] : <Rx> – 08:15:12.044
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0F (15) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x09 (9)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 000C
Uuid : 00:28
Handle : 000D
Uuid : 03:28
Dump(Rx):
0000:04 FF 0F 05 05 00 00 00 09 01 0C 00 00 28 0D 00 ………….(..
0010:03 28 .(
——————————————————————–
[21] : <Rx> – 08:15:12.254
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0B (11) bytes(s)
Event : 0x0607 (1543) (GAP_LinkParamUpdate)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
ConnInterval : 0x0006 (6)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x000A (10)
Dump(Rx):
0000:04 FF 0B 07 06 00 00 00 06 00 00 00 0A 00 …………..
——————————————————————–
[22] : <Rx> – 08:15:12.265
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x19 (25) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x13 (19)
Format : 0x02 (2) (A List Of 1 Or More Handles With Their 128-bit UUIDs)
Handle : 000E
Uuid : 00:00:00:00:00:00:00:B0:00:40:51:04:C1:FF:00:F0
Dump(Rx):
0000:04 FF 19 05 05 00 00 00 13 02 0E 00 00 00 00 00 …………….
0010:00 00 00 B0 00 40 51 04 C1 FF 00 F0 …..@Q…..
——————————————————————–
[23] : <Rx> – 08:15:12.359
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x13 (19) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x0D (13)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 000F
Uuid : 02:29
Handle : 0010
Uuid : 01:29
Handle : 0011
Uuid : 03:28
Dump(Rx):
0000:04 FF 13 05 05 00 00 00 0D 01 0F 00 02 29 10 00 ………….)..
0010:01 29 11 00 03 28 .)…(
——————————————————————–
[24] : <Rx> – 08:15:12.380
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x19 (25) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x13 (19)
Format : 0x02 (2) (A List Of 1 Or More Handles With Their 128-bit UUIDs)
Handle : 0012
Uuid : 00:00:00:00:00:00:00:B0:00:40:51:04:C2:FF:00:F0
Dump(Rx):
0000:04 FF 19 05 05 00 00 00 13 02 12 00 00 00 00 00 …………….
0010:00 00 00 B0 00 40 51 04 C2 FF 00 F0 …..@Q…..
——————————————————————–
[25] : <Rx> – 08:15:12.391
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x13 (19) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x0D (13)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 0013
Uuid : 02:29
Handle : 0014
Uuid : 01:29
Handle : 0015
Uuid : 03:28
Dump(Rx):
0000:04 FF 13 05 05 00 00 00 0D 01 13 00 02 29 14 00 ………….)..
0010:01 29 15 00 03 28 .)…(
——————————————————————–
[26] : <Rx> – 08:15:12.402
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x19 (25) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x13 (19)
Format : 0x02 (2) (A List Of 1 Or More Handles With Their 128-bit UUIDs)
Handle : 0016
Uuid : 00:00:00:00:00:00:00:B0:00:40:51:04:C5:FF:00:F0
Dump(Rx):
0000:04 FF 19 05 05 00 00 00 13 02 16 00 00 00 00 00 …………….
0010:00 00 00 B0 00 40 51 04 C5 FF 00 F0 …..@Q…..
——————————————————————–
[27] : <Rx> – 08:15:12.422
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0F (15) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x09 (9)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 0017
Uuid : 02:29
Handle : 0018
Uuid : 01:29
Dump(Rx):
0000:04 FF 0F 05 05 00 00 00 09 01 17 00 02 29 18 00 ………….)..
0010:01 29 .)
——————————————————————–
[28] : <Info> – 08:15:12.434
OAD Enable Notification On ImageNotify
——————————————————————–
[29] : <Rx> – 08:15:12.433
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x1A (26) (The Procedure Is Completed)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 05 05 1A 00 00 00 ………
——————————————————————–
[30] : <Tx> – 08:15:12.436
-Type : 0x01 (Command)
-OpCode : 0xFD92 (GATT_WriteCharValue)
-Data Length : 0x06 (6) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x000F (15)
Value : 01:00
Dump(Tx):
0000:01 92 FD 06 00 00 0F 00 01 00 ……….
——————————————————————–
[31] : <Rx> – 08:15:12.464
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD92 (GATT_WriteCharValue)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 92 FD 00 ………
——————————————————————–
[32] : <Info> – 08:15:12.487
OAD Enable Notification On ImageControl
——————————————————————–
[33] : <Rx> – 08:15:12.485
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0513 (1299) (ATT_WriteRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 13 05 00 00 00 00 ………
——————————————————————–
[34] : <Tx> – 08:15:12.491
-Type : 0x01 (Command)
-OpCode : 0xFD92 (GATT_WriteCharValue)
-Data Length : 0x06 (6) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x0017 (23)
Value : 01:00
Dump(Tx):
0000:01 92 FD 06 00 00 17 00 01 00 ……….
——————————————————————–
[35] : <Rx> – 08:15:12.516
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD92 (GATT_WriteCharValue)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 92 FD 00 ………
——————————————————————–
[36] : <Info> – 08:15:12.534
OAD ATT Exchange MTU
——————————————————————–
[37] : <Rx> – 08:15:12.527
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0513 (1299) (ATT_WriteRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 13 05 00 00 00 00 ………
——————————————————————–
[38] : <Tx> – 08:15:12.535
-Type : 0x01 (Command)
-OpCode : 0xFD02 (ATT_ExchangeMTUReq)
-Data Length : 0x04 (4) byte(s)
ConnHandle : 0x0000 (0)
ClientRxMTU : 0x00F7 (247)
Dump(Tx):
0000:01 02 FD 04 00 00 F7 00 ……..
——————————————————————–
[39] : <Error> – 08:15:12.561
OAD Exchange MTU Failed
——————————————————————–
[40] : <Info> – 08:15:12.563
OAD – Restore Connection Settings
——————————————————————–
[41] : <Error> – 08:15:12.564
OAD Download Not Successful
——————————————————————–

[42] : <Rx> – 08:15:12.560
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x02 (2) (Invalid Parameter)
OpCode : 0xFD02 (ATT_ExchangeMTUReq)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 02 02 FD 00 ………
——————————————————————–
[43] : <Tx> – 08:15:12.564
-Type : 0x01 (Command)
-OpCode : 0xFE11 (GAP_UpdateLinkParamReq)
-Data Length : 0x0A (10) byte(s)
ConnHandle : 0x0000 (0)
IntervalMin : 0x0050 (80)
IntervalMax : 0x0050 (80)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x07D0 (2000)
Dump(Tx):
0000:01 11 FE 0A 00 00 50 00 50 00 00 00 D0 07 ……P.P…..
——————————————————————–
[44] : <Rx> – 08:15:12.591
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE11 (GAP_UpdateLinkParamReq)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 11 FE 00 ………
——————————————————————–
[45] : <Rx> – 08:15:12.666
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0B (11) bytes(s)
Event : 0x0607 (1543) (GAP_LinkParamUpdate)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
ConnInterval : 0x0050 (80)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x07D0 (2000)
Dump(Rx):
0000:04 FF 0B 07 06 00 00 00 50 00 00 00 D0 07 ……..P…..
——————————————————————–

user4633033:

回复 Viki Shi:

你好,Viki Shi

       是按这个流程做的,例程只是改动了Changing Application Data to Verify an OAD这部分,为了区分,但是并没有下载进去。

参考的是官网提供的software-dl.ti.com/…/oad_onchip.html

按照顺序编译了C:\ti\simplelink_cc2640r2_sdk_1_50_00_58\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_onchip工程中的cc2640r2lp_bim_onchip 

cc2640r2lp_persistent_app 

cc2640r2lp_stack 

cc2640r2lp_app

然后继续按步骤执行到第7步骤,使用的是CC2640开发板做给host test给CC2640r2f模块升级出现的错误

赞(0)
未经允许不得转载:TI中文支持网 » CC2640r2f BLE4.2 on-chip oad失败
分享到: 更多 (0)