FatFs does not work on encrypted partition

Mikhail Khalizev
Posts: 5
Joined: Mon Oct 21, 2019 12:45 am

Re: FatFs does not work on encrypted partition

Postby Mikhail Khalizev » Mon Oct 21, 2019 5:13 am

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

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: FatFs does not work on encrypted partition

Postby jcsbanks » Mon Oct 21, 2019 7:38 am

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.

Who is online

Users browsing this forum: Google [Bot], MicroController and 98 guests