Skip to content

LittleFS.format(): task_wdt: delete_entry(233): task not found #9912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
yoursunny opened this issue Jun 20, 2024 · 17 comments · Fixed by #10896
Closed
1 task done

LittleFS.format(): task_wdt: delete_entry(233): task not found #9912

yoursunny opened this issue Jun 20, 2024 · 17 comments · Fixed by #10896

Comments

@yoursunny
Copy link
Contributor

yoursunny commented Jun 20, 2024

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.
@yoursunny yoursunny added the Status: Awaiting triage Issue is waiting for triage label Jun 20, 2024
@lbernstone
Copy link
Contributor

You probably need to put a delay in loop() or else delete it withvTaskDelete(NULL);.

@yoursunny
Copy link
Contributor Author

Adding void loop() { delay(1); } does not change a thing.
The warning on ESP32-C3 comes from disableCore0WDT called by LittleFS.format() function:

bool LittleFSFS::format() {
disableCore0WDT();
esp_err_t err = esp_littlefs_format(partitionLabel_);
enableCore0WDT();

@Jason2866
Copy link
Collaborator

Beside the fact the function call format should do the job, format is not needed when using LittleFS. It should be possible to use the FS with

#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));

  LittleFS.end();
  Serial.printf("end\n");
}

void loop() {
}

@yoursunny
Copy link
Contributor Author

yoursunny commented Jun 21, 2024

I'm aware of LittleFS.begin(true).
My actual program is a unit test suite of my own library.
At the start of the scenario, I need to have a blank filesystem.
Hence, I want to invoke format() to ensure there's no file stored.

This was working fine with FFat but I'm trying to move to LittleFS.
https://github.com/yoursunny/esp8266ndn/blob/da3e7dc48c6b3276055156c9719e7f0b9cf3afc7/examples/unittest/unittest.ino#L134-L143

@Jason2866
Copy link
Collaborator

@yoursunny LittleFS is the smallest of your migration challenges. NimBLE Arduino will not work for the new MCUs (C6 H2). See #9836

@yoursunny
Copy link
Contributor Author

NimBLE is unrelated to this.
I can use both NimBLE and Bluedroid.

@dirkvranckaert
Copy link

Any update on this? Running into the exact same issue. I want to be able to remove all local stored files for a factory reset, though failing on ESP32 now...

@Parsaabasi Parsaabasi removed the Status: Awaiting triage Issue is waiting for triage label Jan 15, 2025
@Parsaabasi
Copy link

Hello,

Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket.

Thanks.

@dirkvranckaert
Copy link

@Parsaabasi The issue is still persistent for me, I'm on latest 3.1.1 ESP32 Board version on an ESP32-C6.

Whenever I do a format LittleFS.format(); or the first time deploying to a board and executing LittleFS.begin(true) (which internally if I understood correctly) is also doing a format if needed, and because it's my first deploy after getting the board out of the box (or after I deployed to it with erase flash) it's probably needed...

But what happens is that the format (or begin) seem to have worked, although couple of seconds later I run into the below exception.

I've created a simple test sketch to reproduce it:

#include <LittleFS.h>

void setup() {
  Serial.begin(115200);
  delay(5000);


  if (!LittleFS.begin(true)) {
    Serial.println("LittleFS Mount Failed");
  } else {
    Serial.println("LittleFS initiated");
  }

  LittleFS.format();

  Serial.println("Storage prepping done");

}

void loop() {
  Serial.print("Working...");
  delay(2000);
}

And the output from that test (incl. crash):

