Skip to content

Watchdog fail error #1703

Answered by ToveRumar
jmemon16 asked this question in Q&A
Dec 19, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @jmemon16!

The watchdog is being fed from the idle task and it has the lowest priority of all tasks. So if your main task is loading the CPU 100% the idle task will never be able to run and feed the watchdog.

I would in general not advice to load the CPU 100%, since this might cause unexpected behaviors, unless you are very knowledgeable on all the priorities of all running tasks.

You can feed the watchdog from your main task by calling watchdogReset().
See void vApplicationIdleHook( void ) in src/modules/system.c to see how it is done in the idle task.

I hope this answered your question!

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ToveRumar
Comment options

Answer selected by jmemon16
@jmemon16
Comment options

@ToveRumar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants