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

Issue with Accessing Full 16 MB Flash on ESP32 with MicroPython #5

Open
arunyava opened this issue Jun 20, 2024 · 0 comments
Open

Issue with Accessing Full 16 MB Flash on ESP32 with MicroPython #5

arunyava opened this issue Jun 20, 2024 · 0 comments

Comments

@arunyava
Copy link

Hi everyone,

I'm using an ESP32-WROOM-32 module which has 16 MB of flash memory. However, when I check the filesystem size using the os module in MicroPython, it only shows 2 MB.

Here is the code I'm using to check the filesystem size:
import os
fs_stat = os.statvfs('/')
total_fs = fs_stat[0] * fs_stat[2]
free_fs = fs_stat[0] * fs_stat[3]
used_fs = total_fs - free_fs

print(f"Total filesystem size: {total_fs} bytes")
print(f"Used filesystem size: {used_fs} bytes")
print(f"Free filesystem size: {free_fs} bytes")
I have tried flashing the firmware with a custom partition table but still see the same issue. Below is the partition table I used:

Name, Type, SubType, Offset, Size, Flags

nvs, data, nvs, 0x9000, 0x5000,
phy_init, data, phy, 0xe000, 0x1000,
factory, app, factory, 0x10000, 0x100000,
vfs, data, fat, 0x110000, 0xEF0000,

Any help on how to utilize the full 16 MB flash memory would be greatly appreciated! I am new to micropython and esp. I want to use 16 mb spi flash

Thanks in advance.

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

1 participant