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

How to reset NRF52 after readback protection?

Getting ready to go into production with our custom nRF52832 board, we need the board to start running our application immediately after being flashed.  Using:

nrfjprog version: 9.7.2
JLinkARM.dll version: 6.22d

Segger Base J-link programmer

Hex file contains sd132, bootloader, boot settings and application.

The nrfjprog --reset command works just fine, our application starts running and all is good.  But, the --reset command is not allowed after we've enabled read-back protection (--rbp command).

Neither the --pinreset command nor the --debugreset command cause our application to start running.

We do have the nReset pin connected to the programming interface with a 10k pullup, but I'm not seeing any activity on that line at all.

How can I get nrfjprog to reset my board after readback protection has been enabled?

TIA,

Richard

Parents
  • Was pinreset enabled before read-back protection was set?

    For nRF52 devices, only --pinreset or --recover operations are available after --rbp.

     See nrfjprog commands for additional details.

    Cheers

  • Removing some variables by using PCA10040a instead of my custom board and leaving aside the issue of readback protection.

    Test 1:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --debugreset
    result: my application is not running

    Test 2:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --pinreset
    result: my application is not running

    Test 3:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --reset
    result: my application is running

    This suggests that --pinreset nor --debugreset are doing nothing or at least doing something different from --reset. Nrfjprog documentation says for all 3 commands that "The core will run after the operation". I'm not seeing this to be true. Is anyone out there using --pinreset or --debugreset successfully?

Reply
  • Removing some variables by using PCA10040a instead of my custom board and leaving aside the issue of readback protection.

    Test 1:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --debugreset
    result: my application is not running

    Test 2:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --pinreset
    result: my application is not running

    Test 3:
    nrfjprog --chiperase --verify --program myfile.hex
    nrfjprog --reset
    result: my application is running

    This suggests that --pinreset nor --debugreset are doing nothing or at least doing something different from --reset. Nrfjprog documentation says for all 3 commands that "The core will run after the operation". I'm not seeing this to be true. Is anyone out there using --pinreset or --debugreset successfully?

Children
Related