Skip to main content
Freedom_Neo
Senior
February 4, 2022
Question

STM32H7 HAL_Delay(200); Problem

  • February 4, 2022
  • 6 replies
  • 3140 views

This is my first time working with STM32H7B3IIT6 MCU. I wanted to make a led blink application, but the program is HAL_Delay(); it goes into an infinite loop and doesn't exit.

0693W00000JOa2qQAD.png0693W00000JOa27QAD.png

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
February 4, 2022

Like you didn't start SysTick, or other interrupt source, or you're blocking in an interrupt or callback.

Check HAL_Init()​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Freedom_Neo
Senior
February 4, 2022

I did not set any other parameters. No interrupts or other code. The program hangs at the following place.

0693W00000JOaALQA1.png

TDK
February 4, 2022

There aren't any issues with the code you presented. Unlikely that the code you've linked is hanging. There is no complicated or blocking logic within there. My guess is you're stuck in an IRQ which prevents the main loop from making progress.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Freedom_Neo
Senior
February 4, 2022

I am not using any IRQ. I am using it with default settings. It works fine with STM32H7B3LIH6QU MCU.

PChia.2237
Senior
March 7, 2022

If you are using FreeRTOS HAL_Delay(); not works. Use osDelay(200) instead