Skip to main content
Visitor II
July 31, 2024
Question

Regarding STM32F030 HAL_UART_ERROR_FE

  • July 31, 2024
  • 1 reply
  • 901 views

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?

    This topic has been closed for replies.

    1 reply

    Super User
    July 31, 2024

    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.