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

Request for "nrfjprog --recover" command explaining document

Hi team,

I have a customer who wants to implement the "nrfjprog --recover" command by using the Chinese copy Jlink. They want us to provide the manual which can explain the sequence of running the "nrfjprog --recover" command. Can we provide such document?

Parents
  • Read the "Debug and trace" chapter in the PS.

    The --recover option basically just writes a "1" into the ERASEALL register on the CTRL-AP. That would be all that is required for the recovery operation.

    It is probably a good idea to reset the device after erasing, so the code will most likely read the ERASEALLSTATUS register in order to wait for the operation, and then issue a reset via RESET register.

    All mentioned registers are only accessible by a debugger via SWD and the CTRL-AP. Note that there are miniumum (and maximum) requirements for SWDCLK.

Reply
  • Read the "Debug and trace" chapter in the PS.

    The --recover option basically just writes a "1" into the ERASEALL register on the CTRL-AP. That would be all that is required for the recovery operation.

    It is probably a good idea to reset the device after erasing, so the code will most likely read the ERASEALLSTATUS register in order to wait for the operation, and then issue a reset via RESET register.

    All mentioned registers are only accessible by a debugger via SWD and the CTRL-AP. Note that there are miniumum (and maximum) requirements for SWDCLK.

Children
Related