Open drain pin is pulling down slightly on STM32G081RB
I am using pin PA8 in open drain GPIO output mode to control the power supply voltage on a custom board. Normally, the power supply output 5V but when PA8 is set low, it adds an extra 3k resistor to ground to the voltage feedback pin on the power supply and the output switches 12V.
The voltage feedback node is nominally 2.5V.
This works fine except that when PA8 is high (open drain), the supply outputs around 7.5V and the voltage at the PA8 pin is around 1.5V, not the 2.5V I would expect. Internal pull-ups and pull-downs are disabled.
I rewired the prototype board and switched to a different pin (PB11) and everything worked correctly. This problem exists on all of the prototype boards that we have powered up so far.
What is going on? Why is that particular pin acting like it has a very weak pull-down when high instead of going open drain?
