Skip to main content
Visitor II
Oct 11, 2026 2:18 AM UTC
Question

How to remap usart3 pins

hi,

In STM32G070C, it seems there is no remap mechanism to select wich pin(PC5,or PC11) should be used for USART3_RX.

if i configure PC5 and PC11 are USART3_RX all at once, simultaneously, what will happen?

Best regards

 

 

1 reply

gbm
Super User
Oct 11, 2026 4:59 AM UTC

That’s quite simple. You should configure exactly ONE pin as RX by setting AFR and MODER registers. If you configure more than one pin as RX, the chip behavior is unspecified (surely it behaves in some way but it is not documented).

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice