You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered: