I am connecting through Bluetooth.
I removed setupExternalHardware() from onInit(), but it still freezes.
Then I started with a tiny module BG96NB1.js, adding more and more lines of code step by step.
I ended up in just adding lines like console.out("XXXXXXXXXXXXXXXXXXX") to find out the module size that still worked, while adding just one more line of console.out made save() freeze again.
The largest size of the overall program I could see was 12261 (0x2FE5) bytes.
Setting up external hardware. Please wait ...
BME280 wiring set up.
Quectel BG96 wiring set up.
save();
=undefined
Compacting Flash...
Calculating Size...
Writing..
Compressed 40000 bytes to 12261
Running onInit()...
This makes me assume that there must be some kind of limit at about 12288 (0x3000) bytes.
Could this actually be true?
I can't believe why the application should fit into RAM, but not into flash.
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.
Hi,
I am connecting through Bluetooth.
I removed
setupExternalHardware()
fromonInit()
, but it still freezes.Then I started with a tiny module BG96NB1.js, adding more and more lines of code step by step.
I ended up in just adding lines like
console.out("XXXXXXXXXXXXXXXXXXX")
to find out the module size that still worked, while adding just one more line of console.out madesave()
freeze again.The largest size of the overall program I could see was 12261 (0x2FE5) bytes.
This makes me assume that there must be some kind of limit at about 12288 (0x3000) bytes.
Could this actually be true?
I can't believe why the application should fit into RAM, but not into flash.
Found this in https://github.com/espruino/Espruino/blob/master/boards/RAK8212.py :
Does this mean 3 * 4096 byte only for saved code?
Compared with the Nordic NRF52832 (https://github.com/espruino/Espruino/blob/master/boards/NRF52832DK.py) why does this have 10 pages a 4096 byte for saved code?