cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L152 UART5 Pull Up forced by Mx?

ASche.5
Associate II

I am trying to configure the UART5 on PD2 and PC12 for my STM32L152RE as open drain but the Mx GUI only offers pull ups. I searched manual and Errata but nothing indicates a special pin here.

is this a bug in the Mx config or a real thing does anybody know? It just makes me nervous for my pin mapping..

Thanks.

2 REPLIES 2
TDK
Guru

The RX line isn't driven, so the push-pull setting there is irrelevant.

The TX line seems to be forced to push-pull in CubeMX. You can change it in user code if you wish. Seems like CubeMX lets you change the mode for USARTs but not for UARTs on this chip. The hardware allows it to be set to open drain.

Probable a CubeMX bug.

If you feel a post has answered your question, please click "Accept as Solution".
ASche.5
Associate II

Thanks

I can confirm it isa CubeMX configuration bug for STM32L151/152 and not a real thing, the UART works fine with overwritten GPIO config.