I am working on FRDM KW36 board. I am getting UART Rx overrun issue while receiving packets at baudrate more than 750kbps. It is woking fine upto 500 kbps baudrate.
Here is the code snippet for LPUART initialization
#define LPUART_BUFFER_LENGTH 1
#define BRIDGE_LPUART_BAUDRATE 1000000
CLOCK_SetLpuart1Clock(0x01U); //MCGFLLCLK - 40Mhz
config.baudRate_Bps = BRIDGE_LPUART_BAUDRATE;
config.enableTx = true;
config.enableRx = true;
LPUART_Init(BRIDGE_LPUART, &config, BRIDGE_LPUART_CLK_FREQ);
LPUART_TransferCreateHandle(BRIDGE_LPUART, &g_lpuartHandle, __lpuart_driver_callback, NULL);
receiveXfer.data = g_rxBuffer;
receiveXfer.dataSize = LPUART_BUFFER_LENGTH;
LPUART_TransferReceiveNonBlocking(BRIDGE_LPUART, &g_lpuartHandle, &receiveXfer, NULL);
Please help me to figure out the issue. What is the maximum baud-rate that can be achieved in the FRDM KW36 board. Actually we are looking for 3mbps baudaret. please help me on this
Note :In release build, 1mbps baudrate is woking fine, But the same code gives UART rx overrun error in debug build.
Thanks in Advance