Hello I am getting fatal error and system reset after calling APP_UART_FIFO_INIT.
I want to receive some data over ble and send it to the uart. I connected physical UART to USB adapter to the RX,TX and GND pins on my nRF52 DK.
static void uart_init(void){ app_uart_comm_params_t p_uart_params; ret_code_t err_code; p_uart_params.rx_pin_no = UART_RX_PIN; p_uart_params.tx_pin_no = UART_TX_PIN; p_uart_params.baud_rate = UART_BAUD_RATE; p_uart_params.use_parity = false; p_uart_params.flow_control = APP_UART_FLOW_CONTROL_DISABLED; p_uart_params.baud_rate = UART_BAUDRATE_BAUDRATE_Baud115200; p_uart_params.cts_pin_no = CTS_PIN_NUMBER; p_uart_params.rts_pin_no = RTS_PIN_NUMBER; APP_UART_FIFO_INIT(&p_uart_params, UART_RX_BUF_SIZE, UART_TX_BUF_SIZE, uart_evt_callback, UART_IRQ_PRIORITY,err_code); APP_ERROR_CHECK(err_code); }
I think there is a problem in my config file but I can't find it.
Thing is I dont know which things can be enabled in configuration file for this to work properly.
#ifndef APP_UART_ENABLED #define APP_UART_ENABLED 1 #endif #ifndef APP_UART_DRIVER_INSTANCE #define APP_UART_DRIVER_INSTANCE 0 #endif #ifndef APP_FIFO_ENABLED #define APP_FIFO_ENABLED 1 #endif #ifndef RETARGET_ENABLED #define RETARGET_ENABLED 1 #endif