Skip to main content
Visitor
October 11, 2026
Question

How to remap usart3 pins

  • October 11, 2026
  • 1 reply
  • 14 views

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
October 11, 2026

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