I just tried to unlock flash and write to the NFCPINS register with the latest build 2017-11-27 :
NFCPINS
2017-11-27
_____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v94 Copyright 2017 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate >var f=require('Flash') =function () { [native code] } >var NFCPINSreg=0x1000120C =268440076 >var NFCPINSdata=[0xff,0xff,0xff,0xfe] =[ 255, 255, 255, 254 ] >E.getFlags() ={ "deepSleep": 0, "pretokenise": 0, "unsafeFlash": 0 } >E.setFlags({unsafeFlash:1}) =undefined >E.getFlags() ={ "deepSleep": 0, "pretokenise": 0, "unsafeFlash": 1 } >f.read(4,NFCPINSreg) =new Uint8Array([255, 255, 255, 255]) >f.write(NFCPINSdata,NFCPINSreg) =undefined >f.read(4,NFCPINSreg) =new Uint8Array([255, 255, 255, 255])
Despite the flag unsafeFlash being set to 1, it seems that the flash register did not change. Any idea?
unsafeFlash
@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.
I just tried to unlock flash and write to the
NFCPINS
register with the latest build2017-11-27
:Despite the flag
unsafeFlash
being set to 1, it seems that the flash register did not change. Any idea?