cancel
Showing results for 
Search instead for 
Did you mean: 

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

yundm2
Associate II

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

LL_USART_SetRXPinLevel(UART4, UART_ADVFEATURE_RXINV_ENABLE);

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

4 REPLIES 4
Sara BEN HADJ YAHYA
ST Employee

Hello @yundm2​ ,

Thanks for your feedback,

Could you please share your .ioc file?

Regards,

Sara.

TDK
Guru

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 Employee

Hello,

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

Thanks for your contribution,

Regards,

Sara.

Sara BEN HADJ YAHYA
ST Employee

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.