STM32G031J6 pin remapping?
Hi there,
Has anyone figured out how GPIO pin remapping works on the 8-pin STM32G031J6 chips? The datasheet lists several different pads connected to each pin, and I only see remapping bits for PA9/11 and PA10/12 in the SYSCFG registers. For example, pin 4 has PA0/PA1/PA2/PF2 assigned to it.
Can we configure which pads are actually connected to the pins, and are there any reference documents describing that process? Or are all of the listed pads always connected to the pin, and does that mean that we need to ensure that only one GPIO is configured as anything other than 'floating input' at any given time?
When I try to configure PA0 as a push-pull output on the STM32G031J6, my program crashes with a hard fault. But the same program works when I use PA8 instead. I'm guessing that happens because PA0 shares a pin with PF2 which is configured as the chip's reset signal by default, but I can't find any documentation explaining how things should work.
Thank you very much.