Skip to main content
Alexander Smurov
Associate
December 10, 2021
Question

Bug: USART_RQR_TXFRQ undeclared for STM32F030RC

  • December 10, 2021
  • 1 reply
  • 600 views

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'?

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
December 10, 2021

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