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: Reset error to persistent app in on-chip OAD

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hi
On-chip OAD function was added after development based on the current project zero example.
After downloading persistent_app, stack, main_app, and bim to the development board, I started the OAD procedure.
An error occurs when resetting to persistent app after rebooting the board when OAD starts. Also, communication with the host_test app is not possible.

The main app and stack are based on project zero, and the persistent app is based on simple_peripheral_cc2640r2lp_oad_onchip_app projects.

Is it because the base of the main app and the persistent app are different?

Please advise.

Thank you

  • Hi Malone, 

    What error are you getting? After the reset, is the device advertising (i.e. do you have any sniffer logs)?

    Also, which versions of the SDK and CCS are you using?

    Thanks, 
    Elin

  • Hi Elin

    Thanks for the reply.

    Attach the Blootooth sniffer log and Btool OAD log here.

    SDK version is 3_30_00_20 and CCS is 9.2.

    Best regards

    malone

    [1] : <Info> - 11:11:46.318
    Port opened at 2020-05-29 ���� 11:11:46
    --------------------------------------------------------------------
    [2] : <Tx> - 11:11:46.489
    -Type           : 0x01 (Command)
    -OpCode         : 0xFC1D (HCIExt_ResetSystemCmd)
    -Data Length    : 0x01 (1) byte(s)
     Type           : 0x00 (0) (Chip Reset)
    Dump(Tx):
    0000:01 1D FC 01 00                                  .....
    --------------------------------------------------------------------
    [3] : <Rx> - 11:11:46.823
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x05 (5) bytes(s)
     Event          : 0x041D (1053) (HCIExt_ResetSystemCmdDone)
     Status         : 0x00 (0) (SUCCESS)
     CmdOpCode      : 0xFC1D (HCIExt_ResetSystemCmd)
    Dump(Rx):
    0000:04 FF 05 1D 04 00 1D FC                         ........
    --------------------------------------------------------------------
    [4] : <Tx> - 11:11:47.387
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE00 (GAP_DeviceInit)
    -Data Length    : 0x26 (38) byte(s)
     ProfileRole    : 0x08 (8) (
                      Central)
     MaxScanRsps    : 0x14 (20)
     IRK            : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
     CSRK           : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
     SignCounter    : 0x00000001 (1)
    Dump(Tx):
    0000:01 00 FE 26 08 14 00 00 00 00 00 00 00 00 00 00 ...&............
    0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
    0020:00 00 00 00 00 00 01 00 00 00                   ..........
    --------------------------------------------------------------------
    [5] : <Rx> - 11:11:47.607
    -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         : 0xFE00 (GAP_DeviceInit)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 00 FE 00                      .........
    --------------------------------------------------------------------
    [6] : <Rx> - 11:11:47.618
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x0600 (1536) (GAP_DeviceInitDone)
     Status         : 0x00 (0) (SUCCESS)
     DevAddr        : 0C:61:CF:A2:FF:34
     DataPktLen     : 0x00FF (255)
     NumDataPkts    : 0x05 (5)
     IRK            : 6E:94:6E:A2:B1:B8:33:B7:C3:28:1D:98:0B:DF:0E:AC
     CSRK           : 30:56:08:5D:CD:CE:F0:11:74:34:75:7D:AC:DC:86:CA
    Dump(Rx):
    0000:04 FF 2C 00 06 00 34 FF A2 CF 61 0C FF 00 05 6E ..,...4...a....n
    0010:94 6E A2 B1 B8 33 B7 C3 28 1D 98 0B DF 0E AC 30 .n...3..(......0
    0020:56 08 5D CD CE F0 11 74 34 75 7D AC DC 86 CA    V.]....t4u}....
    --------------------------------------------------------------------
    [7] : <Tx> - 11:11:47.678
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x15 (21) (TGAP_CONN_EST_INT_MIN)
    Dump(Tx):
    0000:01 31 FE 01 15                                  .1...
    --------------------------------------------------------------------
    [8] : <Tx> - 11:11:47.689
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x16 (22) (TGAP_CONN_EST_INT_MAX)
    Dump(Tx):
    0000:01 31 FE 01 16                                  .1...
    --------------------------------------------------------------------
    [9] : <Tx> - 11:11:47.700
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x1A (26) (TGAP_CONN_EST_LATENCY)
    Dump(Tx):
    0000:01 31 FE 01 1A                                  .1...
    --------------------------------------------------------------------
    [10] : <Tx> - 11:11:47.711
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE31 (GAP_GetParamValue)
    -Data Length    : 0x01 (1) byte(s)
     ParamID        : 0x19 (25) (TGAP_CONN_EST_SUPERV_TIMEOUT)
    Dump(Tx):
    0000:01 31 FE 01 19                                  .1...
    --------------------------------------------------------------------
    [11] : <Rx> - 11:11:47.720
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0050 (80)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 50 00                ......1..P.
    --------------------------------------------------------------------
    [12] : <Rx> - 11:11:47.742
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0050 (80)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 50 00                ......1..P.
    --------------------------------------------------------------------
    [13] : <Rx> - 11:11:47.753
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x0000 (0)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 00 00                ......1....
    --------------------------------------------------------------------
    [14] : <Rx> - 11:11:47.775
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x08 (8) bytes(s)
     Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
     Status         : 0x00 (0) (SUCCESS)
     OpCode         : 0xFE31 (GAP_GetParamValue)
     DataLength     : 0x02 (2)
     ParamValue     : 0x07D0 (2000)
    Dump(Rx):
    0000:04 FF 08 7F 06 00 31 FE 02 D0 07                ......1....
    --------------------------------------------------------------------
    [15] : <Tx> - 11:13:16.250
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE04 (GAP_DeviceDiscoveryRequest)
    -Data Length    : 0x03 (3) byte(s)
     Mode           : 0x03 (3) (All)
     ActiveScan     : 0x01 (1) (Enable)
     WhiteList      : 0x00 (0) (All)
    Dump(Tx):
    0000:01 04 FE 03 03 01 00                            .......
    --------------------------------------------------------------------
    [16] : <Rx> - 11:13:16.275
    -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         : 0xFE04 (GAP_DeviceDiscoveryRequest)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 04 FE 00                      .........
    --------------------------------------------------------------------
    [17] : <Rx> - 11:13:16.286
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x1F (31) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x00 (0) (CONN_UNDIRECT_AD)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 80:6F:B0:9D:CC:C0
     Rssi           : 0xBC (188)
     DataLength     : 0x12 (18)
     Data           : 02:01:06:0E:09:53:6D:61:72:74:20:43:61:72:20:4B:
                      65:79
    Dump(Rx):
    0000:04 FF 1F 0D 06 00 00 00 C0 CC 9D B0 6F 80 BC 12 ............o...
    0010:02 01 06 0E 09 53 6D 61 72 74 20 43 61 72 20 4B .....Smart Car K
    0020:65 79                                           ey
    --------------------------------------------------------------------
    [18] : <Rx> - 11:13:16.297
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x0E (14) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x04 (4) (SCAN_RESPONSE)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 80:6F:B0:9D:CC:C0
     Rssi           : 0xBC (188)
     DataLength     : 0x01 (1)
     Data           : 00
    Dump(Rx):
    0000:04 FF 0E 0D 06 00 04 00 C0 CC 9D B0 6F 80 BC 01 ............o...
    0010:00                                              .
    --------------------------------------------------------------------
    [19] : <Rx> - 11:13:16.308
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x060D (1549) (GAP_DeviceInformation)
     Status         : 0x00 (0) (SUCCESS)
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 27:44:CC:B5:38:42
     Rssi           : 0xE1 (225)
     DataLength     : 0x1F (31)
     Data           : 1E:FF:06:00:01:09:20:02:04:A9:2A:51:17:42:63:EA:
                      77:84:F9:9B:B8:D2:3E:3F:79:95:1C:A5:36:47:3D
    Dump(Rx):
    0000:04 FF 2C 0D 06 00 03 01 42 38 B5 CC 44 27 E1 1F ..,.....B8..D'..
    0010:1E FF 06 00 01 09 20 02 04 A9 2A 51 17 42 63 EA ...... ...*Q.Bc.
    0020:77 84 F9 9B B8 D2 3E 3F 79 95 1C A5 36 47 3D    w.....>?y...6G=
    --------------------------------------------------------------------
    [20] : <Rx> - 11:13:26.509
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x14 (20) bytes(s)
     Event          : 0x0601 (1537) (GAP_DeviceDiscoveryDone)
     Status         : 0x00 (0) (SUCCESS)
     NumDevs        : 0x02 (2)
     Device #0
     EventType      : 0x00 (0) (CONN_UNDIRECT_AD)
     AddrType       : 0x00 (0) (ADDRTYPE_PUBLIC)
     Addr           : 80:6F:B0:9D:CC:C0
     Device #1
     EventType      : 0x03 (3) (NON_CONN_UNDIRECT_AD)
     AddrType       : 0x01 (1) (ADDRTYPE_RANDOM)
     Addr           : 27:44:CC:B5:38:42
    Dump(Rx):
    0000:04 FF 14 01 06 00 02 00 00 C0 CC 9D B0 6F 80 03 .............o..
    0010:01 42 38 B5 CC 44 27                            .B8..D'
    --------------------------------------------------------------------
    [21] : <Tx> - 11:13:33.097
    -Type           : 0x01 (Command)
    -OpCode         : 0xFE09 (GAP_EstablishLinkRequest)
    -Data Length    : 0x09 (9) byte(s)
     HighDutyCycle  : 0x00 (0) (Disable)
     WhiteList      : 0x00 (0) (Disable)
     AddrTypePeer   : 0x00 (0) (ADDRTYPE_PUBLIC)
     PeerAddr       : 80:6F:B0:9D:CC:C0
    Dump(Tx):
    0000:01 09 FE 09 00 00 00 C0 CC 9D B0 6F 80          ...........o.
    --------------------------------------------------------------------
    [22] : <Rx> - 11:13:33.116
    -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         : 0xFE09 (GAP_EstablishLinkRequest)
     DataLength     : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 09 FE 00                      .........
    --------------------------------------------------------------------
    [23] : <Rx> - 11:13:33.226
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x14 (20) bytes(s)
     Event          : 0x0605 (1541) (GAP_EstablishLink)
     Status         : 0x00 (0) (SUCCESS)
     DevAddrType    : 0x00 (0) (ADDRTYPE_PUBLIC)
     DevAddr        : 80:6F:B0:9D:CC:C0
     ConnHandle     : 0x0000 (0)
     ConnRole       : 0x08 (8) (
                      Central)
     ConnInterval   : 0x0050 (80)
     ConnLatency    : 0x0000 (0)
     ConnTimeout    : 0x07D0 (2000)
     ClockAccuracy  : 0x00 (0)
    Dump(Rx):
    0000:04 FF 14 05 06 00 00 C0 CC 9D B0 6F 80 00 00 08 ...........o....
    0010:50 00 00 00 D0 07 00                            P......
    --------------------------------------------------------------------
    [24] : <Tx> - 11:13:33.228
    -Type           : 0x01 (Command)
    -OpCode         : 0x2022 (HCI_LE_SetDataLength)
    -Data Length    : 0x06 (6) byte(s)
     Handle         : 0x0000 (0)
     TxOctets       : 0x00FB (251)
     TxTime         : 0x0848 (2120)
    Dump(Tx):
    0000:01 22 20 06 00 00 FB 00 48 08                   ." .....H.
    --------------------------------------------------------------------
    [25] : <Rx> - 11:13:33.259
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2022 (HCI_LE_SetDataLength)
     Status         : 0x00 (0) (SUCCESS)
     Handle         : 0x0000 (0)
    Dump(Rx):
    0000:04 0E 06 01 22 20 00 00 00                      ...." ...
    --------------------------------------------------------------------
    [26] : <Rx> - 11:13:33.423
    -Type           : 0x04 (Event)
    -EventCode      : 0x003E (HCI_LE_GenericReportEvent)
    -Data Length    : 0x0B (11) bytes(s)
     LE Event Code  : 0x07 (7) (HCI_LE_DataLengthChangeEvent)
     LE Event Code  : 0x07 (7) (HCI_LE_DataLengthChangeEvent)
     Handle         : 0x0000 (0)
     MaxTxOctets    : 0x00FB (251)
     MaxTxTime      : 0x0848 (2120)
     MaxRxOctets    : 0x001B (27)
     MaxRxTime      : 0x0148 (328)
    Dump(Rx):
    0000:04 3E 0B 07 00 00 FB 00 48 08 1B 00 48 01       .>......H...H.
    --------------------------------------------------------------------
    [27] : <Info> - 11:13:33.463
    Device Connected
    Handle = 0x0000
    Addr Type = 0x00 (ADDRTYPE_PUBLIC)
    BDAddr = 80:6F:B0:9D:CC:C0
    --------------------------------------------------------------------
    [28] : <Info> - 11:13:59.059
    OAD - Update Connection Settings
    --------------------------------------------------------------------
    [29] : <Info> - 11:13:59.078
    Start OAD Download
    --------------------------------------------------------------------
    [30] : <Info> - 11:13:59.084
    StartReset Service Discovery
    --------------------------------------------------------------------
    [31] : <Info> - 11:13:59.090
    OAD Send UUID Discovery
    --------------------------------------------------------------------
    [32] : <Tx> - 11:13:59.066
    -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                               .. ...
    --------------------------------------------------------------------
    [33] : <Tx> - 11:13:59.097
    -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.....
    --------------------------------------------------------------------
    [34] : <Rx> - 11:13:59.146
    -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                      .........
    --------------------------------------------------------------------
    [35] : <Rx> - 11:13:59.222
    -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       : 0x00000000000000FF (255) (
                      Encryption
                      Connection_Parameters_Request
                      Reject_Extended_Indication
                      Slave_Features_Exchange
                      Ping
                      Data_Packet_Length_Extension
                      Privacy
                      Extended_Scanner_Filter_Policies)
    Dump(Rx):
    0000:04 3E 0C 04 00 00 00 FF 00 00 00 00 00 00 00    .>.............
    --------------------------------------------------------------------
    [36] : <Rx> - 11:13:59.322
    -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         : 2C:00
     Handle         : FF:FF
    Dump(Rx):
    0000:04 FF 0A 07 05 00 00 00 04 2C 00 FF FF          .........,...
    --------------------------------------------------------------------
    [37] : <Info> - 11:13:59.333
    OAD Send UUID Info Discovery
    --------------------------------------------------------------------
    [38] : <Rx> - 11:13:59.519
    -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                      .........
    --------------------------------------------------------------------
    [39] : <Tx> - 11:13:59.519
    -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.
    --------------------------------------------------------------------
    [40] : <Tx> - 11:13:59.530
    -Type           : 0x01 (Command)
    -OpCode         : 0xFD84 (GATT_DiscAllCharDescs)
    -Data Length    : 0x06 (6) byte(s)
     ConnHandle     : 0x0000 (0)
     StartHandle    : 0x002C (44)
     EndHandle      : 0xFFFF (65535)
    Dump(Tx):
    0000:01 84 FD 06 00 00 2C 00 FF FF                   ......,...
    --------------------------------------------------------------------
    [41] : <Rx> - 11:13:59.563
    -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                      .........
    --------------------------------------------------------------------
    [42] : <Rx> - 11:13:59.574
    -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                      .........
    --------------------------------------------------------------------
    [43] : <Rx> - 11:13:59.723
    -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         : 002C
     Uuid           : 00:28
     Handle         : 002D
     Uuid           : 03:28
    Dump(Rx):
    0000:04 FF 0F 05 05 00 00 00 09 01 2C 00 00 28 2D 00 ..........,..(-.
    0010:03 28                                           .(
    --------------------------------------------------------------------
    [44] : <Rx> - 11:13:59.915
    -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         : 002E
     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 2E 00 00 00 00 00 ................
    0010:00 00 00 B0 00 40 51 04 D1 FF 00 F0             .....@Q.....
    --------------------------------------------------------------------
    [45] : <Rx> - 11:14:00.113
    -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         : 002F
     Uuid           : 01:29
    Dump(Rx):
    0000:04 FF 0B 05 05 00 00 00 05 01 2F 00 01 29       ........../..)
    --------------------------------------------------------------------
    [46] : <Rx> - 11:14:00.322
    -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                      .........
    --------------------------------------------------------------------
    [47] : <Info> - 11:14:00.337
    OAD Invalidate Image On StartReset
    --------------------------------------------------------------------
    [48] : <Tx> - 11:14:00.345
    -Type           : 0x01 (Command)
    -OpCode         : 0xFD96 (GATT_WriteLongCharValue)
    -Data Length    : 0x07 (7) byte(s)
     ConnHandle     : 0x0000 (0)
     Handle         : 0x002E (46)
     Offset         : 0x0000 (0)
     Value          : 01
    Dump(Tx):
    0000:01 96 FD 07 00 00 2E 00 00 00 01                ...........
    --------------------------------------------------------------------
    [49] : <Rx> - 11:14:00.392
    -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                      .........
    --------------------------------------------------------------------
    [50] : <Rx> - 11:14:00.513
    -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.
    --------------------------------------------------------------------
    [51] : <Rx> - 11:14:01.117
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x06 (6) bytes(s)
     Event          : 0x0519 (1305) (ATT_ExecuteWriteRsp)
     Status         : 0x14 (20) (bleNotConnected)
     ConnHandle     : 0x0000 (0)
     PduLen         : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 19 05 14 00 00 00                      .........
    --------------------------------------------------------------------
    [52] : <Info> - 11:14:01.126
    OAD - Restore Connection Settings
    --------------------------------------------------------------------
    [53] : <Error> - 11:14:01.130
    OAD Download Not Successful
    --------------------------------------------------------------------
    [54] : <Info> - 11:14:01.148
    Device Disconnected
    Handle = 0x0000
    Addr Type = 0x00 (ADDRTYPE_PUBLIC)
    BDAddr = 80:6F:B0:9D:CC:C0
    --------------------------------------------------------------------
    [55] : <Rx> - 11:14:01.128
    -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                      .........
    --------------------------------------------------------------------
    [56] : <Tx> - 11:14:01.130
    -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                               .. ...
    --------------------------------------------------------------------
    [57] : <Rx> - 11:14:01.216
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x04 (4) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2016 (HCI_LEReadRemoteUsedFeatures)
     Status         : 0x02 (2) (UNKNOWN_CONN_ID)
    Dump(Rx):
    0000:04 0E 04 01 16 20 02                            ..... .
    --------------------------------------------------------------------
    
    OAD_TEST_20200529.psd

  • Hi,

    I suggest you make the on-chip oad example program work, then port over your code.

    Also, always use simple peripheral example program as base for BLE Peripheral project development.

    -kel

  • Hi  kel


    Thank you for good advice. '

    There is one more question.

    The first log is the project zero based ccs_linker_define_tgt.cmd file.
    The second log is the ccs_linker_define_tgt.cmd file based on simple_peripheral.

    / *
    ** Stack Frontier Generator 1.1.0 (2020-05-31 19: 32: 19.206000)
    **
    ** WARNING-Auto-generated file. Modifications could be lost!
    * /

    --define = OAD_TGT_RAM0_START = 0x20000000
    --define = OAD_TGT_FLASH_START = 0xa8
    --define = OAD_TGT_ENTRY_ADDR = 0x1dfc0


    / *
    ** Stack Frontier Generator 1.1.0 (2020-05-03 18: 38: 29.230000)
    **
    ** WARNING-Auto-generated file. Modifications could be lost!
    * /

    --define = OAD_TGT_RAM0_START = 0x20000000
    --define = OAD_TGT_FLASH_START = 0x13000
    --define = OAD_TGT_ENTRY_ADDR = 0x1dfc0 '

    How can I change OAD_TGT_FLASH_START from 0xA8 to 0x13000 like simple_peripheral?
  • Hi malone,

    If you use simple peripheral on-chip oad example program as base you do not need to deal with these sort of errors. The simple peripheral on-chip oad example program already works. Then you just add your code implementation.

    But, if you add on-chip oad to project zero you encounter these errors. There is a documented procedure, But maybe the procedure is updated, maybe it is not.

    -kel

  • Hi

    Okay. First, I will port my code to the simple peripheral on-chip oad example program.

    Thank you.