cancel
Showing results for 
Search instead for 
Did you mean: 

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

elevator4
Associate

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!

1 ACCEPTED SOLUTION

Accepted Solutions

> 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

View solution in original post

2 REPLIES 2

> 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
Associate

JW you're an ANGEL! Thank you!

-e