2024-07-30 10:44 PM
I have configured the STM32F030 with DMA for RX, and when sending 0x05 from a PC, I observed 0x7d on the debugger. Upon checking HAL_UART_GetError() during reception, it showed HAL_UART_ERROR_FE. I am unsure about the cause of this issue. Could you please help?
2024-07-31 05:55 AM
FE is a frame error, which typically occurs when the STOP bit is not in the appropriate place. This can happen most frequently due to a mismatch in the baud rate.
The fix would be to ensure baud rates match, clocks are set up correctly, and also ensure data bits, stop bits, and parity settings match.