Hello,
I implement my own DFU master in nrf52 using SDK11 to replace use of Nordic mobile App. Target to upgrade is also nrf52 but with SDK15.
I have difficulty to get GAP connection.
From master I initiate connection with :
sd_ble_gap_connect(...)
In bootloader of peripheral (nrf_dfu_ble.c), BLE_GAP_EVT_SEC_PARAMS_REQUEST is received but following error occurs :
err_code = sd_ble_gatts_value_get(m_conn_handle, BLE_UUID_GATT_CHARACTERISTIC_SERVICE_CHANGED, &gatts_value); APP_ERROR_CHECK(err_code); // found error 5 (not found)
If I comment this code, the connection is possible and I can do the DFU.
Any idea ?
Thanks & best regards
Vincent