CircuitPython version
Adafruit CircuitPython 7.2.5 on 2022-04-06; Adafruit QT Py ESP32S2 with ESP32S2
Board ID:adafruit_qtpy_esp32s2
Code/REPL
import gc, os
# Show available memory
print("Memory Info - gc.mem_free()")
print("{} Bytes\n".format(gc.mem_free()))
flash = os.statvfs('/')
flash_size = flash[0] * flash[2]
flash_free = flash[0] * flash[3]
# Show flash size
print("Flash - os.statvfs('/')")
print("Size: {} Bytes\nFree: {} Bytes\n".format(flash_size, flash_free))
Behavior
Memory Info - gc.mem_free()
2043120 Bytes
Flash - os.statvfs('/')
Size: 963072 Bytes
Free: 854528 Bytes
Description
ESPTOOL reports 4MB Flash. 941K available with code. Perhaps the partitioning is off?
Additional information
No response
CircuitPython version
Code/REPL
Behavior
Memory Info - gc.mem_free()
2043120 Bytes
Flash - os.statvfs('/')
Size: 963072 Bytes
Free: 854528 Bytes
Description
ESPTOOL reports 4MB Flash. 941K available with code. Perhaps the partitioning is off?
Additional information
No response