cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 HAL_Delay(200); Problem

Freedom_Neo
Senior

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

6 REPLIES 6

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
Up vote any posts that you find helpful, it shows what's working..

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

0693W00000JOaALQA1.png

I am uploading same code to STM32H7B3LIH6QU mcu. It's working. All settings are the same.

TDK
Guru

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".

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

PChia.2237
Senior

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