2025-12-11 12:23 AM
hello
Description:
I'm currently working with the STM32U585 and encountered an issue related to GPIO behavior after waking up from standby mode.
Before entering standby, I configure certain GPIO pull-up:(No external pull-down resistors on the affected pins)
HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_D, PWR_GPIO_BIT_14);
HAL_PWREx_EnablePullUpPullDownConfig();However, after the MCU wakes up from standby (via wakeup pin), I observe a brief voltage drop on those previously GPIOs, about 300ms. This drop occurs before the firmware reinitializes the GPIO configuration:
i added a delay(implemented with i--)before calling the HAL_Init() function, and the voltage drop became less pronounced:
Questions:
Is this behavior expected due to the standby mode reset mechanism?
Is there a recommended way to retain GPIO output levels across standby wakeup?
Could this be related to the IO pull settings or the boot configuration?
Are there any hardware-level workarounds to avoid this voltage dip?
2025-12-11 10:29 PM
It seems that the pull-up did not take effect
2025-12-12 3:02 AM
Hello @lll
Is the pin PD14 is disconnected from other device when measuring the voltage level?
2025-12-12 6:42 AM
Yes, PD14 is disconnected from other device, and I tested two IO ports both exhibited the same phenomenon
2025-12-17 11:37 PM
Is this a common issue with chips
2025-12-28 8:55 PM
help
2025-12-28 10:00 PM
Doesn't make a whole lot of sense to me.
If you set the pulldown resistor instead of pullup, what happens?
Is PD14 being initialized as output? Initialize it as input instead, with a pullup. What happens?
300ms is an eternity. Why does it take so long to re-initialize the pin?