Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

NRF_ERROR_BUSY in nrf_drv_uart_tx

Board: nRF52833

SoftDevice: s122

SDK version: 17.0.2

I'm trying to log my continuous sensor data from the peripheral on the serial monitor. So I took ble_app_uart_c example and enabled log to get the values on the COM port. Now I do get the values in the serial monitor but I am getting NRF_ERROR_BUSY error in nrf_drv_uart_tx function a few seconds after ble connection establishment.

How can I solve this? Thanks in advance.

Parents
  • Hello,

    I'm trying to log my continuous sensor data from the peripheral on the serial monitor. So I took ble_app_uart_c example and enabled log to get the values on the COM port.

    The default logging backend for the ble_app_uart_c example is RTT, which I would recommend that you use since the UART instance is already in use by the ble_app_uart_c application (for receiving input to send to its peer, and to output any data received from the peer). You can view RTT loggings either in the SES Debug Terminal directly, or you can download the standalone Segger RTT Viewer application.
    The likely reason for this error is that you are trying to use the UART for both the logging and the application at the same time.

    Best regards,
    Karl

Reply
  • Hello,

    I'm trying to log my continuous sensor data from the peripheral on the serial monitor. So I took ble_app_uart_c example and enabled log to get the values on the COM port.

    The default logging backend for the ble_app_uart_c example is RTT, which I would recommend that you use since the UART instance is already in use by the ble_app_uart_c application (for receiving input to send to its peer, and to output any data received from the peer). You can view RTT loggings either in the SES Debug Terminal directly, or you can download the standalone Segger RTT Viewer application.
    The likely reason for this error is that you are trying to use the UART for both the logging and the application at the same time.

    Best regards,
    Karl

Children
Related