nRFutil download

I want to download the nrfutil program so that I can program the nrf52480dongle from the command line. I attempted to download it from one place on your website but it would not open.

I may already have it somewhere but your tool chain is so complicated I can't find it.

Regards,

Jerry

  • I was able to find and install nrfuti. however I cannot get it to work..

    Under Ubuntu I attempted to program my nrf52840 dongle with the follow command:

    "$ nrfutil dfu usb-serial --package zephyr.hex --port /dev/ttyACM0
    Traceback (most recent call last):
      File "nordicsemi/__main__.py", line 1555, in <module>
      File "click/core.py", line 1137, in __call__
      File "click/core.py", line 1062, in main
      File "click/core.py", line 1668, in invoke
      File "click/core.py", line 1668, in invoke
      File "click/core.py", line 1404, in invoke
      File "click/core.py", line 763, in invoke
      File "nordicsemi/__main__.py", line 1032, in usb_serial
      File "nordicsemi/__main__.py", line 982, in do_serial
      File "nordicsemi/dfu/dfu.py", line 69, in __init__
      File "nordicsemi/dfu/package.py", line 664, in unpack_package
      File "zipfile.py", line 1267, in __init__
      File "zipfile.py", line 1334, in _RealGetContents
    zipfile.BadZipFile: File is not a zip file
    [5799] Failed to execute script '__main__' due to unhandled exception!

    The zephyr.hex file was created by a west build command; a file command returns:

    file zephyr.hex
    zephyr.hex: ASCII text, with CRLF line terminators

    Regards,

    Jerry

  • I solved the above but now have the following:

    nrfutil pkg generate --hw-version 52 --sd-req=0x00 \
            --application zephyr.hex \
            --application-version 1 blinky.zip

    |===============================================================|
    |##      ##    ###    ########  ##    ## #### ##    ##  ######  |
    |##  ##  ##   ## ##   ##     ## ###   ##  ##  ###   ## ##    ## |
    |##  ##  ##  ##   ##  ##     ## ####  ##  ##  ####  ## ##       |
    |##  ##  ## ##     ## ########  ## ## ##  ##  ## ## ## ##   ####|
    |##  ##  ## ######### ##   ##   ##  ####  ##  ##  #### ##    ## |
    |##  ##  ## ##     ## ##    ##  ##   ###  ##  ##   ### ##    ## |
    | ###  ###  ##     ## ##     ## ##    ## #### ##    ##  ######  |
    |===============================================================|
    |You are not providing a signature key, which means the DFU     |
    |files will not be signed, and are vulnerable to tampering.     |
    |This is only compatible with a signature-less bootloader and is|
    |not suitable for production environments.                      |
    |===============================================================|

    Zip created at blinky.zip
    jerry@JerrysDesktopUbuntu:~/zephyrproject/zephyr/build/zephyr$ nrfutil dfu usb-serial -pkg blinky.zip -p /dev/ttyACM0
      [------------------------------------]    0%
    Traceback (most recent call last):
      File "serial/serialposix.py", line 322, in open
    PermissionError: [Errno 13] Permission denied: '/dev/ttyACM0'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "nordicsemi/dfu/dfu_transport_serial.py", line 198, in open
      File "serial/serialutil.py", line 244, in __init__
      File "serial/serialposix.py", line 325, in open
    serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "nordicsemi/__main__.py", line 1555, in <module>
      File "click/core.py", line 1137, in __call__
      File "click/core.py", line 1062, in main
      File "click/core.py", line 1668, in invoke
      File "click/core.py", line 1668, in invoke
      File "click/core.py", line 1404, in invoke
      File "click/core.py", line 763, in invoke
      File "nordicsemi/__main__.py", line 1032, in usb_serial
      File "nordicsemi/__main__.py", line 988, in do_serial
      File "nordicsemi/dfu/dfu.py", line 127, in dfu_send_images
      File "nordicsemi/dfu/dfu.py", line 88, in _dfu_send_image
      File "nordicsemi/dfu/dfu_transport_serial.py", line 202, in open
    pc_ble_driver_py.exceptions.NordicSemiException: Serial port could not be opened on /dev/ttyACM0. Reason: could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
    [6355] Failed to execute script '__main__' due to unhandled exception!
    jerry@JerrysDesktopUbuntu:~/zephyrproject/zephyr/build/zephyr$

    I just need a way to program the dongle from the command line (Ubuntu) if there is another solution I would be happy with that.

    Regards,

    Jerry

  • Well, never mind, I was able to muddle my way through this; no need tto respond.

    Regards,

    Jerry

Related