Coder Social home page Coder Social logo

Comments (4)

igrr avatar igrr commented on July 26, 2024 1

@mmvwk01 ESP-IDF sets block size to the size of flash erase sector (4096 bytes), whereas you are setting it to 8192.

Please try the latest release of mkspiffs from https://github.com/igrr/mkspiffs/releases/tag/0.2.2, download the version for your OS which has 'esp-idf' in its name.

For the partition table in the unmodified ESP-IDF example, you should use the following command:

./mkspiffs -c /path/to/source/dir -b 0x1000 -p 0x100 -s 0xF0000 spiffs_image.bin

Before doing this, make sure that you use default configuration of mkspiffs example in ESP-IDF. That is,

rm sdkconfig
make defconfig

from mkspiffs.

lszlfrng avatar lszlfrng commented on July 26, 2024

Hi,
yesterday I had a similar problem. I remembered that it works well with the arduino-esp32.
In the arduino-esp32 the SPIFFS_META_LENGTH is 0.
I changed the default setting in my application for the SPIFFS_META_LENGTH parameter to 0.
Please check it yourself too:

  • start make menuconfig;
  • go to [Component config][SPIFFS Configuration];
  • change the SPIFFS_META_LENGTH (from default 4?) to 0;
  • build your application, flash and check the result.
    With this modification, I can generate spiffs partition with mkspiffs, After uploading it the application can mount and modify the content. The download and unpack is works also.
    I hope I could help you.
    Laszlo
    P.S.: I am not a programmer so the solution may seem simple.

from mkspiffs.

mmvwk01 avatar mmvwk01 commented on July 26, 2024

Hi, thanks for answer,

i set the SPIFFS_META_LENGTH to 0 in my App, but the result is the same:
W (407) SPIFFS: mount failed, -10025. formatting...

from mkspiffs.

mmvwk01 avatar mmvwk01 commented on July 26, 2024

hi

  1. git clone https://github.com/espressif/esp-idf

  2. cd esp-idf/examples/storage/spiffs

  3. edit partitions_example.csv

  4. storage, data, spiffs, 0x291000, 0xF0000,

  5. make erase_flash

  6. make flash

  7. git clone https://github.com/igrr/mkspiffs

  8. git submodule init

  9. git submodule update

  10. make

  11. create dir "data"

  12. create file "test.txt" in dir "data"

  13. ./mkspiffs -c ./data -b 8192 -p 256 -s 0x000f0000 ./spiffs.bin

  14. esptool.py --port /dev/ttyUSB0 -b 921600 write_flash 0x00291000 ./spiffs.bin

Result:
W (407) SPIFFS: mount failed, -10025. formatting...

from mkspiffs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.