Hey All,
Thanks in advance for anyone reading.
I'm using the old loboris implementation of spiffs that was made before ESP made their own implementation and we are in the process of updating to IDF 4.X / 5.X from 3.X and would like to remove this dependency. This gives us a lot more functionality for partition control and corruption recovery. In this process I discovered a lot of inefficiency with the SPIFFS configuration too that will be nice to change.
The problem is, the default loboris configuration made the logical block size 8192, where the ESP implementation seems to hard code this to 4092 though the default SPI block size. After much investigation, I do not see an "easy" way to mount/read the old partition from already deployed units using the latest esp_spiffs.c file. I was thinking I could preserve the old implementation alongside the new, to read the old data, store it in ram/flash, format the old spiffs partition to the new format, and save it back. I would have to worry about error trapping along the way and handling power loss in the middle of that process. Seems like quite a lot of work I'd like to avoid, mostly in having dual spiffs implementations.
Right now I modified esp_spiffs.c to hard code a 8192 block size and it works but I would like to preserve the source code. This also means I cannot format the new partition to the new 4096 block size but I could probably with further modification of esp_spiffs.c. Is there a better way to this end?
Thank You
SPIFFS configuration incompatibility
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Google [Bot], ok-home and 105 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.