Nicktonious
Member since Apr 2023 • Last active Nov 2023Most recent activity
-
@JumJum, hello again. I continued to search for answers, even have found ur 5 year old thread on esp32, where you state that:
- ESP32.enableBLE(false/true) , adds about 1900 additional JsVars
- ESP32.enableWifi/false/true) , adds about 3800 additional JsVars
And I see that lots of people are talking about switching BLE off to get more free memory. But even 2500 jsVars is only ~35Kbytes, meanwhile my board advertises to have around more than 500 KBytes of ram. That's just nonsense!
- ESP32.enableBLE(false/true) , adds about 1900 additional JsVars
-
Reference page says that "E.getSizeOf() returns the number of variable blocks used by the supplied variable".
But how should I estimate the real size of entities in my app? For example, E.getSizeOf(Number.MAX_VALUE) returns 1, meanwhile the bocksize is 14 (according to process.memory) and espruino numbers are 64bit. It just makes no sense for me.Sorry for asking kind of stupid question, but I really want to figure out how to calculate size of objects as preciese as possible. Thanks for answer in advance!
-
-
Hello everyone. I'm using ESP32 Wroom 32 devkit. It is advertised as having
- Flash-memory: 448 Кb
- SRAM-memory: 520 Kb
BUT as I use process.memory(), I get quite confusing answer:
Total of 2351 block * 14 bytes (blocksize) results in ~33Kbytes what is extremly low.
Even if I made a mistake in calculations, I have seen with my own eyes how quickly I lose 2/3 of memory total memory after just a few requires(btw all files are minified) and launching a ws server with 2-3 connections.
How do u think, can it be a problem with the firmware or Wifi + BLE modules take soo much memory?
- Flash-memory: 448 Кb
-
-
- 13 comments
- 859 views
I wanted to turn wifi off on my board to check out how much memory it would release. Unfortunatly I trap into infinite trying to boot. Firstly I get:
Then:
I know that re-flashing helps to "fix" the board but I need t0 find a way to turn wifi off.
I will be much thanksful for your advice.