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

BLE App UART on PCA10056 not working?

I'm using the original BLE App UART from nRF5_SDK_14.0.0 on a PCA10056 Board. The board is advertising, but if I want to open a BLE peer-to-peer connection, than the application stops in the app_error_fault_handler.

If i use the same BLE App UART project from the SDK on a PCA10040 Board than it works.

Does anyone know what the problem could be?

Parents
  • Hi Meriba!

    Could you please try to add this code to the BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST in your ble_evt_handler():

    dl_params.max_rx_octets = 0x64;
    dl_params.max_tx_octets = 0x64;
    dl_params.max_rx_time_us = BLE_GAP_DATA_LENGTH_AUTO;
    dl_params.max_tx_time_us = BLE_GAP_DATA_LENGTH_AUTO;
    

    Your code should now look something like this:
    image description

    Hope that helps!
    Best regards,
    Joakim.

Reply
  • Hi Meriba!

    Could you please try to add this code to the BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST in your ble_evt_handler():

    dl_params.max_rx_octets = 0x64;
    dl_params.max_tx_octets = 0x64;
    dl_params.max_rx_time_us = BLE_GAP_DATA_LENGTH_AUTO;
    dl_params.max_tx_time_us = BLE_GAP_DATA_LENGTH_AUTO;
    

    Your code should now look something like this:
    image description

    Hope that helps!
    Best regards,
    Joakim.

Children
Related