This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SDK 13.0.0 Buttonless DFU won't enter boot mode

Starting notification and then writing 0x01 to the control point does not cause the Buttonless DFU to enter boot mode. LED #1 remains on.

Run time trace show:

APP:INFO:advertising is started
APP:INFO:Connected
APP:INFO:Received indication state 0, notification state 1

Log from LightBlue shows:

17:39:26.322 — Connected to nearby peripheral: Nordic_Buttonless
17:39:26.948 — Discovered nearby peripheral: (null) (RSSI: -94)
17:39:27.291 — Stopping search for nearby peripherals
17:39:36.236 — Characteristic (8EC90003-F315-4F60-9FB8-838830DAEA50) wrote new value: <01>
17:39:39.325 — Starting search for nearby peripherals
17:39:39.840 — Disconnecting from nearby peripheral: Nordic_Buttonless
17:39:39.854 — Disconnected from nearby peripheral Nordic_Buttonless
17:39:40.455 — Discovered nearby peripheral: (null) (RSSI: -78)
17:39:40.515 — Stopping search for nearby peripherals
Parents
  • Root cause is no BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST gets generated despite the fact wr_auth is set.

    .

    .

    .

    156 char_uuid.type = p_dfu->uuid_type;

    157 char_uuid.uuid = BLE_DFU_BUTTONLESS_CHAR_UUID;

    158

    159 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);

    160 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);

    161

    162 attr_md.vloc = BLE_GATTS_VLOC_STACK;

    163 attr_md.rd_auth = 0;

    164 attr_md.wr_auth = 1;

    165 attr_md.vlen = 1;

    .

    .

    .

    Trace

    APP:INFO:advertising is started
    APP:INFO:Connected
    :INFO:ble_dfu_on_ble_evt 10
    :INFO:ble_dfu_on_ble_evt 21
    :INFO:ble_dfu_on_ble_evt 22
    :INFO:ble_dfu_on_ble_evt 55
    :INFO:ble_dfu_on_ble_evt 50
    :INFO:on_write
    :INFO:ble_dfu_on_ble_evt 52
    :INFO:ble_dfu_on_ble_evt 12
    :INFO:ble_dfu_on_ble_evt 50

Reply
  • Root cause is no BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST gets generated despite the fact wr_auth is set.

    .

    .

    .

    156 char_uuid.type = p_dfu->uuid_type;

    157 char_uuid.uuid = BLE_DFU_BUTTONLESS_CHAR_UUID;

    158

    159 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.read_perm);

    160 BLE_GAP_CONN_SEC_MODE_SET_OPEN(&attr_md.write_perm);

    161

    162 attr_md.vloc = BLE_GATTS_VLOC_STACK;

    163 attr_md.rd_auth = 0;

    164 attr_md.wr_auth = 1;

    165 attr_md.vlen = 1;

    .

    .

    .

    Trace

    APP:INFO:advertising is started
    APP:INFO:Connected
    :INFO:ble_dfu_on_ble_evt 10
    :INFO:ble_dfu_on_ble_evt 21
    :INFO:ble_dfu_on_ble_evt 22
    :INFO:ble_dfu_on_ble_evt 55
    :INFO:ble_dfu_on_ble_evt 50
    :INFO:on_write
    :INFO:ble_dfu_on_ble_evt 52
    :INFO:ble_dfu_on_ble_evt 12
    :INFO:ble_dfu_on_ble_evt 50

Children
No Data
Related