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

nrf52 dk, sdk 17, ble_app_uart_pca10040_s132 error 0x3401

I get error 0x3401 in ble_app_uart_pca10040_s132 (nrf52 dk, sdk17) in  ble_nus.c line 95:


err_code = sd_ble_gatts_value_get(p_ble_evt->evt.gap_evt.conn_handle,
p_nus->tx_handles.cccd_handle,
&gatts_val);

I am running an unmodified version of the ble_app_uart.

The error appears when connecting using the nrfConnect app (iOS, iPhone X).

nrfConnects, but no Tx or Rx characteristics shows up in nrfConnect. 

Is there a bug in sdk17? Maybe related to the handling of cccd? 

Running the ble_app_uart as in sdk15.3.0, gives no issues...

sdk17 details: SDK_17.0.0_9d13099

Parents Reply
  • I downloaded a fresh SDK 17 and programmed the ble_app_uart peripheral example onto an nRF52832 DK. Then I opened nRF Connect for Mobile and connected, and I experienced the same as you, no UART services nor TX/RX characteristics showed up.

    However, deleting the bonding information solved the issue for me:

    I guess this is due to caching from some earlier bonding sessions.

    Hopefully, this is the case for you as well. If not, please tell me, and I'll look into it.

    Best regards,

    Simon

Children
Related