2025-09-01 9:23 AM
Hello there,
I'm using a STM32G431KBU and programming it using STM32 Cube IDE.
There are 2 pins, PB4 and PB6, both digital inputs, I'm having problem with. On both, I apply 5V with a 10K pull-up resistor, while the MCU is working is at 3V3, this should work fine, as both are five-volts tolerant (FT), as per datasheet. When connected to the pull-up resistor, the voltage on the pin drops to 1V7 - 1V6, while there is 3V3 on the pull-up resistor.
It looks like there is a pull-down resistor configured on these pins, and according to the DS, these pull-down resistors are controlled by the level on PA9 and PA10:
I've tried to disable these before GPIO init, but it did not work:
Any recommendations on how to properly disable these internal pull-down resistors on PB4 and PB6?