void uart_init(void){
uint32_t err_code;
const app_uart_comm_params_t 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,
.baud_rate = UART_BAUDRATE_BAUDRATE_Baud9600
};
APP_UART_FIFO_INIT(&comm_params,
UART_BUF_SIZE,
UART_BUF_SIZE,
uart_event_handler,
APP_IRQ_PRIORITY_LOW,
err_code);
APP_ERROR_CHECK(err_code);}
This is my uart initial function. When I send some data via uart, the process was interrupted by other process, I don't know which one could cause this issue?( I have 3 timers, 100ms, 1.5s and 60s, and BLE service)
After I set the priority level to APP_IRQ_PRIORITY_HIGH, the code works ok.
So which one could cause this problem?