Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIFFS mount fails when flash encryption is enabled (IDFGH-3496) #2001

Closed
Buffalchill opened this issue May 25, 2018 · 7 comments
Closed

SPIFFS mount fails when flash encryption is enabled (IDFGH-3496) #2001

Buffalchill opened this issue May 25, 2018 · 7 comments

Comments

@Buffalchill
Copy link

I tried the SPIFFS example while flash encryption was enabled.
the .bin file was encrypted with a pre-generated-key from espsecure.py
and uploaded with the esptool.py

The result was: mount fail. Isn't it possible to use Spiffs if flash encryption is enabled ?

spiffserror_example

@me-no-dev
Copy link
Member

SPIFFS is not supported when flash encryption is enabled. You can use FATFS instead

@Buffalchill
Copy link
Author

Buffalchill commented May 25, 2018

but the FATFS is only for external SD card not for the onboard storage right ?

@me-no-dev
Copy link
Member

FATFS is supported on the flash as well. https://github.com/espressif/esp-idf/tree/master/examples/storage/wear_levelling it's the wear leveling lib that makes it possible to be used when flash is encrypted.

@Buffalchill
Copy link
Author

Thank you ! Is this also available in the Arduino-Esp32 ? (I didn't find a sketch or a example, yet)

@Buffalchill
Copy link
Author

Buffalchill commented May 25, 2018

I tried the FATFS wear leveling example from the esp-idf but it doesn't seem to work with flash encryption.
I also tried the arduino-esp32 EEPROM example which doesn't work too.
It seems like there is no way to store data, without loosing it when esp32 shuts down 🌊

fatfs

@Buffalchill
Copy link
Author

Spiffs and Preferences work with encryption enanbled. Just didn't have the right partition table on my board

@bastianhjaeger
Copy link

bastianhjaeger commented Jun 15, 2020

Spiffs and Preferences work with encryption enanbled. Just didn't have the right partition table on my board

I do not see how SPIFFS can work with encryption (but I am trying to) if I see:

Screenshot from 2020-06-15 11-19-25
https://github.com/espressif/esp-idf/blob/master/components/spiffs/esp_spiffs.c#L166

@Buffalchill Could you elaborate this, please?

@github-actions github-actions bot changed the title SPIFFS mount fails when flash encryption is enabled SPIFFS mount fails when flash encryption is enabled (IDFGH-3496) Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants