主题中讨论的其他部件:UNIFLASH、 CC1352R
您好!
我正在尝试在 CC2642 Launchpad 上实现 simple_peripheral_oad_onchip 示例。 作为参考、我的 SDK 为 :simplelink_cc13x2_26x2_SDK_3_40_00_02、我使用的是 CCS 10.1.00004
以下是我已执行的步骤:
首先将 BIM 导入到我的工作区中、方法是将其从 C:\ti\simplelink_cc13x2_26x2_SDK_3_40_00_02\examples\nortos\CC26X2R1_LAUNCHXL_bim\bim_onchip\ccs
2.通过在 CCS 中点击"Flash"按钮将 BIM 刷写到 Launchpad 上
3.从 以下位置导入了 simple_peripheral_oad_onchip 示例:C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL_ble5stack\simple_peripheral_oad_onchip
4.通过在 CCS 中点击"Debug"按钮、在 Launchpad 上构建并刷写了示例代码
5.此时,我可以验证我看到它使用移动应用程序通过蓝牙进行广播
然后、我使用另一台连接到运行"host_test"的单独 Launchpad 的计算机、该 launchpad 使用 Uniflash 并通过位于 C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL_\chex5x2_stack_hex_hextest_app_hexfiles.
7.在 BTool 中、我执行扫描、然后与正确的设备建立连接(我使用移动应用观察 BLE 地址)(我还等待出现连接更新请求)
8.我转到 OAD 选项卡、单击"Read Image File"并浏览到以下 bin 文件: workspace_v10\simple_peripheral_oad_onchip_app_CC26X2R1_LAUNCHXL_tirtos_ccs\Debug\simple_peripheral_oad_onchip_app_CC26X2R1_LAUNCHXL_tirtos_ccs_Debug_oad.bin
9.然后单击"发送"
在启动过程中、它会断开连接、重新连接、然后告诉我"OAD Download not successful"。 以下是在我单击"发送"按钮后在 BTool 中出现的消息:
----------------------------------------
[119]: 01:44:29.458
OAD -更新连接设置
----------------------------------------
[120]: 01:44:29.465
启动 OAD 下载
----------------------------------------
[121]: 01:44:29.467
启动重置服务发现
----------------------------------------
[122]: 01:44:29.469
OAD Send UUID Discovery
----------------------------------------
[123]: 01:44:29.462
类型:0x01 (命令)
-OpCode:0x2016 (HCI_LEReadRemoteUsedFeatures)
数据长度:0x02 (2)字节
句柄:0x0000 (0)
转储(Tx):
0000:01 16 20 02 00 (笑声)
----------------------------------------
[124]: 01:44:29.478
类型:0x01 (命令)
-OpCode:0xFD86 (GATT_DiscPrimaryServiceByUUID)
数据长度:0x12 (18)字节
ConnHandle:0x0000 (0)
值:00:00:00:00:00:00:B0:00:40:51:04:D0:FF:00:F0
转储(Tx):
0000:01 86 FD 12 00 00 00 00 00 00 00 00 00 B0 00 40 @μ A
0010:51 04 D0 FF 00 F0问题....
----------------------------------------
[125]: 01:44:29.493
类型:0x04 (事件)
-EventCode:0x003E (HCI_LE_GenericReportEvent)
数据长度:0x0C (12)字节
LE 事件代码:0x04 (4)(HCI_LE_ReadRemoteUsedCompleteFeaturesEvent)
LE 事件代码:0x04 (4)(HCI_LE_ReadRemoteUsedCompleteFeaturesEvent)
状态:0x00 (0)(成功)
连接 ID:0x0000 (0)
功能:0x000000000000000059FF (23039)(.
加密
连接参数请求
reject_Extended_indication
Slave_Features_Exchange
Ping
Data_Packet_Length _Extension
隐私
extended 扫描仪过滤器策略
PHY_2M
编码 PHY
扩展广播
CHANNEL 选择_算法_2)
转储(Rx):
0000:04 3E 0C 04 00 00 00 FF 59 00 00 00 00 00 00 00 00 00 .>... 是的…
----------------------------------------
[126]: 01:44:29.509
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x067F (1663)(GAP_HCI_ExtentionCommandStatus)
状态:0x00 (0)(成功)
操作码:0xFD86 (GATT_DiscPrimaryServiceByUUID)
数据长度:0x00 (0)
转储(Rx):
0000:04 FF 06 7F 06 00 86 FD 00 ........
----------------------------------------
[127]: 01:44:30.967
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x0A (10)字节
事件:0x0507 (1287)(ATT_FindByTypeValueRsp)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
Pdualen:0x04 (4)
手柄:31:00
句柄: FF:FF
转储(Rx):
0000:04 FF 0A 07 05 00 00 04 31 00 FF FF ........ 1...
----------------------------------------
[128]: 01:44:30.972
OAD 发送 UUID 信息发现
----------------------------------------
[129]: 01:44:32.957
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x0507 (1287)(ATT_FindByTypeValueRsp)
状态:0x1A (26)(bleProcedureComplete)
ConnHandle:0x0000 (0)
Pdualen:0x00 (0)
转储(Rx):
0000:04 FF 06 07 05 1A 00 00 00..........
----------------------------------------
[130]: 01:44:32.957
类型:0x01 (命令)
-OpCode:0xFE11 (GAP_UpdateLinkParamReq)
数据长度:0x0A (10)字节
ConnHandle:0x0000 (0)
IntervalMin:0x0006 (6)
IntervalMax:0x0006 (6)
ConnLatency:0x0000 (0)
ConnTimeout:0x0032 (50)
转储(Tx):
0000:01 11 FE 0A 00 06 00 06 00 00 00 32 00 ........ 2.
----------------------------------------
[131]: - 01:44:32.972
类型:0x01 (命令)
-OpCode:0xFD84 (GATT_DiscAllCharDescs)
数据长度:0x06 (6)字节
ConnHandle:0x0000 (0)
StartHandle:0x0031 (49)
EndHandle:0xFFFF (65535)
转储(Tx):
0000:01 84 FD 06 00 31 00 FF F...... 1...
----------------------------------------
[132]: 01:44:33.004
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x067F (1663)(GAP_HCI_ExtentionCommandStatus)
状态:0x00 (0)(成功)
操作码:0xFE11 (GAP_UpdateLinkParamReq)
数据长度:0x00 (0)
转储(Rx):
0000:04 FF 06 7F 06 00 11 FE 00 ........
----------------------------------------
[133]: 01:44:33.036
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x067F (1663)(GAP_HCI_ExtentionCommandStatus)
状态:0x00 (0)(成功)
操作码:0xFD84 (GATT_DiscAllCharDescs)
数据长度:0x00 (0)
转储(Rx):
0000:04 FF 06 7F 06 00 84 FD 00 ........
----------------------------------------
[134]: 01:44:34.973
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x0F (15)字节
事件:0x0505 (1285)(ATT_FindInfoRsp)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
Pdualen:0x09 (9)
格式:0x01 (1)(handle_BT_UUID_type__handles_and_16_bit_Bluetooth_UID)
手柄:0031
UUID : 00:28
手柄:0032
UUID:03:28
转储(Rx):
0000:04 FF 0F 05 00 00 09 01 31 00 28 32 00… (2)
0010:03 28..(
----------------------------------------
[135]: 01:44:36.968
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x19 (25)字节
事件:0x0505 (1285)(ATT_FindInfoRsp)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
Pdualen:0x13 (19)
格式:0x02 (2)(handle_UUUUUUID"类型_handles_and_128_bit_UUID)
手柄:0033
UUID:00:00:00:00:00:00:B0:00:40:51:04:D1:FF:00:F0
转储(Rx):
0000:04 FF 1905 00 00 13 02 33 00 00 00 00 00 00 00 00 00 00 00 00.......... 3…
0010:00 00 B0 00 40 51 04 D1 FF 00 F0… @问....
----------------------------------------
[136]: 01:44:38.971
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x0B (11)字节
事件:0x0505 (1285)(ATT_FindInfoRsp)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
Pdualen:0x05 (5)
格式:0x01 (1)(handle_BT_UUID_type__handles_and_16_bit_Bluetooth_UID)
手柄:0034
UUID:01:29
转储(Rx):
0000:04 FF 0B 05 00 05 00 05 01 34 00 01 29 ...... 4)
----------------------------------------
[137]: 01:44:40.956
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x0505 (1285)(ATT_FindInfoRsp)
状态:0x1A (26)(bleProcedureComplete)
ConnHandle:0x0000 (0)
Pdualen:0x00 (0)
转储(Rx):
0000:04 FF 06 05 05 1A 00 00 00..........
----------------------------------------
[138]: 01:44:40.964
OAD 使 StartReset 上的映像无效
----------------------------------------
[139]: 01:44:40.967
类型:0x01 (命令)
-OpCode:0xFD96 (GATT_WriteLongCharValue)
数据长度:0x07 (7)字节
ConnHandle:0x0000 (0)
句柄:0x0033 (51)
偏移量:0x0000 (0)
值:01
转储(Tx):
0000:01 96 FD 07 00 33 00 00 01 ...... 3…
----------------------------------------
[140]: 01:44:41.003
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x067F (1663)(GAP_HCI_ExtentionCommandStatus)
状态:0x00 (0)(成功)
操作码:0xFD96 (GATT_WriteLongCharValue)
数据长度:0x00 (0)
转储(Rx):
0000:04 FF 06 7F 06 00 96 FD 00 ........
----------------------------------------
[141]: 01:44:44.962
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x0519 (1305)(ATT_ExecuteWriteRsp)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
Pdualen:0x00 (0)
转储(Rx):
0000:04 FF 06 19 05 00 00 00 00..........
----------------------------------------
[142]: 01:44:44.969
正在等待设备复位
----------------------------------------
[143]: 01:44:47.970
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x0B (11)字节
事件:0x0607 (1543)(GAP_LinkParamUpdate)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
ConnInterval:0x0006 (6)
ConnLatency:0x0000 (0)
ConnTimeout:0x0032 (50)
转储(Rx):
0000:04 FF 0B 07 06 00 00 06 00 00 00 00 32 00 ........ 2.
----------------------------------------
[144]: 01:44:49.460
设备已断开连接
句柄= 0x0000
ADDR 类型= 0x01 (ADDRTYPE_Random)
bdaddr = 7D:B7:51:96:F2:4E
----------------------------------------
[145]: 01:44:49.459
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x0606 (1542)(GAP_TerminateLink)
状态:0x00 (0)(成功)
ConnHandle:0x0000 (0)
原因:0x08 (8)(supervision 超时期限)
转储(Rx):
0000:04 FF 06 06 00 00 00 08…
----------------------------------------
[146]: 01:44:59.973
建立连接
----------------------------------------
[147]: 01:44:59.976
类型:0x01 (命令)
-OpCode:0xFE62 (GapInit_connect)
数据长度:0x0A (10)字节
PeerAddrType:0x01 (1)(peer_ADDRTYPE_random_OR_random_ID)
PeerAddr:7D:B7:51:96:F2:4E
初始化 Phy:0x01 (1)(.
INIT_PHY_1M)
超时:0x0000 (0)
转储(Tx):
0000:01 62 FE 0A 01 4E F2 96 51 B7 7D 01 00 .b......N..q.}……
----------------------------------------
[148]: 01:45:00.003
类型:0x04 (事件)
-EventCode:0x00FF (HCI_LE_ExtEvent)
数据长度:0x06 (6)字节
事件:0x067F (1663)(GAP_HCI_ExtentionCommandStatus)
状态:0x00 (0)(成功)
操作码:0xFE62 (GapInit_connect)
数据长度:0x00 (0)
转储(Rx):
0000:04 FF 06 7F 06 00 62 FE 00 ...... B.
----------------------------------------
[149]: 01:45:39.987
OAD 操作超时
操作名称= GAP_EstablishLink_OadReset
----------------------------------------
[150]: 01:45:39.990
OAD -恢复连接设置
----------------------------------------
[151]: 01:45:39.992
OAD 下载失败
----------------------------------------
有人能告诉我我出了什么问题吗?
感谢您的任何帮助、谢谢!



