STM32H7 a question about

i salute the whole community

https://preview.redd.it/rk4f2u3n3s5g1.png?width=644&format=png&auto=webp&s=a04fecdfeff26f312db7f0f36a1a46422b4428b9

/*Configure GPIO pin : BUTON_Pin */

GPIO_InitStruct.Pin = BUTON_Pin;

GPIO_InitStruct.Mode = GPIO_MODE_INPUT;

GPIO_InitStruct.Pull = GPIO_NOPULL;

HAL_GPIO_Init(BUTON_GPIO_Port, &GPIO_InitStruct);

In the code I showed above, GPIO_NOPULL is displayed. It's the default when I define a button in CubeIDE. However, the button doesn't work this way, but it works when I manually PULLUP it. What's the reason for this?

Posted Dec 7, 2025, 12:54 PM UTC

17
Loading comments…