Page 2 of 2

Re: FatFs does not work on encrypted partition

Posted: Mon Oct 21, 2019 5:13 am
by Mikhail Khalizev
Hi.

I'm usung the latest version of ESP-IDF from 'release/v3.3' branch [0a0f2ca].

Steps to reproduce:
1. Take 'esp-idf\examples\storage\wear_levelling'.
2. Set 'encryption' flag on 'storage' partition in 'partitions_example.csv' file.
3. Don't enable flash encryption in 'sdkconfig'.
4. Upload to device.

As result I see logs:

Code: Select all

I (174) example: Mounting FAT filesystem
I (184) example: Opening file
E (195) example: Failed to open file for writing

Re: FatFs does not work on encrypted partition

Posted: Mon Oct 21, 2019 7:38 am
by jcsbanks
I got into the habit of only adding the encryption tags in the partition table only when flash encryption was enabled. It was not mentioned in docs, but it solved a few problems if I recall switching between flash encryption on or off.