07:10:07.975 -> ESP-ROM:esp32c6-20220919
07:10:07.975 -> Build:Sep 19 2022
07:10:07.975 -> rst:0x1 (POWERON),boot:0x3c (SPI_FAST_FLASH_BOOT)
07:10:07.975 -> SPIWP:0xee
07:10:07.975 -> mode:DIO, clock div:2
07:10:07.975 -> load:0x40875720,len:0x1228
07:10:07.975 -> load:0x4086c110,len:0xd38
07:10:07.975 -> load:0x4086e610,len:0x2f74
07:10:07.975 -> entry 0x4086c110
07:10:13.086 -> LittleFS initiated
07:10:13.086 -> E (5167) task_wdt: delete_entry(236): task not found
07:10:13.217 -> Storage prepping done
07:10:13.217 -> Working...Working...Working...E (10295) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
07:10:18.230 -> E (10295) task_wdt:  - IDLE (CPU 0)
07:10:18.230 -> E (10295) task_wdt: Tasks currently running:
07:10:18.230 -> E (10295) task_wdt: CPU 0: IDLE
07:10:18.230 -> E (10295) task_wdt: Aborting.
07:10:18.230 -> 
07:10:18.262 -> 
07:10:18.262 -> Core  0 register dump:
07:10:18.262 -> MEPC    : 0x40803830  RA      : 0x4080790e  SP      : 0x40813fd0  GP      : 0x4080c0b4  
07:10:18.296 -> TP      : 0x40814020  T0      : 0x40022494  T1      : 0x4080395a  T2      : 0x00000000  
07:10:18.296 -> S0/FP   : 0x4080f000  S1      : 0x4080d78c  A0      : 0x00000001  A1      : 0xfefefefe  
07:10:18.296 -> A2      : 0x00000000  A3      : 0x00000040  A4      : 0x00000000  A5      : 0x00000000  
07:10:18.296 -> A6      : 0x00000000  A7      : 0x00000000  S2      : 0x4080f000  S3      : 0x408135c0  
07:10:18.296 -> S4      : 0x00000000  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
07:10:18.325 -> S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
07:10:18.326 -> T3      : 0x00000000  T4      : 0x00000000  T5      : 0x00000000  T6      : 0x00000000  
07:10:18.326 -> MSTATUS : 0x00000000  MTVEC   : 0x00000000  MCAUSE  : 0x00000000  MTVAL   : 0x00000000  
07:10:18.362 -> MHARTID : 0x00000000  
07:10:18.362 -> 
07:10:18.362 -> Stack memory:
07:10:18.362 -> 40813fd0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x40806aca
07:10:18.362 -> 40813ff0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.362 -> 40814010: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678
07:10:18.362 -> 40814030: 0x00000168 0xabba1234 0x0000015c 0x40813f50 0x00000000 0x4080d7e4 0x4080d7e4 0x4081403c
07:10:18.390 -> 40814050: 0x4080d7dc 0x00000019 0x00000000 0x00000000 0x4081403c 0x00000000 0x00000000 0x4081372c
07:10:18.390 -> 40814070: 0x454c4449 0x00000000 0x00000000 0x00000000 0x40814020 0x00000003 0x00000000 0x00000000
07:10:18.390 -> 40814090: 0x00000000 0x00000000 0x00000000 0x00899d07 0x00000000 0x4080f5c4 0x4080f62c 0x4080f694
07:10:18.421 -> 408140b0: 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x4200cdb6 0x00000000
07:10:18.421 -> 408140d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.421 -> 408140f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.421 -> 40814110: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.454 -> 40814130: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.454 -> 40814150: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.454 -> 40814170: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
07:10:18.454 -> 40814190: 0x00000000 0x00000200 0xbaad5678 0x0000080c 0xabba1234 0x00000800 0xa5a5a5a5 0xa5a5a5a5
07:10:18.485 -> 408141b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.485 -> 408141d0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.485 -> 408141f0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.485 -> 40814210: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.518 -> 40814230: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.518 -> 40814250: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.518 -> 40814270: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.551 -> 40814290: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.551 -> 408142b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.551 -> 408142d0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.551 -> 408142f0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.583 -> 40814310: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.583 -> 40814330: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.583 -> 40814350: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.583 -> 40814370: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.615 -> 40814390: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.615 -> 408143b0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
07:10:18.615 -> 
07:10:18.615 -> 
07:10:18.615 -> 
07:10:18.615 -> ELF file SHA256: bc5b4ec4c
07:10:18.615 -> 
07:10:18.712 -> Rebooting...
07:10:18.712 -> ESP-ROM:esp32c6-20220919
07:10:18.712 -> Build:Sep 19 2022
07:10:18.712 -> rst:0xc (SW_CPU),boot:0x3c (SPI_FAST_FLASH_BOOT)
07:10:18.712 -> Saved PC:0x4001975a
07:10:18.712 -> SPIWP:0xee
07:10:18.712 -> mode:DIO, clock div:2
07:10:18.712 -> load:0x40875720,len:0x1228
07:10:18.712 -> load:0x4086c110,len:0xd38
07:10:18.712 -> load:0x4086e610,len:0x2f74
07:10:18.712 -> entry 0x4086c110

@me-no-dev me-no-dev reopened this Jan 16, 2025
@dirkvranckaert
Copy link

Any idea when this can be looked into? Pretty crucial failure in there for a long time...

@enotanet
Copy link

It seems dead library. To respond for a year...

@klew
Copy link

klew commented Jan 23, 2025

I have the same issue on ESP32-C6 on boards 3.1.1.

Current implementation of format() is following:

bool LittleFSFS::format() {
  disableCore0WDT();
  esp_err_t err = esp_littlefs_format(partitionLabel_);
  enableCore0WDT();
  if (err) {
    log_e("Formatting LittleFS failed! Error: %d", err);
    return false;
  }
  return true;
}

(https://github.com/espressif/arduino-esp32/blob/496b8411773243e1ad88a68652d6982ba2366d6b/libraries/LittleFS/src/LittleFS.cpp#L97C1-L106C2)

Calling disableCore0WDT() is generating this error log:

E (358) task_wdt: delete_entry(236): task not found

Then enableCore0WDT() is called in format().
After 5 s there is WDT reset.

I guess that this WDT is not enabled/used on C6 board at all and enabling it is causing unexpected behavior which ends up in reset.

Simple commenting out those two lines solves the issue on C6. However I guess they were add for a reason and some condition or board specific implementation should be added.

@przemyslawzygmunt
Copy link

I have the same issue on ESP32-C6 on boards 3.1.1.

@fracz
Copy link

fracz commented Jan 23, 2025

I am experiencing the same issue described here.

@dirkvranckaert
Copy link

Great, I see there is progress in fixing this... @lbernstone @me-no-dev by when can we expect this to be merged and have an update available?

@lbernstone
Copy link
Contributor

lbernstone commented Jan 23, 2025

Fixes get merged in the next release. The code is there if you need it now. Remarking out the enable in LittleFS.cpp is really all you need for a quick fix.

@dirkvranckaert
Copy link

Applied the change on my local copy and it seems to do the job perfectly! Any idea when a next version will be released / shipped?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants