Programing problem for nrf9160

Hi team,

Please find below logs. While programing this error occurs. please find the logs and do needful. Earlier programing happens now it's not happened. Based on below logs please suggest what is the issue. The voltages are fine.

Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 14 milliseconds with result -21
[error] [ Worker] - Encountered unexpected debug port ID 0, expected 6
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 62: nrfjprog --recover -f NRF91 --snr 960020146

Parents
  • It seems like the chipset is locked and you need to unlock it before programming.
    Install the nrfutil tool then 

    1. Unlocking the Chipset (Device Recovery)

    nrfutil device recover --family nrf91

    2. Programming the Application Core

    nrfutil device program --firmware build/zephyr/merged.hex --options erase=ERASE_ALL

    This worked for me so see if it helps.

Reply
  • It seems like the chipset is locked and you need to unlock it before programming.
    Install the nrfutil tool then 

    1. Unlocking the Chipset (Device Recovery)

    nrfutil device recover --family nrf91

    2. Programming the Application Core

    nrfutil device program --firmware build/zephyr/merged.hex --options erase=ERASE_ALL

    This worked for me so see if it helps.

Children
No Data
Related