Official build use less RAM memory then own build
Posted: Sat Oct 09, 2021 8:43 pm
Hello,
I would like to ask you, if somebody know, why is own esp32 build 1.17 of micropython (https://github.com/micropython/micropython) using more RAM then build of esp32-20210902-v1.17.bin from official web page https://micropython.org/download/esp32/ ?
I print
on start of boot.py file and when I use official build I get about 110 kB of free RAM memory, but when I use own build image with same version I get 55 kb of free RAM memory.
Console Output:
Official build
Can be caused by optimalisation of building code or why is this happen ?
I would like to ask you, if somebody know, why is own esp32 build 1.17 of micropython (https://github.com/micropython/micropython) using more RAM then build of esp32-20210902-v1.17.bin from official web page https://micropython.org/download/esp32/ ?
I print
Code: Select all
import gc
gc.collect()
print("Mem free: ",gc.mem_free())
Console Output:
Official build
Own generated buildMPY: soft reboot
Mem free: 110096
MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32
Type "help()" for more information.
MPY: soft reboot
Mem free: 62928
MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32
Type "help()" for more information.
Can be caused by optimalisation of building code or why is this happen ?