Questions tagged [littlefs]

7 questions
3
votes
0 answers

SPIFFS and LittleFS don't show all my files with readdir() and can't open() them

I created a simple sketch that just tries to list the files in SPIFFS. The SPIFFS filesystem was created with the version of mkspiffs that's part of the esp8266 package. The upload all seems to work, but it only lists the first file and not the…
2
votes
1 answer

Any way to use DMA to transfer data to SD Card in ESP8266

I'm using ESP8266 at speed of 160 MHz to record ADC results into SD card, I need to do this at rate of 8 KHz. Means that i should save it on the SD Card or i'll run out of memory before 4 Sec passes. I used timer1 to trigger sampling, but my problem…
A.R.S.D.
  • 41
  • 6
2
votes
2 answers

Where to store critical data in power outage situation on ESP8266

I want to store a counter that is always changing, but I want it to remain and be able to retrieve it on after a power loss. It's only one long number data, but as it is always changing, I don't know where to store it to not over wear the memory…
harold
  • 121
  • 1
0
votes
2 answers

ESP32 - error when using `LITTLEFS.h` after core updated to 2.0.4

After updating ESP32 to core version 2.0.4 (file in Arduino IDE preferences was replaced tohttps://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to upgrade), I get the following…
guyd
  • 898
  • 1
  • 13
  • 39
0
votes
1 answer

ESP32, ArduinoOTA.h LittleFS.h and data file upload OTA

I'm having a sketch, that works perfectly fine - connects to WiFi, uploading files using Esp32 LittleFS data Upload using Arduino IDE (when still connected to my PC), and sketch updates via OTA (using ArduinoOTA.h library). But when I try to Esp32…
guyd
  • 898
  • 1
  • 13
  • 39
0
votes
2 answers

How to store a struct in a file?

I'm trying to store (read&write( a struct using LittleFS on ESP8266. Appreciate assistance struct oper_string { bool state; /* On or Off */ uint8_t step; /* Step, in case of PWM */ uint8_t reason; /* What triggered the button */ time_t…
guyd
  • 898
  • 1
  • 13
  • 39
0
votes
0 answers

ESP8266 - Problem with LittleFS after reboot (solved in comments)

I'm trying to create an even log saved on flash. I try to make it a class, called flashLOG as shown. Code behaves as expceted, reads, writes and posts it size and entries. The problem is that after reboot - it seems that the file "disappears". Code…
guyd
  • 898
  • 1
  • 13
  • 39