I've got a very strange situation on my STM32G0B0VE GPIO pin A8 gets to be the inverted signal of what PA9 is (it doesn't matter what PA9 is it can be output or Tx of Uaert1). I've checked the errata sheets. See details for more information...
I've made a software so small that it does only the following steps:
1) init clock and everything to work.
2) in the main program I set PIN GPIO_A_8 to input with pull up enabled, nothing is connected to that pin except for a scope probe.
3) then I configure PA9 to GPIO push-pull, here also nothing connected but a scope probe.
4) a small task that sets GPIO_A_9 to high and to low with a dutycycle of 50% and every 100ms.
5) on my scope image i see that pin PA8 follows pin PA9 but inverse output, so when PA9 goes up, PA8 goes down to 400mV, when PA9 goes down to ground level, PA8 goes to 3V3.
I can't seem to figure out what I'm doing wrong here and why PA8 starts to inverse following PA9. If I switch PA8 and PA9 (driving PA8) Then PA9 does not do anything strange and stays 3v3.
I also do not think I have a short as the signal would never be inverted....
If any of you have any idea what to do it would be appreciated. This is very strange at least.