Yes, that's it. Keep storage (saved_code section) as is.
Then use Flash.getFree() to see it is there, and then just read/write/erase it via adresses above 0x60000000.
If the Flash api would return all zeroes then maybe you will also need to wake up SPI flash from deep sleep but maybe it will just work.
@fanoush started
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, that's it. Keep storage (saved_code section) as is.
Then use Flash.getFree() to see it is there, and then just read/write/erase it via adresses above 0x60000000.
If the Flash api would return all zeroes then maybe you will also need to wake up SPI flash from deep sleep but maybe it will just work.