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

UART pin should not use AIN pin

Hi, 

I init the UART pin with the AIN pin such as P0.05, but the program will run into __WEAK void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info) every time. Is there anyone experience this problem, any suggestion or response is appreciated.

following is the uart init funciton.

static void uart_init(void)
{
uint32_t err_code;
app_uart_comm_params_t const comm_params =
{
.rx_pin_no = RX_PIN_NUMBER,
.tx_pin_no = TX_PIN_NUMBER,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
#if defined (UART_PRESENT)
.baud_rate = NRF_UART_BAUDRATE_115200
#else
.baud_rate = NRF_UARTE_BAUDRATE_115200
#endif
};

APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_event_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
}

Related