This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 dk sdk17 nus relay does crashes at connect

I have tried the nus relay experimental example using nrf52dk and sdk 17. However it crashes when I try to connect using either nrfToolbox Uart or BlueFruit Connect (Uart) (on iPhone X).

The crash is at:

<info> app_timer: RTC: initialized.
<info> app: BLE UART central example started.
<info> app: Connecting to target 54F591A8F077
<info> app: Peripheral connected
<info> app: ATT MTU exchange completed.
<info> app: Ble NUS max data length set to 0xB6(182)
<error> app: ERROR 17 [NRF_ERROR_BUSY] at ble-app-uart-relay-master\app_nus_server.c:287

which is in the sd_ble_gap_phy_update() in app_nus_server:

case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
{
NRF_LOG_DEBUG("PHY update request.");
ble_gap_phys_t const phys =
{

.rx_phys = BLE_GAP_PHY_AUTO,
.tx_phys = BLE_GAP_PHY_AUTO,

};
err_code = sd_ble_gap_phy_update(p_ble_evt->evt.gap_evt.conn_handle, &phys);
APP_ERROR_CHECK(err_code);
}

break;

If removing the app_error_check(), the nus relay example does not crash and I can connect. However, there is no nus gatt profile exchanged with the apps on the iPhone. The BlueFruit app gives only some info, and the nrfToolbox Uart connects and then disconnects after less than 1s  without any fault messages.




Parents Reply Children
Related