Lost SPIFFS data #10893
galzoltan42
started this conversation in
General
Lost SPIFFS data
#10893
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everyone! My problem is that the ESP32 Wroom 32 does not retain the data stored in SPIFFS. I simply upload spiffs.bin via OTA (AsyncElegantOTA), which contains a total of 48KB of data, (12 .png images) and display this on a TFT display. There is no other data in SPIFFS. Everything works fine, but e.g. after a power failure, the data stored in SPIFFS disappears. Images are not displayed on the TFT display. In such cases, I always upload the spiffs.bin file via OTA, then it works. (spiffs.bin: 128kb)
Board setting: Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), Erase all flash before sketch upload : Disabled
Setup:
if(!SPIFFS.begin(true)){ return; }
loop:
.... setPngPosition(117, 0); load_file(SPIFFS, "/Borult_030.png");
What could be the problem?
`Sketch uses 964061 bytes (49%) of program storage space. Maximum is 1966080 bytes.
Global variables use 46664 bytes (14%) of dynamic memory, leaving 281016 bytes for local variables. Maximum is 327680 bytes.
.
[SPIFFS] start : 3997696
[SPIFFS] size : 128
[SPIFFS] page : 256
[SPIFFS] block : 4096
/Borult_030.png
/Derult_010.png
.....
[SPIFFS] address: 3997696
[SPIFFS] port : COM6
[SPIFFS] speed : 921600
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
`
Beta Was this translation helpful? Give feedback.
All reactions