Hi all:
I had buy two ESP board , one is Nodemcu,the CPU is ESP8266,the other is ESP32s
As we know ESP32 have 440Kb SDRAM and ESP8266 only have 80kb memory,but after i download the micropython firmware,and use micropython. mem_info()
the esp32:
micropython.mem_info()
stack: 736 out of 15360
GC: total: 111168, used: 4928, free: 106240
No. of 1-blocks: 16, 2-blocks: 7, max blk sz: 264, max free sz: 6612
and the ESP8266:
stack: 2112 out of 8192
GC: total: 35968, used: 7136, free: 28832
No. of 1-blocks: 31, 2-blocks: 10, max blk sz: 264, max free sz: 1783
why ESP8266 only lost 80K-35K=40K mem but esp32 lost 440K-110K=330K?
Who can explain the reason to me, thanks
About the free memory for ESP32
Re: About the free memory for ESP32
en……
At micropython's github, I found this:
This is an experimental port of MicroPython to the Espressif ESP32 microcontroller. It uses the ESP-IDF framework and MicroPython runs as a task under FreeRTOS.
Supported features include:
REPL (Python prompt) over UART0.
16k stack for the MicroPython task and 96k Python heap.
What caused this limitation? Can I modify the source code to remove this limitation?
At micropython's github, I found this:
This is an experimental port of MicroPython to the Espressif ESP32 microcontroller. It uses the ESP-IDF framework and MicroPython runs as a task under FreeRTOS.
Supported features include:
REPL (Python prompt) over UART0.
16k stack for the MicroPython task and 96k Python heap.
What caused this limitation? Can I modify the source code to remove this limitation?