OK, it is possible to fix this via javascript code if you have firmware that is build with recent changes that can clear and change UICR, however it is a bit tricky, check this conversation http://forum.espruino.com/conversations/355602/#15601192 setting NFC pins as GPIO is similar problem of updating UICR. However you must erase it completely to unset reset pin configuration.
In your case you'd need to run this inside same method
I think there is nothing important in UICR except values set in code above but before erasing it you may dump it just in case, for more detail and background see https://github.com/fanoush/ds-d6/wiki/Replacing-Nordic-DFU-bootloader#espruino-examples (just beware that those examples in the wiki are using NRF.onRestart which is syntax of my older patch, Gordon later added this feature to Espruino as NRF.restart(function()) as mentined in that linked post).
I executed the code but it does not change anything. The command for the reset pin still returns 15. In the current state, the bangle boots to the bangle logo. When I try to write to storage, I get "Timeout on jshFlashWrite".
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.
OK, it is possible to fix this via javascript code if you have firmware that is build with recent changes that can clear and change UICR, however it is a bit tricky, check this conversation http://forum.espruino.com/conversations/355602/#15601192 setting NFC pins as GPIO is similar problem of updating UICR. However you must erase it completely to unset reset pin configuration.
In your case you'd need to run this inside same method
I think there is nothing important in UICR except values set in code above but before erasing it you may dump it just in case, for more detail and background see https://github.com/fanoush/ds-d6/wiki/Replacing-Nordic-DFU-bootloader#espruino-examples (just beware that those examples in the wiki are using
NRF.onRestart
which is syntax of my older patch, Gordon later added this feature to Espruino asNRF.restart(function())
as mentined in that linked post).