If you're keeping the SD card inserted, you shouldn't have to worry about saving...
To just reflash the same saved code, you just need the last few pages of memory. There's a #define in gen/platform_config.h that would tell you how many.
Having said that, you may be able to change the stm32loader flags (or modify the loader itself) so that it only erases the pages that it is overwriting. That might actually be the easiest way around it?
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.
If you're keeping the SD card inserted, you shouldn't have to worry about saving...
To just reflash the same saved code, you just need the last few pages of memory. There's a
#define
ingen/platform_config.h
that would tell you how many.Having said that, you may be able to change the
stm32loader
flags (or modify the loader itself) so that it only erases the pages that it is overwriting. That might actually be the easiest way around it?