Actually using a stringref to reference a string somewhere else is difficult because there are only 16 bit pointers (12 if you've got less than 1024 vars). However you could initialise a JsvStringIterator with an arbitrary pointer and string length and execute straight from flash that way.
That's what I had planned for setBootCode mentioned in the other thread - and for that, having 'save to flash' memory mapped would be perfect.
There's actually a FAT32 filesystem already in Espruino (so external SD cards can be supported). IMO it'd make a lot of sense to just use that in the remaining block of memory instead of including a whole new filesystem as well.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, sounds good.
Actually using a stringref to reference a string somewhere else is difficult because there are only 16 bit pointers (12 if you've got less than 1024 vars). However you could initialise a JsvStringIterator with an arbitrary pointer and string length and execute straight from flash that way.
That's what I had planned for
setBootCode
mentioned in the other thread - and for that, having 'save to flash' memory mapped would be perfect.There's actually a FAT32 filesystem already in Espruino (so external SD cards can be supported). IMO it'd make a lot of sense to just use that in the remaining block of memory instead of including a whole new filesystem as well.