Skip to main content
hjuns
Associate II
July 27, 2022
Question

State when no settings are made in GPIO pin

  • July 27, 2022
  • 2 replies
  • 1206 views

Hello,

For example, i do not set any settings in PE10 pin. (Reset state)

What state is PE10 pin?

Will the state of PE10 be floating or Pull down?

(I don't use pull down resistor.)

Best regards.

This topic has been closed for replies.

2 replies

Danish1
Lead III
July 27, 2022

This is documented in the Reference Manual for your stm32, in the section on GPIO; the final bit of that section where the registers are described.

Many will default to digital input without pull. So you might want to change that for floating pins. Giving a pull is fine, as is changing it to Analog.

S.Ma
Principal
July 27, 2022

I think in cubemx there is a check box option for unused gpio state. Just avoid floating digital input which are susceptible to toggle by crosstalk. Some pins like jtag ones have hardwired pull resistors.