Closed
Description
Firmware
Adafruit CircuitPython 6.2.0 on 2021-04-05; LILYGO TTGO T8 ESP32-S2 w/Display with ESP32S2
Code/REPL
>>> import gc
>>> gc.mem_free()
8195792
>>>
>>> import espidf
>>> espidf.heap_caps_get_total_size()
8583106
>>> espidf.heap_caps_get_free_size()
141378
>>> espidf.heap_caps_get_largest_free_block()
$ # (crashed)
Behavior
The espidf.heap_caps_get_largest_free_block()
call results in:
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode: something unanticipated happened.
CircuitPython core code crashed hard. Whoops!
Crash into the HardFault_Handler.
Press any key to enter the REPL. Use CTRL-D to reload.
Description
I have not seen this on other ESP32-S2 boards (FeatherS2, MagTag, Metro S2, Saola WROVER).
espidf
results differ vastly from FeatherS2, which also has 8MB PSRAM (LILYGO memory misconfigured?)
Adafruit CircuitPython 6.2.0 on 2021-04-05; FeatherS2 PreRelease with ESP32S2
>>> import gc
>>> gc.mem_free()
8195344
>>>
>>> import espidf
>>> espidf.heap_caps_get_total_size()
161844
>>> espidf.heap_caps_get_free_size()
130072
>>> espidf.heap_caps_get_largest_free_block()
80896