nRF5340-DK programming issue

Hi,

We are using nRFProgrammer v2.0.1.

After 'Erase All' for nRF5340-DK and power off-on it.

nRFProgrammer seems hang over there. below is the screen capture.

I seek development zone and found below suggestion. Using below statement to recover the board.

nrfjprog -f NRF53 --recover --coprocessor CP_NETWORK

nrfjprog -f NRF53 --recover

Yes, it works.

Do you have any comment on it? Is this a bug on nRFProgrammer? 

BR,

Charles

  • Hi,

    For the first question, nrfjprog is recommended to be used to recover cores. The normal sequence would be to remove the protection sequentially, first from the network and then from the application core. This is done using nrfjprog --recover --coprocessor CP_NETWORK and nrfjprog --recover --coprocessor CP_APPLICATION.

    For the second question, you could take a look at nrfjprog command options listed on infocenter.nordicsemi.com. For specific operations, you could use nrfjprog like this:

    - protecting    nrfjprog --rbp

    - disabling protection    nrfjprog --recover

    - halting the core    nrfjprog --halt

    - program     nrfjprog --program <hex_file>

    -verify     nrfjrog --verify <hex_file>

    You could then include abovementioned commands in one .bat file.

    Best regards,

    Dejan

  • Hi,

    Let me check with customer first and let you know later.

    BR, Charles

  • Hi, 

        We already try the "nrfjprog --recover" command, it still can't unlock the network core. Below is the screen capture for reference. The NETWORK CORE still under protected.

    Do you have any comment on this issue?

    For above suggestion on production programming, we have below question.

    - protecting    nrfjprog --rbp

    how to project just APPLICATION CORE or NETWORK CORE?

    BR, Charles

  • Hi Charles,

    Issuing the command "nrfjprog -f NRF53 --eraseall --coprocessor CP_NETWORK" produces the same output that can be seen in the log section of the Programmer application, as in your picture. After restarting, type "nrfjprog -f NRF53 --recover --coprocessor CP_NETWORK" and "nrfjprog -f NRF53 --recover --coprocessor CP_APPLICATION" to enable the cores again.

    Regarding nrfjprog --rbp command, there are two options, out of which only one "ALL" can be used in your case. Try typing "nrfjprog --rbp ALL". If the cores are locked, this command will be unsuccessful. Otherwise, it will work fine. Restart the device. After that run "nrfjprog -f NRF53 --recover --coprocessor CP_APPLICATION" to enable cores again.

    In short, use --eraseall on specific core and use --recover to disable readback protection.

    Best regards,

    Dejan

  • Hi,

    Customer already try the commands, below is the screen capture. It cannot fix the problem. We also attached the log for your reference.

    Could you please help on this matter?

    Here is the log.

    BR, Charles

Related