GPIO at Power-On briefly drives HIGH before it's initialized low [STM32H745]
Immediately after power-on, but before my main gets to initializing the GPIOs (HAL_GPIO_Init
GPIOX->MODER = 1 // Output Push Pull
GPIOX->BSRR = 0 // Set Pin Low
GPIOX->OTYPER = 10U // Output
GPIOX ->PUPDR = 2U // Pulldown
)
I see the pins (ex. PJ2,PJ3, etc) briefly drive high for about 60ms. There is an external strong pull-down, so it's not tristate.
I would expect all pins to be Input/Tristate, or at least according to the datasheet "Analog Function Mode".. but not drive high as this could be dangerous.
I've tried initializing the registers in different order, and as early as possible in main.c yet no luck.
What am I doing wrong that is causing the chip to drive uninitialized pins?
