Part Number: CC2642R
Other Parts Discussed in Thread: UNIFLASH, , CC1352R
Hello,
I am trying to implement the simple_peripheral_oad_onchip example on a CC2642 Launchpad. For reference, my SDK is: simplelink_cc13x2_26x2_sdk_3_40_00_02 and I am using CCS 10.1.1.00004
Here are the steps I have followed:
1. First imported BIM into my workspace by importing it from: C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\nortos\CC26X2R1_LAUNCHXL\bim\bim_onchip\ccs
2. Flashed BIM onto the launchpad by clicking the "Flash" button in CCS
3. Imported the simple_peripheral_oad_onchip example from: C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_oad_onchip
4. Built and flashed the example code onto the launchpad by clicking the "Debug" button in CCS
5. At this point I can verify that I see it advertising it over bluetooth using a mobile app
6. I then use a different computer that is connected to a separate launchpad running "host_test", which was flashed using Uniflash with the hex file located at C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\hexfiles\host_test_app.hex
7. In BTool, I do a scan, and then establish a connection to the correct device (I observe the BLE address using the mobile app) (I also wait for the connection update request to occur)
8. I go to the OAD tab, click "Read Image File" and browse to the following bin file: 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. I then click "send"
During the start up process, it gets disconnected, reconnects, and then tells me "OAD Download Not Successful". The following are the messages that occur in BTool after I hit the "send" button:
--------------------------------------------------------------------
[119] : <Info> - 01:44:29.458
OAD - Update Connection Settings
--------------------------------------------------------------------
[120] : <Info> - 01:44:29.465
Start OAD Download
--------------------------------------------------------------------
[121] : <Info> - 01:44:29.467
StartReset Service Discovery
--------------------------------------------------------------------
[122] : <Info> - 01:44:29.469
OAD Send UUID Discovery
--------------------------------------------------------------------
[123] : <Tx> - 01:44:29.462
-Type : 0x01 (Command)
-OpCode : 0x2016 (HCI_LEReadRemoteUsedFeatures)
-Data Length : 0x02 (2) byte(s)
Handle : 0x0000 (0)
Dump(Tx):
0000:01 16 20 02 00 00 .. ...
--------------------------------------------------------------------
[124] : <Tx> - 01:44:29.478
-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.....
--------------------------------------------------------------------
[125] : <Rx> - 01:44:29.493
-Type : 0x04 (Event)
-EventCode : 0x003E (HCI_LE_GenericReportEvent)
-Data Length : 0x0C (12) bytes(s)
LE Event Code : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
LE Event Code : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
Status : 0x00 (0) (SUCCESS)
ConnectionId : 0x0000 (0)
Features : 0x00000000000059FF (23039) (
Encryption
Connection_Parameters_Request
Reject_Extended_Indication
Slave_Features_Exchange
Ping
Data_Packet_Length_Extension
Privacy
Extended_Scanner_Filter_Policies
PHY_2M
Coded_PHY
Extended_Advertising
Channel_Selection_Algorithm_2)
Dump(Rx):
0000:04 3E 0C 04 00 00 00 FF 59 00 00 00 00 00 00 .>......Y......
--------------------------------------------------------------------
[126] : <Rx> - 01:44:29.509
-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 .........
--------------------------------------------------------------------
[127] : <Rx> - 01:44:30.967
-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 : 31:00
Handle : FF:FF
Dump(Rx):
0000:04 FF 0A 07 05 00 00 00 04 31 00 FF FF .........1...
--------------------------------------------------------------------
[128] : <Info> - 01:44:30.972
OAD Send UUID Info Discovery
--------------------------------------------------------------------
[129] : <Rx> - 01:44:32.957
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0507 (1287) (ATT_FindByTypeValueRsp)
Status : 0x1A (26) (bleProcedureComplete)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 07 05 1A 00 00 00 .........
--------------------------------------------------------------------
[130] : <Tx> - 01:44:32.957
-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 : 0x0032 (50)
Dump(Tx):
0000:01 11 FE 0A 00 00 06 00 06 00 00 00 32 00 ............2.
--------------------------------------------------------------------
[131] : <Tx> - 01:44:32.972
-Type : 0x01 (Command)
-OpCode : 0xFD84 (GATT_DiscAllCharDescs)
-Data Length : 0x06 (6) byte(s)
ConnHandle : 0x0000 (0)
StartHandle : 0x0031 (49)
EndHandle : 0xFFFF (65535)
Dump(Tx):
0000:01 84 FD 06 00 00 31 00 FF FF ......1...
--------------------------------------------------------------------
[132] : <Rx> - 01:44:33.004
-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 .........
--------------------------------------------------------------------
[133] : <Rx> - 01:44:33.036
-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 .........
--------------------------------------------------------------------
[134] : <Rx> - 01:44:34.973
-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) (HANDLE_BT_UUID_TYPE__handles_and_16_bit_Bluetooth_UUIDs)
Handle : 0031
Uuid : 00:28
Handle : 0032
Uuid : 03:28
Dump(Rx):
0000:04 FF 0F 05 05 00 00 00 09 01 31 00 00 28 32 00 ..........1..(2.
0010:03 28 .(
--------------------------------------------------------------------
[135] : <Rx> - 01:44:36.968
-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) (HANDLE_UUID_TYPE__handles_and_128_bit_UUIDs)
Handle : 0033
Uuid : 00:00:00:00:00:00:00:B0:00:40:51:04:D1:FF:00:F0
Dump(Rx):
0000:04 FF 19 05 05 00 00 00 13 02 33 00 00 00 00 00 ..........3.....
0010:00 00 00 B0 00 40 51 04 D1 FF 00 F0 .....@Q.....
--------------------------------------------------------------------
[136] : <Rx> - 01:44:38.971
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0B (11) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (SUCCESS)
ConnHandle : 0x0000 (0)
PduLen : 0x05 (5)
Format : 0x01 (1) (HANDLE_BT_UUID_TYPE__handles_and_16_bit_Bluetooth_UUIDs)
Handle : 0034
Uuid : 01:29
Dump(Rx):
0000:04 FF 0B 05 05 00 00 00 05 01 34 00 01 29 ..........4..)
--------------------------------------------------------------------
[137] : <Rx> - 01:44:40.956
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x1A (26) (bleProcedureComplete)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 05 05 1A 00 00 00 .........
--------------------------------------------------------------------
[138] : <Info> - 01:44:40.964
OAD Invalidate Image On StartReset
--------------------------------------------------------------------
[139] : <Tx> - 01:44:40.967
-Type : 0x01 (Command)
-OpCode : 0xFD96 (GATT_WriteLongCharValue)
-Data Length : 0x07 (7) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x0033 (51)
Offset : 0x0000 (0)
Value : 01
Dump(Tx):
0000:01 96 FD 07 00 00 33 00 00 00 01 ......3....
--------------------------------------------------------------------
[140] : <Rx> - 01:44:41.003
-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 : 0xFD96 (GATT_WriteLongCharValue)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 96 FD 00 .........
--------------------------------------------------------------------
[141] : <Rx> - 01:44:44.962
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0519 (1305) (ATT_ExecuteWriteRsp)
Status : 0x00 (0) (SUCCESS)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 19 05 00 00 00 00 .........
--------------------------------------------------------------------
[142] : <Info> - 01:44:44.969
Waiting For Device Reset
--------------------------------------------------------------------
[143] : <Rx> - 01:44:47.970
-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 : 0x0032 (50)
Dump(Rx):
0000:04 FF 0B 07 06 00 00 00 06 00 00 00 32 00 ............2.
--------------------------------------------------------------------
[144] : <Info> - 01:44:49.460
Device Disconnected
Handle = 0x0000
Addr Type = 0x01 (ADDRTYPE_RANDOM)
BDAddr = 7D:B7:51:96:F2:4E
--------------------------------------------------------------------
[145] : <Rx> - 01:44:49.459
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0606 (1542) (GAP_TerminateLink)
Status : 0x00 (0) (SUCCESS)
ConnHandle : 0x0000 (0)
Reason : 0x08 (8) (SUPERVISION_TIMEOUT_TERM)
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 08 .........
--------------------------------------------------------------------
[146] : <Info> - 01:44:59.973
Establish Connection
--------------------------------------------------------------------
[147] : <Tx> - 01:44:59.976
-Type : 0x01 (Command)
-OpCode : 0xFE62 (GapInit_connect)
-Data Length : 0x0A (10) byte(s)
PeerAddrType : 0x01 (1) (PEER_ADDRTYPE_RANDOM_OR_RANDOM_ID)
PeerAddr : 7D:B7:51:96:F2:4E
InitiatingPhy : 0x01 (1) (
INIT_PHY_1M)
Timeout : 0x0000 (0)
Dump(Tx):
0000:01 62 FE 0A 01 4E F2 96 51 B7 7D 01 00 00 .b...N..Q.}...
--------------------------------------------------------------------
[148] : <Rx> - 01:45:00.003
-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 : 0xFE62 (GapInit_connect)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 62 FE 00 ......b..
--------------------------------------------------------------------
[149] : <Error> - 01:45:39.987
OAD Operation Timed Out
Operation Name = GAP_EstablishLink_OadReset
--------------------------------------------------------------------
[150] : <Info> - 01:45:39.990
OAD - Restore Connection Settings
--------------------------------------------------------------------
[151] : <Error> - 01:45:39.992
OAD Download Not Successful
--------------------------------------------------------------------
Can anyone tell me what I'm doing wrong?
Any and all help is appreciated, thanks!



