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
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
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 🙂
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
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.
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
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
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
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
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…
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
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
Sara
I have find the rigth file , it is running now
Thank you for your help
Regards
Michel