Skip to content

Odd behavior with QT Py ESP32-S2 and CP 7.2.5 #6285

@dekeyrej

Description

@dekeyrej

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions