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

nRF52832 p_buffer error.

Hello everyone.

I am developing with nRF 52832.

However, when I call UART_init() function. my source code outputs an error message.

source code is under the line.

static void uart_init(void)
{

  uint32_t err_code;
   const app_uart_comm_params_t comm_params =
      {
          RX_PIN_NUMBER,
          TX_PIN_NUMBER,
          RTS_PIN_NUMBER,
          CTS_PIN_NUMBER,
          APP_UART_FLOW_CONTROL_DISABLED,
          false,
          UART_BAUDRATE_BAUDRATE_Baud38400
      };

    APP_UART_FIFO_INIT(&comm_params,
                         UART_RX_BUF_SIZE,
                         UART_TX_BUF_SIZE,
                         uart_error_handle,
                         APP_IRQ_PRIORITY_LOWEST,
                         err_code);

    APP_ERROR_CHECK(err_code);
}

but If APP_UART_FIFO_INIT is executed, enter an NRF_BREAKPOINT_COND error.

I track the reason for the error, I can check under the function.

if (p_buffers == NULL)
{
    return NRF_ERROR_INVALID_PARAM;
}

let me know solution.

thanks.

Parents Reply Children
No Data
Related