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

DFU thread Server nrfutil ncp connectivity issue

Hi,

I've been trying any way I can think of to work around an issue "51" returned by nrfjprog executed from nrfutil when trying to run serwer from the steps in tutorial:
https://devzone.nordicsemi.com/nordic/short-range-guides/b/mesh-networks/posts/thread-tutorial-practical-guide-for-device-upgrade-ota

It ends up with:

File "subprocess.py", line 512, in run
subprocess.CalledProcessError: Command '['nrfjprog', '--snr', '683191406', '--verify', '/tmp/_MEI0grNYG/nordicsemi/thread/hex/ncp.hex', '--family', 'NRF52']' returned non-zero exit status 51.


I had tried to program ncp.hex from source package of the same nrfutil version and next I tried to use nrfutil without '--flash_connectivity' but then I get:

2020-12-17 09:48:42,784 Failed to reset NCP. Please flash connectivity firmware.

I tried doing it on Linux and Windows machine. I tried different relese( v5.2.0 ). All gives nothing but errors.

Parents
  • Hi,

    Have you verified that the file (ncp.hex) is present in the path?

    Did you download one of the prebuilt releases? I have only tested with nrfutil installed through pip, and I'm not able to reproduce this issue. I do however see a similar error when the chip is erased (verify failed with exit status 55). If I manually flash the ncp.hex file first, the nrfutil command works as expected, even with --flash_connectivity argument set.

    Best regards,
    Jørgen

  • Hi,

    thank you for your reply.

    Yes, I did all operation with prebuild ncp.hex. I didn't build anything else other than dfu app.

    Can you help me to find error codes for nrfjprog? Finding meaning of '51' error code could help in this case.

    I checked multiple runs on newer 6.1.0 version windows/linux but it didn't work.

    Only working solution is still v5.2.0 on Windows and it is no ideal either: I have to run it twice and when I want to close it, it usually crashes my cmd.exe window.

Reply
  • Hi,

    thank you for your reply.

    Yes, I did all operation with prebuild ncp.hex. I didn't build anything else other than dfu app.

    Can you help me to find error codes for nrfjprog? Finding meaning of '51' error code could help in this case.

    I checked multiple runs on newer 6.1.0 version windows/linux but it didn't work.

    Only working solution is still v5.2.0 on Windows and it is no ideal either: I have to run it twice and when I want to close it, it usually crashes my cmd.exe window.

Children
No Data
Related