cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: USART_RQR_TXFRQ undeclared for STM32F030RC

Alexander Smurov
Associate

MCU: STM32F030RC

CubeMX Firmware Package: STM32Cube FW_F0 V1.11.3

Actual code snippet from stm32f0xx_hal_uart.h:

/** @brief  Flush the UART Data registers.
  * @param  __HANDLE__ specifies the UART Handle.
  * @retval None
  */
#define __HAL_UART_FLUSH_DRREGISTER(__HANDLE__)  \
  do{                \
    SET_BIT((__HANDLE__)->Instance->RQR, UART_RXDATA_FLUSH_REQUEST); \
    SET_BIT((__HANDLE__)->Instance->RQR, UART_TXDATA_FLUSH_REQUEST); \
  }  while(0U)

Compiler error:

Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_uart.h:500:45: error: 'USART_RQR_TXFRQ' undeclared (first use in this function); did you mean 'USART_RQR_RXFRQ'?

1 REPLY 1

Officially, in 'F030, USART_RQR.TXFRQ does not exist, see RM0360. The reason is, that it's bound to Smartcard mode, which is officially not implemented in the 'F030. Thus, this is formally a CubeFW error.

JW