I'll try it but for the production pcbs this will be a pain to connect serial and override the register.
It shouldn't be required, but hopefully this will help to narrow down if it is the issue.
Actually I just had a thought. Try:
NRF.disconnect();setTimeout(function() { NRF.restart(function(){ LED.set(); 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 })}, 1000)
It's possible the disconnect isn't instant and so NRF.restart doesn't get called.
@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.
It shouldn't be required, but hopefully this will help to narrow down if it is the issue.
Actually I just had a thought. Try:
It's possible the disconnect isn't instant and so NRF.restart doesn't get called.