Following this topic (https://devzone.nordicsemi.com/question/67300/writing-to-uicr-from-application-code/) it seems that the flash needs to be Write Enabled by writing 0x01 into CONFIG reg at addr 0x4001E504. I use poke32for that, like following:
CONFIG
0x4001E504
poke32
var NVMCCONFIGreg=0x4001E504; poke32(NVMCCONFIGreg,0x00000001);
This instruction has the effect of disconnecting the Puck.js from the IDE (reset?) Does anyone ever used poke32 on a NRF52?
@Jean-Philippe_Rey 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.
Following this topic (https://devzone.nordicsemi.com/question/67300/writing-to-uicr-from-application-code/) it seems that the flash needs to be Write Enabled by writing 0x01 into
CONFIG
reg at addr0x4001E504
.I use
poke32
for that, like following:This instruction has the effect of disconnecting the Puck.js from the IDE (reset?)
Does anyone ever used
poke32
on a NRF52?