2026-04-01 9:35 PM - last edited on 2026-04-02 3:29 AM by Andrew Neil
Hi,
I use cubemx to generate code for STM32CubeIDE, compile is OK, but the initial process run fail with HAL_Delay function, the HAL_GetTick() always return 0 so the program blocked here.
attached is my .ioc file, any anyone help for thie issue?
Solved! Go to Solution.
2026-04-08 7:37 AM
thanks for your reply, I add 2 seconds in the "max halt timeout" and the problem solved.
2026-04-02 10:27 PM
The issue is likely in how and where you're using HAL_Delay in your code. Ensure interrupts stay enabled and ensure the tick interrupt gets serviced.
The TIM6 priority is 0 in the IOC which is the highest. No issues there.
2026-04-08 7:37 AM
thanks for your reply, I add 2 seconds in the "max halt timeout" and the problem solved.