ESP32 watchdog timer triggers constantly
Posted: Tue Feb 15, 2022 5:42 pm
I've had this issue a few times already but always fixes it.
I'm playing with a simple FC project that first initialises a few components:
1- UART
2- WLAN-ESP
3- Network Comms
I've done this before. But this time I get the message via UART that the watchdog timer gets triggered.
The ESP keeps booting.
I have tried the code in this post: https://flowcode.co.uk/forums/viewtopic ... +esp#p4446
But this doesn't work.
If I add a delay of 1 second between every initialisation step (see above), the WDT isn't triggered.
Could it be that during initialisation the watchdog gets tired waiting and resets the lot?
Isn't there a way to add a challenge for the WDT during initialisation of these components so it doesn't get triggered?
Or disable the WDT during this macro call?
Or other ideas?
If I hadn't a UART reading I wouldn't know about this issue.
I'm playing with a simple FC project that first initialises a few components:
1- UART
2- WLAN-ESP
3- Network Comms
I've done this before. But this time I get the message via UART that the watchdog timer gets triggered.
The ESP keeps booting.
Code: Select all
[0;31mE (50576) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (50576) task_wdt: - IDLE0 (CPU 0)[0m
[0;31mE (50576) task_wdt: Tasks currently running:[0m
[0;31mE (50576) task_wdt: CPU 0: main[0m
[0;31mE (50576) task_wdt: CPU 1: IDLE1[0m
But this doesn't work.
If I add a delay of 1 second between every initialisation step (see above), the WDT isn't triggered.
Could it be that during initialisation the watchdog gets tired waiting and resets the lot?
Isn't there a way to add a challenge for the WDT during initialisation of these components so it doesn't get triggered?
Or disable the WDT during this macro call?
Or other ideas?
If I hadn't a UART reading I wouldn't know about this issue.
