Most probably it is adafruit bootloader(?), so make sure the binary and saved_code espruino configuration section fits below 0xF4000 and also beware that there is factory reset bootloader functionality that will clear flash above 0xED000 so if you invoke it by some button combination the espruino filesystem mightt be corrupted/cleared.
Also most probably you are now building hex file that includes softdevice(?) which is not suitable format for this type of update. You should get just the application hex and the softdevice already on device should match the version you build for. Bootloader always needs softdevice to be present to work so you already have specific one there and bootloader depends on it.
Or you can of course clear everything but than you cannot use uf2 update but full flash over SWD.
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.
Most probably it is adafruit bootloader(?), so make sure the binary and saved_code espruino configuration section fits below 0xF4000 and also beware that there is factory reset bootloader functionality that will clear flash above 0xED000 so if you invoke it by some button combination the espruino filesystem mightt be corrupted/cleared.
Also most probably you are now building hex file that includes softdevice(?) which is not suitable format for this type of update. You should get just the application hex and the softdevice already on device should match the version you build for. Bootloader always needs softdevice to be present to work so you already have specific one there and bootloader depends on it.
Or you can of course clear everything but than you cannot use uf2 update but full flash over SWD.