Skip to main content
AJaro.2
Associate II
July 28, 2019
Question

Can't blink LED with HAL

  • July 28, 2019
  • 2 replies
  • 876 views

Hey all,

I have a 32F469IDISCOVERY BOARD that I'm trying to use with CubeIDE, and all I'm trying to do right now is blink an LED with the HAL.

Starting from a new project, all periherals are initialized with their default settings.

In the User Code 3 loop, all I'm going is adding this code:

HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_4);
HAL_Delay(1000);

Which should, apparently, blink an LED. Unfortunately, nothing is happening. If I set the default mode to High or Low in the Cube configuration, I can get it to stay on or stay off--but can't manipluate it all all with code.

Again, this is with a 100% fresh project and all the manufacture peripheral settings.

Any help is appreciated. I must be missing something simple. Thanks!

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
July 28, 2019

Use the debugger, figure out if it is stuck, determine what is happening.

Make sure the SysTick is firing if that's what advances the HAL_Tick

Not really a fan of CubeMX or CubeIDE, so can't provide much direction there.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
AJaro.2
AJaro.2Author
Associate II
July 28, 2019

Thanks. How can I check if Systick is firing?

What is your recommended toolchain alternative to CubeIDE?