Skip to main content
MLa.3
Associate
Jan 16, 2022 2:47 PM UTC
Solved

GPIO Pull-Up/-Down Mode for STM32F412 Discovery Joystick

Hi,

I am looking for the correct pullup/pulldown mode for the joystick on the STM32F412G discovery board.

My instinct would say that with the attached board schematic the mode should be "pulldown".

But the default project in STM32CubeIDE configures it as "No pullup no pulldown".

Which one is correct?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Jan 16, 2022 3:20 PM UTC

With the attached board schematic, pulldown.

> But the default project in STM32CubeIDE configures it as "No pullup no pulldown".

That may be an error. Have a look at the existing projects.

https://github.com/STMicroelectronics/STM32CubeF4/blob/4aba24d78fef03d797a82b258f37dbc84728bbb5/Drivers/BSP/STM32412G-Discovery/stm32412g_discovery.c#L390

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
Jan 16, 2022 3:20 PM UTC

With the attached board schematic, pulldown.

> But the default project in STM32CubeIDE configures it as "No pullup no pulldown".

That may be an error. Have a look at the existing projects.

https://github.com/STMicroelectronics/STM32CubeF4/blob/4aba24d78fef03d797a82b258f37dbc84728bbb5/Drivers/BSP/STM32412G-Discovery/stm32412g_discovery.c#L390

JW