Skip to main content
MStoh
Visitor II
August 12, 2019
Question

CubeMX compilation error in stm32f0xx_hal_irda.c

  • August 12, 2019
  • 0 replies
  • 497 views

Hi,

In current CubeMX (I had this problem for F0) when adding an IRDA interface there are some UART_ defines which are fogotten to be replaced by their IRDA_ counterparts in stm32f0xx_hal_irda.c.

This results in a compilation error of the file stm32f0xx_hal_irda.c. In case another UART is added to the project this error will not come up since the UART_ defines will be known (and are in fact same as IRDA_ defines).

Example:

in file "stm32f0xx_hal_irda.c.":

UART_PARITY_NONE (unknown), -> should be IRDA_PARITY_NONE

...

This topic has been closed for replies.