Usart received data misaligned in buffer when I try to receive data from 2 modbus slaves. It works fine with 1 slave but when both the slaves are connected, after a period of time, usart stars misaligning received data. Can someone help?
This is my usart handler Also I clear the 1st received frame before receiving the 2nd modbus frame.void HAL_UART_IRQHandler1(UART_HandleTypeDef *huart){ __HAL_UART_CLEAR_PEFLAG(huart); __HAL_UART_ENABLE_IT(huart, UART_IT_ERR); __HAL_UART_ENABLE_IT(hu...