Skip to content

What is the maximum file size of Esp32? #4675

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

Closed
miracle0419 opened this issue Dec 30, 2020 · 4 comments
Closed

What is the maximum file size of Esp32? #4675

miracle0419 opened this issue Dec 30, 2020 · 4 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@miracle0419
Copy link

Hi,
I using ESP32 / 4Mb(32Mb) : No OTA (2MB APP/2MB SPIFFS).
I trying that files over 1.5M are not saved. Since the file was formatted before saving, there is more than 1.8M space available.


one more question please let me know if you have any idea.
I can manually modify the partition scheme?
Currently, our application binary size is about 1.5M and I would like to implement OTA.

Thanks, ck

@lbernstone
Copy link
Contributor

This would be filesystem dependent. However, both SPIFFS and FAT12 can handle 32MB files. SPIFFS.totalBytes() - SPIFFS.usedBytes() = free space. Verbose logging will tell you if the disk runs out of space. Writing 1.5MB will take over a minute, so the watchdog timer will be triggered unless you turn it off.
#4551 (comment)

@miracle0419
Copy link
Author

I not sure, only 1.5 can be saved. flash wite value keeps returning 0.

[30/12/20 - 11:26:33:685] V: SPIFFS DATA USAGE TOTAL : [1860161], USAGE : [1512024]
[30/12/20 - 11:26:33:689] V: Listing directory:
[30/12/20 - 11:26:33:893] V: FILE: /esp_fw.bin SIZE:1499520

@stale
Copy link

stale bot commented Jun 23, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jun 23, 2021
@stale
Copy link

stale bot commented Jul 8, 2021

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants