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
Micropython allocates a heap size of only 65536 bytes on the ESP32 for later versions of the ESP IDF (>= 4.2.2) instead of the actually available 110536 bytes.
Since the implementationof a new allocator in the IDF (October 2020), heap_cap_get_largest_block() returns the size of the largest allocatable block rounded down to the nearest power of 2 (in contradiction with the documentation.
A fix for this bug is in progress from Espressif (and appears to have landed in 4.3-dev - thanks @IhorNehrutsa) and once it arrives the memory allocated to gc heap on ESP32S2 will increase from 128kB to 157kB on the GENERIC_S2 target - exacerbating the issues on ESP32S2.
I have submitted PR #7963 to set a configurable limit on the amount of RAM micropython allocates to the heap.
Micropython allocates a heap size of only 65536 bytes on the ESP32 for later versions of the ESP IDF (>= 4.2.2) instead of the actually available 110536 bytes.
Since the implementationof a new allocator in the IDF (October 2020), heap_cap_get_largest_block() returns the size of the largest allocatable block rounded down to the nearest power of 2 (in contradiction with the documentation.
I have filed an issue against the IDF at espressif/esp-idf#7808.
The follwing patch provides an ugly work around:
The text was updated successfully, but these errors were encountered: