Skip to main content
yundm2
Associate II
Dec 24, 2021 5:51 AM UTC
Solved

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

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.
Sara BEN HADJ YAHYA
ST Technical Moderator
Mar 7, 2022 2:41 PM UTC

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.

4 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
Dec 24, 2021 8:48 AM UTC

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
Dec 24, 2021 3:33 PM UTC

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
Dec 24, 2021 3:59 PM UTC

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
Mar 7, 2022 2:41 PM UTC

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.