2024-07-20 12:54 PM
Hello everyone. I have a big problem with my custom STM32H7 board, in particular with HAL_Delay.
When I add a line on my main.c file to simply print on SWV, the first time seems to work, but after it does not work anymore. It prints the first time, and after it seems stuck in HAL_Delay indefinitely.. Could someone help me debug this issue? I'll put the .ioc file below,
Thanks in advance.
2024-07-20 01:12 PM
Is SysTick or whatever you've selected as the timing source started? After HAL_Init()?
Look at which TIM or SysTick was started?
Check Handler enabled in NVIC
Check IRQHandler is used, and calling HAL_IncTick()
Use some basic diagnostic and inspection methods.
2024-07-20 01:20 PM
2024-07-20 01:20 PM
Hi,
so you do something wrong.
Maybe set priority of HAL to low. Lower than ...whatever you call.
Very simple error...
2024-07-20 01:22 PM
Thank you for replying!
Is this HAL priority changeable on the NVIC configuration?
2024-07-20 01:25 PM
Sure...
So set it to higher (closer to 0 ) prio...
2024-07-20 01:52 PM
If you see the screenshot that i sent, it is already set to 0..