-->
Page 1 of 2

How much memory is available to the user?

PostPosted: Sat Nov 14, 2015 2:10 pm
by OnlineDishwasher
When using this firmware, how much memory is available to write my code and to my app? Does the firmware I use change the amount of available memory or are all firmwares the same size?

According to this: wiki/doku.php?id=esp8266_memory_map, it would seem there is 248kb to play with, am I reading this chart correctly?

Re: How much memory is available to the user?

PostPosted: Sat Nov 14, 2015 5:15 pm
by forlotto
I think it was listed as 40k

As far as what you are talking about it sounds like storage for files and code.

Not 100% sure but I believe there was another posting about it possibly do a search etc about esp memory.

Take care

Re: How much memory is available to the user?

PostPosted: Sat Nov 14, 2015 7:19 pm
by kolban
For Espruino ...

There are two concepts in memory ... flash memory that is non-volatile and RAM memory. An ESP8266 uses external flash memory (i.e. not built into the ESP8266) and typically has 512K, 1MB or 4MB depending on the board chosen.

The RAM in an ESP8266 is fixed ... typically after loading the Espressif SDK ready for WiFi and TCP/IP, there is commonly about 40K of RAM remaining for applications. Of that 40K, about 12K is available for JavaScript programs AND variables and about 8K left in the heap for TCP/IP buffers. The remaining 20K is used in overhead by Espruino itself.

So the loose answer is that the total of application code source + variables/data is about 12K.

For Smart.js ... I don't have an answer but would love to know.

Re: How much memory is available to the user?

PostPosted: Sun Nov 15, 2015 2:36 pm
by OnlineDishwasher
Thank you, that's helpful