You are reading a single comment by @DrAzzy and its replies.
Click here to read the full conversation.
-
So a build that would be like the bigram builds I used to do (at some point, the toolchain stopped working, and then I was forced to rebuild the system by amazon and forgot how to set it up anyway), only it would auto-detect whether that RAM was actually there? That would be really cool
An esp32 build that had 64K jsvars would be pretty cool. Would finally be hard to run out of ram on espruino.
That looks good - I guess you could change
jsvInit
to take the size as a parameter?If someone's interested in it, there's the possibility of using this on some STM32 devices - for instance the original Espruino board has a chip that's only supposed to have 48kB of RAM, but which actually has 64kB (I believe). I just can't be sure every chip has it so I can't enable it in firmware.
Potentially some code could check for the RAM at boot and rearrange the stack to use what was available - although it's more difficult as Espruino for STM32 doesn't use malloc :)