Skip to content

Disabling Core0WDT in SPIFFS.format() might be the wrong WDT #11033

Open
@Bascy

Description

@Bascy

Board

ESP32 Dev Module

Device Description

Propriety board, based on ESP32 chip

Hardware Configuration

not relevant

Version

latest master (checkout manually)

IDE Name

VSCode with PlatformIO and pioArduino platform

Operating System

Windows 11

Flash frequency

40 Mhz

PSRAM enabled

no

Upload speed

460800

Description

In our factory-firmware version of the firware we call SPIFFS.format() in a pretty early stage of the setup(). This causes a very large number of E (28769) task_wdt: esp_task_wdt_reset(705): task not found errors to occur, before the setup continues as normal.

This is caused by the disableCore0WDT() call in SPIFFS.format().

Question 1: Why is this error occuring?
Question 2: Why is it necessary to disable the watchdog of the other cores idle task, as setup() is always running on core1?
Question 3: What if I have a task running on Core 0 that calls SPIFFS.format(), shouldnt that task disable the core1 Idle watchdog then?

Sketch

void setup() {
  Serial.begin(576000);
  Serial.println("Starting...");
  SPIFFS.begin(true);

  #ifdef COMPILE_FACTORY_FIRMWARE
  SPIFFS.format();
  #endif
...

Debug Message

E (28766) task_wdt: esp_task_wdt_reset(705): task not found
E (28767) task_wdt: esp_task_wdt_reset(705): task not found
E (28768) task_wdt: esp_task_wdt_reset(705): task not found
E (28769) task_wdt: esp_task_wdt_reset(705): task not found
E (28770) task_wdt: esp_task_wdt_reset(705): task not found
E (28771) task_wdt: esp_task_wdt_reset(705): task not found
E (28772) task_wdt: esp_task_wdt_reset(705): task not found
E (28773) task_wdt: esp_task_wdt_reset(705): task not found
E (28774) task_wdt: esp_task_wdt_reset(705): task not found
E (28775) task_wdt: esp_task_wdt_reset(705): task not found

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs investigationWe need to do some research before taking next steps on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions