I built the ble_app_uart
example app using GCC with nRF5_SDK_11.0.0_89a8197, and on testing it with the latest version of Nordic nR ToolBox (iOS) and nRFMaster Control Panel (Android), I am finding that the app hangs and then disconnects soon after connecting. (I used the default S130 softdevice.)
Putting printf statements in on_ble_evt
confirms connect/disconnect events.
On disconnection:
p_ble_evt->evt.gap_evt.params.disconnected.reason
is 0x22.
BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT 0x22
I am able to build, upload and test the ble_app_hrs
, ble_app_cscs
and other non NUS apps fine with nRFToolBox.
I don't think the code is crashing, since I am able to see printf/uart messages from the nRF main loop in a terminal window even after the disconnect.
Any thoughts on what might be wrong?
Thanks!