Question
Can't pull up a GPIO pin set as AF QSPI I/O
Hi,
I am working on a project on STM32H750. I set up the QSPI I/O pins on PD11, PD12, PD13 and PE2.
Because PE2 (IO2) also serves as the WP# pin for the external flash, I would like to set it to have an internal pull-up, so the GPIO definitions are like:
//PE2-- QUADSPI_BK1_IO2
GPIO_Initure.Pin=GPIO_PIN_2;
GPIO_Initure.Mode=GPIO_MODE_AF_PP;
GPIO_Initure.Pull=GPIO_PULLUP;
GPIO_Initure.Speed=GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_Initure.Alternate=GPIO_AF9_QUADSPI;
HAL_GPIO_Init(GPIOE,&GPIO_Initure);
However, even with GPIO_PULLUP, the pin still stays low after initialization. Did I miss some other set up? How can I set it to have an internal pull-up?
Appreciate any pointers.
Zhi
