Unable to recover puckjs after flashing with programming jig #3706
Replies: 7 comments
-
Posted at 2021-04-28 by @gfwilliams Hi! I think the issue you may have is that in order to get enough free pins on the Puck.js v2.0, pin P0.21, the reset pin (if enabled), is used for the magnetometer (which pulls it low by default). If you look at the code you compiled, you may find the However, once the microcontroller is configured to use P0.21 as reset I'm not sure if there's a way out of it other than by manually pulling it high and then uploading new firmware. I'm currently asking Nordic to see if there is a way around this. However if you want to get it going now (and are ok with some relatively fine soldering) you could attach a wire between pin P0.21 and 3v on the Puck - then you should be able to recover and flash code just fine.Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-28 by user113493 Thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-29 by user113493 I can confirm that this works:
Adam |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-29 by @fanoush
why this one? this looks like enabling it again (partly, there are two copies of this that must match another is at 0x204). see https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html#register.PSELRESET-0 CONFIG_GPIO_AS_PINRESET enables code that at each boot checks 0x200 and 0x204 UICR locations and writes 21=0x15 there if needed. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-29 by @gfwilliams Great - glad it's sorted! As @fanoush mentioned you shouldn't need the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-29 by user113493 After --recover the firmware seemed to work only in the jig, not with a battery. So I tried memwr and then it worked fine. Maybe someone could verify if this step is needed. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-04-29 by @fanoush
No need to verify, it makes no sense. Fortunately you did only half of the damage so it is hopefully harmless. If you would also run Maybe just reboot or something else you did helped. Or maybe you also had another issue why it didn't run on battery. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-04-28 by user113493
Hello,
I am trying to flash puckjs via a programming jig from Espruino shop and with NRF 52832 DK and Segger Studio. I managed to load a simple LED sample into my puck v1.0 but my other puck v2.0 stopped working after erasing and flashing the same software (no SoftDevice, using Segger). I tried nrfjprog --recover but the log shows now:
FUNCTION: recover.
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
Failed to power up DAP
Before erasing I was able to see boot+softdev+app in NRF Go Studio.
Is there another step I need to do before I can erase and load my own firmware?
Can I still recover this puck?
Thanks
Adam
Beta Was this translation helpful? Give feedback.
All reactions