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

ble_app_uart demo crash and how to improve performance

I have compiled ble_app_uart_pca10040_s112 and it appears to be working for small amounts of data, however it crashes when large amounts of data are pushed through (from UART to Bluetooth).

The crash is in  main.c:

void uart_event_handle(app_uart_evt_t * p_event) .....
case APP_UART_COMMUNICATION_ERROR:
            APP_ERROR_HANDLER(p_event->data.error_communication);   <<<<<<<<<<HERE
            break;

Flow control is enabled in uart_init()

        .flow_control = APP_UART_FLOW_CONTROL_ENABLED,  // was APP_UART_FLOW_CONTROL_DISABLED,

Ideally I want to increase the baudrate from 115200 to 921600 for sending binary data with flow control and timeout for flushing

And also enable  the 2MB PHY with a Bluetooth 5 device

Is there a high-performance UART demo available in the SDK ?

Thanks

Parents Reply Children
Related