cancel
Showing results for 
Search instead for 
Did you mean: 

hal_delay() not working

PPopo.1
Senior

So I've created a project and am trying to use the HAL_delay(10); but it gets stuck at this function when im trying to debug.

I have been changing the clock and enabling the TIM2 so I don't know if i've messed something up. Here are the settings that I have:


_legacyfs_online_stmicro_images_0693W00000biAmBQAU.png
_legacyfs_online_stmicro_images_0693W00000biAmGQAU.png
_legacyfs_online_stmicro_images_0693W00000biAmVQAU.png
_legacyfs_online_stmicro_images_0693W00000biAmaQAE.png
_legacyfs_online_stmicro_images_0693W00000biAmfQAE.png 

And that is about it

53 REPLIES 53

i was thinking, HAL_Delay() is working - just you cannot debug it...

so: because program is running (you said ) , test : with simmple LED toggle...is there delay or not ?

If you feel a post has answered your question, please click "Accept as Solution".

I thought I should be able to debug it eitherway. Will try with LED

Okay so I tried with the LED and found out that the program doesn't really run. Didn't even get to the first PIN_SET without debuging step by step

I am having the same problem and my HAL_Delay is not working either. I thought I would find the solution here. You didn't find it either.