STM32Cube - UART Polling Parity/Overrun Errors Checks Missing
Hello,
We are using UART polling and had it configured using STM32Cube. That was great until we realised there wasn’t any built-in checks for parity errors, overrun errors, …. How come those errors seems to be checked within the handler when using non-blocking functions (interrupt) but not within HAL_UART_Receive() or UART_WaitOnFlagUntilTimeout() ?
I understand that we could just use __HAL_UART_GET_FLAG(huart, UART_FLAG_PE) to check for parity errors but we would need to place it within HAL_UART_Receive() or UART_WaitOnFlagUntilTimeout() functions so would get overwritten everytime HAL is being regenerated. I couldn't find any USER CODE BEGIN/END macro within this file to add our own code and CUSTOM USER CODE BEGIN/END is not supported.
Is there any reason for those errors not to be checked when using polling ?
Would that ever be supported ?
How can we add those checks in a clean way ?
Thanks
