There is also internal flash directly on the nrf52 chip, bangle 2 has like 500KB free, would be interesting to have test with some longer busy looping JS code running from storage how much loading code from external SPI would add vs running same code from internal flash (or from "ram" which should be similar)
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.
It could make sense. However I'm not sure how much it would save. SPI flash can momentarily draw like 15mA (see e.g. table on page 83 for similar chip here https://www.winbond.com/resource-files/w25q128fv%20rev.m%2005132016%20kms.pdf#page=83 ) while the CPU being 100% busy draws like 5mA (table here https://infocenter.nordicsemi.com/topic/ps_nrf52840/_tmp/nrf52840/autodita/CURRENT/parameters.i_cpu.html?cp=4_0_0_4_1_0_2 ) however there is some cache buffer implemented for reading JS data from SPI flash so it is not read all the time and may actually sleep most of the time with short bursts of activity. Interpreting JS code makes the CPU busy almost all the time as long as your redrawing code runs so while CPU draws less than SPI flash it may consume majority of the power.
There is also internal flash directly on the nrf52 chip, bangle 2 has like 500KB free, would be interesting to have test with some longer busy looping JS code running from storage how much loading code from external SPI would add vs running same code from internal flash (or from
"ram"
which should be similar)