Skip to main content
THA.1
Associate III
December 29, 2021
Question

(Bug Report) UART5 assigned to the serial comm(UASPEP) results in compile error

(Environment)

MC_SDK 5.Y.3 + STM32CubeMX 6.3.0 with HAL + IAR EWARM 8.5

(Hardware)

custom board based on F446RE + custom power board + Low Voltage BLDC motor with Encoder

​

(What I found)

  • I configured UART5 to the serial communication.
  • In "mcp_config.h", USARTA is defined as "USART5", which is, however, not defined.
  • (Workaround) If I replace "USART5" with "UART5", then it works well.

​//#define USARTA USART5 // compile error

​#define USARTA UART5 // good

This topic has been closed for replies.

2 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
December 31, 2021

Hello @THA.1​ ,

Thanks for your feedback,

Could you please share your .ioc file ?

Regards,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
THA.1
THA.1Author
Associate III
January 3, 2022

Attached please find the .ioc file.

Regards

THA