-
@Gordon @fanoush I though I got that code from a wrong place but looks like it's the same thing in the docs https://github.com/espruino/EspruinoDocs/blob/master/boards/Puck.js.md#recovery-after-2v04-installation
Is it wrong here? or something else happend to my puck? -
@fanoush thanks for the info, I somehow overlooked that.
Are there any tutorials on how to get started? -
I ran this
setTimeout(function() { NRF.restart(function(){ poke32(0x4001e504,2);while(!peek32(0x4001e400)); // enable flash erase poke32(0x4001e514,1);while(!peek32(0x4001e400)); // erase whole uicr poke32(0x4001e504,1);while(!peek32(0x4001e400)); // enable flash writing poke32(0x10001014,0x7A000);while(!peek32(0x4001e400)); // set bootloader poke32(0x10001018,0x7E000);while(!peek32(0x4001e400)); // set mbr settings poke32(0x1000120c,0xfffffffe);while(!peek32(0x4001e400)); // NFC pins as GPIO poke32(0x4001e504, 0);while(!peek32(0x4001e400)); // disable flash writing });}, 2000);NRF.disconnect();
on puckjs v2.0b and not nothing seems to be working :( How can I recover?
I am not able to get into dfu mode
@fanoush @Gordon sorry guys, I ordered nRF52DK and didn't have time to get to this since then.
Had this tab open for this whole time and was just clearing my open tabs when I noticed your replies. Thanks for getting back to me.
So, while I was waiting for the nRF52DK to arrive I managed to turn an ESP32 dev board into an SWD debugger and also managed to copy the firmware from my Puck 1, I tried to write the dump to Puck 2 but looks like that made everything even worse. No lights are comming up at all when I connect it to the battery.
So, I have my nRF52DK on my desk now and would like to have some guide on how to recover the dead Puck 2.
Thanks in advance!