Skip to main content
elevator4
Associate
April 19, 2022
Solved

STM32G030F, remapping PA11/PA12 to PA9/PA10 not working?

  • April 19, 2022
  • 2 replies
  • 2353 views

Hello, I use USART1 routed to PA9/PA10 (AF1 as per data sheet), so executing the line

SYSCFG->CFGR1 |= (SYSCFG_REMAP_PA11 | SYSCFG_REMAP_PA12);

should present the GPIOs PA9 and PA10 to pins 16 and 17 of the TSSOP20 package. Right?

Well, pins 16 and 17 continue to carry PA11/PA12 no matter what the state of the two REMAP bits. I suppose these control a MUX each (as opposed to multiple bonding like e.g.PB3/4/5/6)?

Is there anything I am missing? Thank you!

This topic has been closed for replies.
Best answer by waclawek.jan

> no matter what the state of the two REMAP bits

Did you read them out and check?

> Is there anything I am missing?

RCC_APBENR2.SYSCFGEN?

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
April 19, 2022

> no matter what the state of the two REMAP bits

Did you read them out and check?

> Is there anything I am missing?

RCC_APBENR2.SYSCFGEN?

JW

elevator4
elevator4Author
Associate
April 19, 2022

JW you're an ANGEL! Thank you!

-e