If you want to set bits back to 1 then yes, you'll have to read+mask pages, however there is a utility there to figure out where each page is.
Having said that, it's possible the Flash module will refuse to write to that address out of the box on Puck.js as I didn't want people bricking devices :) I literally just added a workaround as a commit yesterday! https://github.com/espruino/Espruino/commit/5fedb5c58f62f197733f17cc4de97258edaa724f
@Gordon 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.
If you want to set bits back to 1 then yes, you'll have to read+mask pages, however there is a utility there to figure out where each page is.
Having said that, it's possible the Flash module will refuse to write to that address out of the box on Puck.js as I didn't want people bricking devices :) I literally just added a workaround as a commit yesterday! https://github.com/espruino/Espruino/commit/5fedb5c58f62f197733f17cc4de97258edaa724f