Search found 2 matches

by zexanana
Thu Aug 16, 2018 9:05 am
Forum: ESP-IDF
Topic: Problem reading file from SPIFFS
Replies: 2
Views: 9722

Re: Problem reading file from SPIFFS

I figured it out by myself. 2 issues: 1. Issue described here https://github.com/espressif/esp-idf/issues/1437 . Basically I had to set CONFIG_SPIFFS_META_LENGTH to zero. 2. My use of fread() is incorrect. The correct use for this case is bytes_read = fread(file_buf, file_size, 1, file); or bytes_re...
by zexanana
Sun Aug 12, 2018 8:50 pm
Forum: ESP-IDF
Topic: Problem reading file from SPIFFS
Replies: 2
Views: 9722

Problem reading file from SPIFFS

Hello, I'm having trouble reading a file from SPIFFS. I have created an image with 2 files using mkspiffs tool. Successfully flashed it to the esp32 board memory, to the point where I can see in boot the total and used space (numbers which are correct with what i specified and the size of the 2 file...