cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_Delay blocks code

QuirinS
Associate III

Hello, I have a custom board wich is based on the evspin32g4-dual Board. I generated the code with motorcontrol work bench and could upload it with a j-link. I added an uart output in the startup and noticed that it kept printing it, so the board was constantly resetting. When I stepped through the code the problem was in HAL_Delay, as the HAL_GetTick() function always returned the same value, thus not leaving the function. Could there be an error with the external Crystal? I am using a ECS-240-8-37-CKM-TR with 8pF caps.

Screenshot 2025-06-19 130223.png

Thanks!

10 REPLIES 10
QuirinS
Associate III

The Buck converter was the problem, thus causing a brownout