nrfjprog consumes 100% CPU power

Hi, I'm programming via SWD nrf51822 chip using nrfjprog with nrf54L15-DK as programmer, with this script (Windows 10  or 11 OS):

ECHO OFF
nrfjprog --recover -f NRF51 > nul 2> nul
nrfjprog --family NRF51 --program some_fw.hex --chiperase --verify 
nrfjprog --rbp ALL --family NRF51  > nul 2> nul
nrfjprog --family NRF51 --reset > nul 2> nul

ECHO End

set /p DUMMY=Hit ENTER to continue...

Sometimes nrfjprog hangs, and in Task Manager I can see, that jlinkarm_nrf_worker process consumes all CPU resources. In such cases I end this process. This helps, but not convenient.

Is it possible to resolve this issue?

Parents Reply Children
  • Thanks, tried nrfutil:

    nrfutil device recover --family nrf51 --traits jlink
    nrfutil device erase --family nrf51 --traits jlink
    nrfutil device program --family nrf51 --traits jlink --firmware fw.hex
    nrfutil device fw-verify --family nrf51 --traits jlink --firmware fw.hex
    nrfutil device protection-set all --family nrf51 --traits jlink 
    nrfutil device reset --family nrf51 --traits jlink


    Works perfectly, hope no problems will occur.

Related