Not sure how writing to flash works when XIP is enabled, it will probably block executing from flash in similar way as on nrf5x where any execution is halted when erasing/writing.
How does it work on ESP32/8266? It is exactly the same problem there.
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.
Well maybe using the XIP region where flash is actually mapped would be good idea.
https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#page=150
2.6.3. Flash
Not sure how writing to flash works when XIP is enabled, it will probably block executing from flash in similar way as on nrf5x where any execution is halted when erasing/writing.
How does it work on ESP32/8266? It is exactly the same problem there.