As the title says... Chat on...

User avatar
By jumjum123
#14107 After running into problems with "out of memory", I tried to get a better understanding of memory usage.
To make a long story short, I failed.
Based on my (poor) knowledge, there is:
- heap
- memory for source
- memory for files
To get some numbers I used
- node.heap()
- collectgarbage("count")
- collectgarbage("collect")
Is there any description, how to get these numbers together ?
I would like to
- check different sources and compare against each other
- see how much space is available for files
- see where memory goes, code and/or data
- remove not needed source and/or data

Thanks in advance
Jürgen

Is there any documentation available for that ?
User avatar
By cal
#14123 Moin,

dunno what you mean with "files" and "source" but this has some basic info:

https://github.com/esp8266/esp8266-wiki/wiki/Memory-Map

heap is part of 3FFE8000h.
Stack is part of 3FFFC000h.
Filesystem is in flash I guess.

Look into app/mapfile of nodemcu firmware build for some symbols.
I have only a rudimentary view of that myself.

Hope that helps,
Carsten