2020-04-28 04:09 PM
This question may applied to the whole STM family and maybe pure hardware related, but I expect someone can give some clues.
Thanks.
Solved! Go to Solution.
2020-04-28 05:33 PM
> May I safely assume the gpio pins are high impedance when powering on?
Most pins are in input mode, which is floating. Some pins associated with JTAG/SWD are not floating.
> If I set pin to output, and output a high. Then, the power supply goes down. I expect the output will track the power supply till some point, that the pin can't retain output state anymore. Am I right? If so, when the point will occur, what's the supply voltage then?
Yep. The brown-out reset (BOR) is configurable and kicks in at various states, but generally around 1.8V. Once in reset, pins are in their reset state.
> Similar to above, but this time set the pin low. What's the point I can't safely assume the pin is low?
Same as above.
2020-04-28 05:33 PM
> May I safely assume the gpio pins are high impedance when powering on?
Most pins are in input mode, which is floating. Some pins associated with JTAG/SWD are not floating.
> If I set pin to output, and output a high. Then, the power supply goes down. I expect the output will track the power supply till some point, that the pin can't retain output state anymore. Am I right? If so, when the point will occur, what's the supply voltage then?
Yep. The brown-out reset (BOR) is configurable and kicks in at various states, but generally around 1.8V. Once in reset, pins are in their reset state.
> Similar to above, but this time set the pin low. What's the point I can't safely assume the pin is low?
Same as above.
2020-04-28 11:22 PM
Check the reset values of the GPIO registers in the reference manual to see which pins have pullup or pulldown enabled.