LittleFS.format(): task_wdt: delete_entry(233): task not found
yoursunny opened this issue · comments
Board
ESP-C3-32S-Kit
Device Description
Datasheet: https://docs.ai-thinker.com/_media/esp32/docs/esp-c3-32s-kit-v1.0_specification.pdf
In Arduino IDE, I have selected "LOLIN C3 Pico" with "USB CDC On Boot: Disabled".
This board works correctly in other examples under these settings.
Hardware Configuration
plain module on breadboard, nothing attached
Version
latest master (checkout manually)
revision 0ef2986
IDE Name
Arduino IDE 2.3.2
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
When LittleFS.format()
is invoked, the console logs the following error:
E (618) task_wdt: delete_entry(233): task not found
[ 404][E][esp32-hal-misc.c:159] disableCore0WDT(): Failed to remove Core 0 IDLE task from WDT
Several seconds later, the board resets due to task watchdog.
Sketch
#include <LittleFS.h>
void setup() {
Serial.begin(115200);
Serial.printf("init\n");
bool ok = LittleFS.begin();
Serial.printf("begin %d\n", static_cast<int>(ok));
ok = LittleFS.format();
Serial.printf("format %d\n", static_cast<int>(ok));
LittleFS.end();
Serial.printf("end\n");
}
void loop() {
}
Debug Message
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x458
load:0x403cc710,len:0x814
load:0x403ce710,len:0x2880
entry 0x403cc710
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
Model : ESP32-C3
Package : 0
Revision : 3
Cores : 1
CPU Frequency : 160 MHz
XTAL Frequency : 40 MHz
Embedded Flash : No
Embedded PSRAM : No
2.4GHz WiFi : Yes
Classic BT : No
BT Low Energy : Yes
IEEE 802.15.4 : No
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
Total Size : 339576 B ( 331.6 KB)
Free Bytes : 310628 B ( 303.3 KB)
Allocated Bytes : 25220 B ( 24.6 KB)
Minimum Free Bytes: 310628 B ( 303.3 KB)
Largest Free Block: 172020 B ( 168.0 KB)
------------------------------------------
Flash Info:
------------------------------------------
Chip Size : 4194304 B (4 MB)
Block Size : 65536 B ( 64.0 KB)
Sector Size : 4096 B ( 4.0 KB)
Page Size : 256 B ( 0.2 KB)
Bus Speed : 80 MHz
Bus Mode : QIO
------------------------------------------
Partitions Info:
------------------------------------------
nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
app0 : addr: 0x00010000, size: 1280.0 KB, type: APP, subtype: OTA_0
app1 : addr: 0x00150000, size: 1280.0 KB, type: APP, subtype: OTA_1
spiffs : addr: 0x00290000, size: 1408.0 KB, type: DATA, subtype: SPIFFS
coredump : addr: 0x003F0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
Compile Date/Time : Jun 20 2024 18:56:28
Compile Host OS : windows
ESP-IDF Version : v5.1.4-348-gc00dad83c1-dirty
Arduino Version : 3.0.2
------------------------------------------
Board Info:
------------------------------------------
Arduino Board : LOLIN_C3_PICO
Arduino Variant : lolin_c3_pico
Arduino FQBN : espressif:esp32:lolin_c3_pico:UploadSpeed=921600,CDCOnBoot=dis_cdc,CPUFreq=160,FlashFreq=80,PartitionScheme=default,DebugLevel=debug,EraseFlash=none
============ Before Setup End ============
init
begin 1
E (618) task_wdt: delete_entry(233): task not found
[ 404][E][esp32-hal-misc.c:159] disableCore0WDT(): Failed to remove Core 0 IDLE task from WDT
format 1
end
=========== After Setup Start ============
INTERNAL Memory Info:
------------------------------------------
Total Size : 339576 B ( 331.6 KB)
Free Bytes : 313292 B ( 305.9 KB)
Allocated Bytes : 22220 B ( 21.7 KB)
Minimum Free Bytes: 310088 B ( 302.8 KB)
Largest Free Block: 172020 B ( 168.0 KB)
------------------------------------------
GPIO Info:
------------------------------------------
GPIO : BUS_TYPE[bus/unit][chan]
--------------------------------------
20 : UART_RX[0]
21 : UART_TX[0]
============ After Setup End =============
E (5696) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (5696) task_wdt: - IDLE (CPU 0)
E (5696) task_wdt: Tasks currently running:
E (5696) task_wdt: CPU 0: loopTask
E (5696) task_wdt: Aborting.
Core 0 register dump:
MEPC : 0x40053b20 RA : 0x42002c12 SP : 0x3fc94a40 GP : 0x3fc8bc00
TP : 0x3fc85da8 T0 : 0x00000000 T1 : 0x68000000 T2 : 0x00000000
S0/FP : 0x42001d6a S1 : 0x3fc8e000 A0 : 0x0000fa00 A1 : 0x000014ea
A2 : 0x000003e8 A3 : 0x000014ea A4 : 0x000014ea A5 : 0x00000000
A6 : 0xfa000000 A7 : 0x00000003 S2 : 0x00000000 S3 : 0x00000000
S4 : 0x00000000 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x00000007 T4 : 0x00000000 T5 : 0x00000000 T6 : 0x00000000
MSTATUS : 0x00000007 MTVEC : 0x3fc8e000 MCAUSE : 0x42001d6a MTVAL : 0x420046f2
MHARTID : 0x00000000
Stack memory:
3fc94a40: 0x00000007 0x3fc8e000 0x42001d6a 0x420046f2 0x00000000 0x3fc8e000 0x42001d6a 0x42004768
3fc94a60: 0x00000000 0x00000000 0x00000000 0x40386e82 0x00000000 0x00000000 0x00000000 0x00000000
3fc94a80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc94aa0: 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x00000160 0xabba1234 0x00000154 0x3fc949c0 0x00000f4b
3fc94ac0: 0x3fc8cc54 0x3fc8cc54 0x3fc94ab8 0x3fc8cc4c 0x00000018 0x24df1617 0xf2ada5ed 0x3fc94ab8
3fc94ae0: 0x00000000 0x00000001 0x3fc92aa8 0x706f6f6c 0x6b736154 0xab5d2d00 0x005a9fac 0x00000000
3fc94b00: 0x3fc94aa0 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x3fc8e8f0 0x3fc8e958
3fc94b20: 0x3fc8e9c0 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x3fc94c1c 0x4202449e
3fc94b40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94b60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94b80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94ba0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94bc0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94be0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94c00: 0x00000000 0x00000000 0xc4000000 0xbaad5678 0x0000001c 0xabba1234 0x00000010 0x3fc94cfc
3fc94c20: 0x00000000 0x00000000 0x3fc94c3c 0xbaad5678 0x00000090 0xabba1234 0x00000084 0x00000000
3fc94c40: 0x3fc94cd0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94c60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94c80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94ca0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc94cc0: 0xbaad5678 0x00000028 0xabba1234 0x0000001c 0x3fc94d24 0x00000001 0x00000002 0x00000000
3fc94ce0: 0x00000001 0x0000a7fd 0x00000000 0xbaad5678 0x00000024 0xabba1234 0x00000018 0x30383631
3fc94d00: 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0xbaad5678 0x00000028 0xabba1234
3fc94d20: 0x0000001c 0x3fc94d50 0x00000001 0x00000002 0x00000000 0x00000001 0x08000000 0x00000000
3fc94d40: 0xbaad5678 0x00000028 0xabba1234 0x0000001c 0x00000000 0x00000001 0x00000002 0x00000000
3fc94d60: 0x00000001 0x04000000 0x00000000 0xbaad5678 0x0002b289 0x3fc8e1c4 0x3fc8e1c4 0x72412020
3fc94d80: 0x6e697564 0x5146206f 0x20204e42 0x20202020 0x7365203a 0x73657270 0x3a666973 0x33707365
3fc94da0: 0x6f6c3a32 0x5f6e696c 0x705f3363 0x3a6f6369 0x6f6c7055 0x70536461 0x3d646565 0x36313239
3fc94dc0: 0x432c3030 0x6e4f4344 0x746f6f42 0x7369643d 0x6364635f 0x5550432c 0x71657246 0x3036313d
3fc94de0: 0x616c462c 0x72466873 0x383d7165 0x61502c30 0x74697472 0x536e6f69 0x6d656863 0x65643d65
3fc94e00: 0x6c756166 0x65442c74 0x4c677562 0x6c657665 0x6265643d 0x452c6775 0x65736172 0x73616c46
3fc94e20: 0x6f6e3d68 0x000a656e 0x3fc94d6c 0x0002b1cf 0x3fc8e1c4 0x3fc8e1c4 0xb64a44e9 0x501b58cf
ELF file SHA256: 53ff50b49e84e8c2
Rebooting...
Other Steps to Reproduce
I also tried on an ESP32 chip (FQBN espressif:esp32:heltec_wifi_kit_32:UploadSpeed=921600,CPUFreq=240,PartitionScheme=default,DebugLevel=debug,EraseFlash=none
).
It also emits a similar error (many times), but does not cause watchdog reset later:
init
begin 1
E (1117) task_wdt: esp_task_wdt_reset(763): task not found
E (1118) task_wdt: esp_task_wdt_reset(763): task not found
E (1119) task_wdt: esp_task_wdt_reset(763): task not found
E (1214) task_wdt: esp_task_wdt_reset(763): task not found
E (1214) task_wdt: esp_task_wdt_reset(763): task not found
E (1215) task_wdt: esp_task_wdt_reset(763): task not found
E (1219) task_wdt: esp_task_wdt_reset(763): task not found
E (1224) task_wdt: esp_task_wdt_reset(763): task not found
E (1323) task_wdt: esp_task_wdt_reset(763): task not found
E (1324) task_wdt: esp_task_wdt_reset(763): task not found
E (1325) task_wdt: esp_task_wdt_reset(763): task not found
E (1328) task_wdt: esp_task_wdt_reset(763): task not found
E (1333) task_wdt: esp_task_wdt_reset(763): task not found
E (1338) task_wdt: esp_task_wdt_reset(763): task not found
E (1343) task_wdt: esp_task_wdt_reset(763): task not found
format 1
end
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
You probably need to put a delay in loop() or else delete it withvTaskDelete(NULL);
.