This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can not reprogram board after attempting to use DFU

I was attempting to implement the secure bootloader example on my custom board (nrf52832) and it failed, so I have been trying to reprogram the board with our normal application using j-link and SES ver 5.42b. It fails when it attempts to flash the softdevice. I get the same error if I try to use nrfjprog. I have tried using the recover command in nrfjprog along with just trying to program the software but I get a write verify failed. At this point I have run out of things to try.

Parents
  • Hello Mike,

    again, my apologies for the late reply.

    I’m actually a little surprised that you are not able to reprogram your board, because that should work anyway.

    One thing you could try though is to reduce the clock speed and run the recover command again.

     -c  --clockspeed <speed>    Sets the debugger SWD clock speed in kHz                                                                     │
                                 resolution for the operation. The valid clockspeed                                                           │
                                 arguments go from 125 kHz to 50000 kHz. If given                                                             │
                                 clockspeed is above the maxiumum clockspeed                                                                  │
                                 supported by the emulator, its maximum will be                                                               │
                                 used instead. If --clockspeed option is not given,                                                           │
                                 the default is taken from nrfjprog.ini. Must be                                                              │
                                 combined with another command.  

    I hope this will help you!

    Regards,

    Markus

Reply
  • Hello Mike,

    again, my apologies for the late reply.

    I’m actually a little surprised that you are not able to reprogram your board, because that should work anyway.

    One thing you could try though is to reduce the clock speed and run the recover command again.

     -c  --clockspeed <speed>    Sets the debugger SWD clock speed in kHz                                                                     │
                                 resolution for the operation. The valid clockspeed                                                           │
                                 arguments go from 125 kHz to 50000 kHz. If given                                                             │
                                 clockspeed is above the maxiumum clockspeed                                                                  │
                                 supported by the emulator, its maximum will be                                                               │
                                 used instead. If --clockspeed option is not given,                                                           │
                                 the default is taken from nrfjprog.ini. Must be                                                              │
                                 combined with another command.  

    I hope this will help you!

    Regards,

    Markus

Children
No Data
Related