Skip to main content
idrissmc
Associate III
August 27, 2020
Question

hal_delay causes a hard fault

  • August 27, 2020
  • 11 replies
  • 5738 views

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
August 27, 2020

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
August 27, 2020

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
August 27, 2020

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..