cancel
Showing results for 
Search instead for 
Did you mean: 

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

MLa.3
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

1 REPLY 1

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