Code Monkey home page Code Monkey logo

Comments (6)

lbernstone avatar lbernstone commented on August 16, 2024

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

from arduino-esp32.

yoursunny avatar yoursunny commented on August 16, 2024

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

from arduino-esp32.

Jason2866 avatar Jason2866 commented on August 16, 2024

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() {
}

from arduino-esp32.

yoursunny avatar yoursunny commented on August 16, 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

from arduino-esp32.

Jason2866 avatar Jason2866 commented on August 16, 2024

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

from arduino-esp32.

yoursunny avatar yoursunny commented on August 16, 2024

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

from arduino-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.