• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LittleFS.h

Q&A Forum › LittleFS.h
0 Vote Up Vote Down
gaeta.michel asked 4 years ago
15 Answers
0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Hi every body 
I am having troouble to run even simple example using LittleFS.h , loading index.html from a data folder 
I am using NodeMcu. 
I have done many think but without result 
Did some on face same problem? 
Thank you for your help 
Michel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Michel.
Can you better describe your issue? What exactly happens?
What is the project that you are trying to follow?
Are you using Arduino IDE or VS Code with PlatformIO?
Regards,
Sara

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Hi Sara 
I am using arduino ide. 
I have try several example project. always the same behavior 
I can compile and load code, load the index.html & al . 
No problem reported. 
the device connects to the network and “LittleFS mounted successfully ”
but nothing is displayed at the given IP address. 
here I am 🙂

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi again.
Is there any error message displayed in the web browser?
Were you able to build other web server projects with the ESP8266 before (that don’t require LittleFS)?
Regards,
Sara

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Hi Sara 
yes I am able to run project without IittleFS and even a project with SPIFFS. 
this is why I dont know what to do
regards 
Michel
PS i am using latest arduino and libraries version. 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Michel.
That’s very weird and I don’t know how to solve that issue.
Are you sure the data folder is in the right location and contains the needed files?
Are you sure you are referencing the file properly in the Arduino sketch?
Are you able to use SPIFFS with the ESP8266?
Regards,
Sara

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Hi Sara
I will say yes to all 🙁
I have tryed different examples. 
May be I have not well understood the “proper referencing of the file in the Arduino sketch”
I have done exactely the same action of SPIFFS project (and it works) than the LittleFS one. 
I will try changing IDE … 
Regards 
Michel 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
That’s very weird, especially if it works with SPIFFS and not with LittleFS.
Can you show me the files of a project you are trying to upload? To see if there is something wrong with the files.
To share your files, you can use a link to google drive, dropbox, or other…
Regards,
Sara
 

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Hi Sara 
Here is the link to the 4_1_Input_Fields_ESP8266 example file
https://www.dropbox.com/s/1x5iv9do9tnsfy7/4_1_Input_Fields_ESP8266.zip?dl=0
 

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

I am posting the  loading code 
Form my understanding it is normal….
Executable segment sizes:
IROM : 306564 – code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27180 / 32768 – code in IRAM (ICACHE_RAM_ATTR, ISRs…)
DATA : 1288 ) – initialized variables (global, static) in RAM/HEAP
RODATA : 3656 ) / 81920 – constants (global, static) in RAM/HEAP
BSS : 25352 ) – zeroed variables (global, static) in RAM/HEAP
Le croquis utilise 338688 octets (32%) de l’espace de stockage de programmes. Le maximum est de 1044464 octets.
Les variables globales utilisent 30296 octets (36%) de mémoire dynamique, ce qui laisse 51624 octets pour les variables locales. Le maximum est de 81920 octets.
esptool.py v2.8
Serial port COM4
Connecting….
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:10:32:f7
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 342848 bytes to 248484…
Wrote 342848 bytes (248484 compressed) at 0x00000000 in 23.1 seconds (effective 118.5 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
[SPIFFS] data : C:\Users\gaeta\Dropbox\LUOM\Commercial\dalle&co\conception\Arduino\esp8266\Formation ebook\build-web-servers-dl-main\4_1_Input_Fields_ESP8266\4_1_Input_Fields_ESP8266\data
[SPIFFS] size : 2024
[SPIFFS] page : 256
[SPIFFS] block : 8192
/favicon.png
/index.html
/script.js
/style.css
[SPIFFS] upload : C:\Users\gaeta\AppData\Local\Temp\arduino_build_671797/4_1_Input_Fields_ESP8266.spiffs.bin
[SPIFFS] address : 0x200000
[SPIFFS] reset : –before default_reset –after hard_reset
[SPIFFS] port : COM4
[SPIFFS] speed : 115200
[SPIFFS] python : C:\Users\gaeta\AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1\python3.exe
[SPIFFS] uploader : C:\Users\gaeta\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\tools\upload.py
esptool.py v2.8
Serial port COM4
Connecting….
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:10:32:f7
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 2072576 bytes to 5745…
Wrote 2072576 bytes (5745 compressed) at 0x00200000 in 0.6 seconds (effective 28685.1 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I think you are uploading files to SPIFFS and reading files from LittleFS.
Do you have the LittleFS filesystem uploader plugin installed in your Arduino IDE? See page 59.
Do you have a menu called ESP8266 LittleFS Data Upload?
Regards,
Sara
 

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

has loading tools I am using esp8266 skretch data upload
 

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

as plug in  i have esp8266fs.jar 
I think you are right 
I am looking for a new plugin 
If you have a reference please let me know 🙂
Thank you for your help Sara

0 Vote Up Vote Down
gaeta.michel answered 4 years ago

Sara 
I have find the rigth file , it is running now 
Thank you for your help 
Regards 
Michel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.