Task watchdog got triggered issue after upgrading to 1.1.0. Works fine in 1.0.2
See original GitHub issueI have a code that looks like below,
void setup_wifi();
void WiFiEvent(WiFiEvent_t event)
{
switch (event)
{
case SYSTEM_EVENT_AP_START:
//can set ap hostname here
WiFi.softAPsetHostname(_node_name.c_str());
//enable ap ipv6 here
WiFi.softAPenableIpV6();
break;
case SYSTEM_EVENT_STA_START:
//set sta hostname here
WiFi.setHostname(_node_name.c_str());
break;
case SYSTEM_EVENT_STA_CONNECTED:
//enable sta ipv6 here
WiFi.enableIpV6();
break;
case SYSTEM_EVENT_AP_STA_GOT_IP6:
//both interfaces get the same event
Serial.print("STA IPv6: ");
Serial.println(WiFi.localIPv6());
Serial.print("AP IPv6: ");
Serial.println(WiFi.softAPIPv6());
break;
case SYSTEM_EVENT_STA_GOT_IP:
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
node_ip = WiFi.localIP().toString();
wifi_connected = true;
break;
case SYSTEM_EVENT_STA_DISCONNECTED:
wifi_connected = false;
Serial.println("WiFi Disconnected");
setup_wifi();
break;
}
}
void setup_wifi()
{
if (!wifi_reconnect_in_progress)
{
int local_count = 0;
wifi_reconnect_in_progress = true;
WiFi.onEvent(WiFiEvent);
const char *ssid = _ssid.c_str();
const char *password = _password.c_str();
Serial.print("Connecting to WiFi SSID: ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
if (++local_count == 20)
{
ESP.restart();
}
Serial.print(".");
delay(500);
}
wifi_reconnect_in_progress = false;
}
}
void setup() {
setup_wifi();
}
void loop() {
ble_scan_for_devices();
}
This code was working perfectly fine in espressif32@1.0.2
, but after upgrading to espressif32@1.1.0
it started throwing the below error message after executing the loop few times( the number of execution is not consistent).
Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0)
Tasks currently running:
CPU 0: wifi
CPU 1: IDLE
It appears that the core that handles wifi goes Idle or something and doesn’t send a reset to watchdog. But I’m failing to understand what has changed in 1.1.0 and where should I send the reset message from.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
"Task watchdog got triggered" issue - ESP32 Forum
The code seems to work, i.e. does not abort as before when using ESP_LOGI() inside the timer callback. However, the monitor log contains ......
Read more >BIG-IP 15.1.5.1 Fixes and Known Issues - AskF5
894133-1, 2-Critical, BT894133, After ISO upgrade the SSL Orchestrator guided configuration user interface is not available.☆, 15.1.5.1.
Read more >HAProxy Enterprise Documentation version 2.0r1 - Changelog
BUILD: cfgparse: Fix GCC warning about a variable used after realloc - BUILD: ... for global options - BUG/MEDIUM: wdt: don't trigger the...
Read more >Package List — Spack 0.20.0.dev0 documentation
It is automatically generated based on the packages in this Spack version. ... Versions: 1.2.0, 1.1.0, 1.0.5, 1.0.4, 1.0.3, 1.0.2; Build Dependencies: ...
Read more >Bug listing with status CONFIRMED as at 2022/12/20 18:46:38
ept-get-1.5 (New package)" status:CONFIRMED resolution: severity:enhancement ... problem when both --with-dependencies and a specific jar is given" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the great project. Much appreciated. We wanted to build something similar when we were initially using Arduino IDE. After we discovered PlatformIO, the development just got easier 😃 Thanks
Thanks! Happy coding with PlatformIO!