I'd actually be surprised if you save much memory by loading from SD card, unless you're able to clear the modules out of the cache when you're done with them?
On the original Espruino, RAM is 48kB, but the page sizes are all 1kB - it means that there's much more control over where the split of program + saved code is, and code can be put right at the end of flash memory.
Try downloading this file, and following the instructions for DFU that I'd linked in the last post. The command should look like:
dfu-util -a 0 -s 0x08000000 -D espruino_1v79.19_bigram_pico_1r3.bin
(or you can use ST's Windows GUI version - the important thing is shorting the BOOT0 jumper and pressing the button while booting).
It's the latest build, with 4860 variables in it. It might be possible to get a bit more, but hopefully that'll do you for now.
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.
I'd actually be surprised if you save much memory by loading from SD card, unless you're able to clear the modules out of the cache when you're done with them?
On the original Espruino, RAM is 48kB, but the page sizes are all 1kB - it means that there's much more control over where the split of program + saved code is, and code can be put right at the end of flash memory.
Try downloading this file, and following the instructions for DFU that I'd linked in the last post. The command should look like:
(or you can use ST's Windows GUI version - the important thing is shorting the BOOT0 jumper and pressing the button while booting).
It's the latest build, with 4860 variables in it. It might be possible to get a bit more, but hopefully that'll do you for now.
1 Attachment