Skip to main content
yundm2
Associate II
December 24, 2021
Solved

CubeMX 6.4 generate codes with a wrong statement about UART4 in STM32F303RC.

  • December 24, 2021
  • 4 replies
  • 1088 views

When set TX Pin Active Level Inversion to Enable, CubeMX generate a wrong statment:

LL_USART_SetRXPinLevel(UART4, UART_ADVFEATURE_RXINV_ENABLE);

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @yundm2​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

When your issue is solved, please close this topic by choosing Select as Best.

Thanks for your contribution.

Sara.

4 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
December 24, 2021

Hello @yundm2​ ,

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.
TDK
December 24, 2021

Not the OP but it's easy enough to replicate.

Seems like the LL library generation in CubeMX is still lacking. Lots of examples like this.

UART_ADVFEATURE_RXINV_ENABLE exists, but of course is in the HAL library, not the LL.

https://github.com/STMicroelectronics/STM32CubeL4/blob/f93a2f74f8e9912405dbf1a297b6df0c423eddf2/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart.h#L580

"If you feel a post has answered your question, please click ""Accept as Solution""."
Sara BEN HADJ YAHYA
ST Technical Moderator
December 24, 2021

Hello,

You are right, I confirm the issue and I reported it internally.

Thanks for your contribution,

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.
Sara BEN HADJ YAHYA
ST Technical Moderator
March 7, 2022

Hello @yundm2​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

When your issue is solved, please close this topic by choosing Select as Best.

Thanks for your contribution.

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.