Skip to main content
MLa.3
Associate
January 16, 2022
Solved

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

  • January 16, 2022
  • 1 reply
  • 1080 views

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.
Best answer by waclawek.jan

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
January 16, 2022

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