Hello.
There was supposed to be a question in regard to a problem I encountered, but there will be a presentation of the problem and a ready solution. 😉
I am a user of the Debian testing distribution.
I am just beginning my adventure with the ESP family. So for this moment I am able to run the presented projects and gain basic knowledge and skills.
I was interested in the following project
It includes running the file system in the built-in FLASH memory.
Basically, I am using Arduino IDE v2.2.1, however, in order to run this project I had to install IDE v1.8.3 because it is necessary to use the “arduino-esp32fs-plugin” which does not work in the newer version of the IDE.
Following the guide I get an error:
Arduino: 1.8.19 (Linux), Board: “AI Thinker ESP32-CAM, 240MHz (WiFi/BT), QIO, Huge APP (3MB No OTA/1MB SPIFFS), 80MHz, None, Disabled”
[SPIFFS] data : /home/kaktus/Projekty/ESP/stareIDE/ESP32-CAM_sensor_charts/data
[SPIFFS] start : 3211264
[SPIFFS] size : 896
[SPIFFS] page : 256
[SPIFFS] block : 4096
/script.js
/style.css
/index.html
/favicon.png
[SPIFFS] upload : /tmp/arduino_build_681388/ESP32-CAM_sensor_charts.spiffs.bin
[SPIFFS] address: 3211264
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 460800
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
SPIFFS Upload failed!
it happens so fast …
- Solution one.
In the log window we get all the information necessary to load the firmware block. It is enough to upload the prepared compilation to the indicated memory address. - Solution two
I began to look for the source of the problem and by chance came across a plugin with the same functionality having greater capabilities. In addition, it works without a problem. https://github.com/lorol/arduino-esp32fs-plugin
I recommend to everyone, maybe you should also update the relevant project pages?
Chip : esp32
Using partition scheme from Arduino IDE.
Start: 0x310000
Size : 0xe0000
mkspiffs : /home/kaktus/.arduino15/packages/esp32/tools/mkspiffs/0.2.3/mkspiffs
esptool : /home/kaktus/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool.py
[SPIFFS] data : /home/kaktus/Projekty/ESP/stareIDE/ESP32-CAM_sensor_charts/data
[SPIFFS] offset : 0
[SPIFFS] start : 3211264
[SPIFFS] size : 896
[SPIFFS] page : 256
[SPIFFS] block : 4096
->/script.js
->/style.css
->/index.html
->/favicon.png
[SPIFFS] upload : /tmp/arduino_build_834522/ESP32-CAM_sensor_charts.spiffs.bin
[SPIFFS] address: 3211264
[SPIFFS] port : /dev/ttyUSB0
[SPIFFS] speed : 460800
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
->esptool.py v4.5.1
->Serial port /dev/ttyUSB0
->Connecting….
->Chip is ESP32-D0WDQ6 (revision v1.1)
->Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
->Crystal is 40MHz
->MAC: fc:b4:67:01:c2:00
->Uploading stub…
->Running stub…
->Stub running…
->Changing baud rate to 460800
->Changed.
->Configuring flash size…
->Auto-detected Flash size: 4MB
->Flash will be erased from 0x00310000 to 0x003effff…
->Compressed 917504 bytes to 4966…
->Writing at 0x00310000… (100 %)
->Wrote 917504 bytes (4966 compressed) at 0x00310000 in 3.2 seconds (effective 2278.3 kbit/s)…
->Hash of data verified.
->
->Leaving…
->Hard resetting via RTS pin…
I have prepared two GIF files to insert into this post but the forum script does not provide this option. A foreign host for the files is required.
Hi.
To share files, you need to upload them to google drive, for example and then share a link to those files.
Both plugins should work just fine. I tested both and they work well.
The advantage of the one you mentioned is that is supports LittleFS. We have a tutorial about it here: https://randomnerdtutorials.com/esp32-littlefs-arduino-ide/
Regards,
Sara