Skip to main content
idrissmc
Associate III
Question

hal_delay causes a hard fault

hello,

i'm debugging this code suddenly i got a hard fault as shown in the figure:

0693W000002lZSCQA2.png

how can I solve this

This topic has been closed for replies.

11 replies

TDK

Looks like it’s in the watchdog IRQ handler. Unlikely that HAL_Delay caused the issue.

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

The watchdog raises the hard fault because it catched an infinite loop in the HAL_Delay my friend, so the HAL_delay causes the hard fault

Tesla DeLorean
Guru

Is HAL Tick advancing? Or the delay you're attempting spaning the watchdog?

Bringing up the camera before the SysTick/TIM driving the tick has been initialized?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..