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

How to initialize a FAT partition in SPIFFS partition table slot (IDFGH-9743) #11076

Closed
3 tasks done
yaswanth-17 opened this issue Mar 29, 2023 · 3 comments
Closed
3 tasks done
Labels
Awaiting Response awaiting a response from the author Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Question questions from developer

Comments

@yaswanth-17
Copy link

yaswanth-17 commented Mar 29, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v4.4.1

Operating System used.

Windows

How did you build your project?

Eclipse IDE

If you are using Windows, please specify command line type.

NONE

What is the expected behavior?

Hi everyone i have some doubts about the spiffs and fatfs file storage system. actually, iam using esp32 wrover-b and my binary size has been increased due to the large HTML files , so as i analyzed the partition table there is a lot of empty space in spiffs which I not using in our project so I have implemented spiffs storage system and mount those files to spiffs but unfortunately due to flash encryption I am not able to mount or create spiffs storage, so next way is to create a fatfs storage to access the html page, is it possible to use my spiffs partition for fatfs which I declare in my partition table, is there any way to store the file in fatfs without modifying the partition table,

Is it possible to use the spiffs partition for fatfs to store files and access files?

What is the actual behavior?

Need to store the HTML in fatfs without modifying the partition table and by using the existing spiffs storage.

Steps to reproduce.

Just creating a partition table consisting of spiff storage and assigning it fatfs is possible in espidf if it possible is there any example on it?

Build or installation Logs.

No response

More Information.

No response

@yaswanth-17 yaswanth-17 added the Type: Bug bugs in IDF label Mar 29, 2023
@github-actions github-actions bot changed the title Access the files stored in spiffs Access the files stored in spiffs (IDFGH-9743) Mar 29, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 29, 2023
@igrr
Copy link
Member

igrr commented Mar 30, 2023

@yaswanth-17 Are your devices already in the field? Is flash encryption already enabled on these devices? Or are you still in development phase?

If you are in development phase, you can simply update the partition table to use a fatfs partition instead of spiffs.

If the devices are already in the field, how did you use the SPIFFS partition before? Looks like this shouldn't be possible due to flash encryption being enabled.

@igrr igrr added Type: Question questions from developer and removed Type: Bug bugs in IDF labels Mar 30, 2023
@igrr igrr changed the title Access the files stored in spiffs (IDFGH-9743) How to initialize a FAT partition in SPIFFS partition table slot (IDFGH-9743) Mar 30, 2023
@espressif-bot espressif-bot added the Awaiting Response awaiting a response from the author label Apr 17, 2023
@Alvin1Zhang
Copy link
Collaborator

@yaswanth-17 Thanks for reporting, would you please help share if any updates for the issue? Thanks.

@adokitkat
Copy link
Collaborator

Closing this as there is no answer. Fell free to reopen if you have any more questions.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Opened Issue is new labels Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Response awaiting a response from the author Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Question questions from developer
Projects
None yet
Development

No branches or pull requests

5 participants