second restart call is not needed, did you disconnect from webide? the example by gordon actually does NRF.disconnect as a first thing, if pasted on same line as whole block it will run it all before console is closed, also maybe remove comments just in case even if it should work.
I suggest to first run E.reboot() to get it to clean state, then paste
oh, but just noticed - in your code you are setting reset pin again! remove those two poke32(0x10001200/4,21) lines, maybe that is the problem :-) And also you are not erasing it. You pasted wrong code, not the one I mentioned in previous post.
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.
second restart call is not needed, did you disconnect from webide? the example by gordon actually does NRF.disconnect as a first thing, if pasted on same line as whole block it will run it all before console is closed, also maybe remove comments just in case even if it should work.
I suggest to first run E.reboot() to get it to clean state, then paste
via ctrl+v and run as single block.
oh, but just noticed - in your code you are setting reset pin again! remove those two poke32(0x10001200/4,21) lines, maybe that is the problem :-) And also you are not erasing it. You pasted wrong code, not the one I mentioned in previous post.