HI all,
i am using S32k144 controller, in this i enabled uart using "uartPal1" library.
i am using interrupt's to send & receive data from UART port. with 9600 & 57600 baudrate i am able to receive the data properly, but with 115200 baudrate data receiving not properly out of 10 time i am getting 2 times correct data and other times observed some junk data received.
i am attaching my config details, please anyone look into this
/* Serial User Configurations */
uart_user_config_t uartPal1_Config0_RS485 = {
.baudRate = 115200,
.bitCount = UART_8_BITS_PER_CHAR,
.parityMode = UART_PARITY_DISABLED,
.stopBitCount = UART_ONE_STOP_BIT,
.transferType = UART_USING_INTERRUPTS,
.rxDMAChannel = 0U,
.txDMAChannel = 0U,
.rxCallback = UartPal1_Rx_Callback,
.rxCallbackParam = NULL,
.txCallback = UartPal1_Tx_Callback,
.txCallbackParam = NULL,
.extension = NULL
};
/* UART initialization for receive interrupt */
Usart_Receive_Data_Interrupt(&uartPal1_instance,&RS_DataToRead,RS485_Bytes_To_Read);
UART_SetRxBuffer(&uartPal1_instance, &RS_DataToRead,RS485_Bytes_To_Read);