If you haven't sorted this, any chance you could try this code:
NRF.disconnect();setTimeout(function() { NRF.restart(function(){ poke32(0x4001e504,1);while(!peek32(0x4001e400)); // enable flash writing poke32(0x1000120c,0xfffffffe);while(!peek32(0x4001e400)); // NFC pins as GPIO poke32(0x4001e504, 0);while(!peek32(0x4001e400)); // disable flash writing }) }, 2000);
It might be the timeout helps since it's possible the board hadn't disconnected right after NRF.disconnect was called.
NRF.disconnect
@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 haven't sorted this, any chance you could try this code:
It might be the timeout helps since it's possible the board hadn't disconnected right after
NRF.disconnect
was called.