SDK 3.X.X and west flashing with nrfutil and nrfjprog

Hello,

I am puzzled. I am using the nrf52840-dk. In SDK 3.X the board specification board.cmake changed. Now nrfutil is at the first place:
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)

In SDK version 2.9 it was:
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)

And now the default in the runners.yaml is nrfutil. The problem is nrfutil isnt found:
FATAL ERROR: required program nrfutil not found; install it or add its location to PATH

So which version from nrfutil is now used? The python version is deprecated and the one to download (www.nordicsemi.com/.../nRF-Util) is also an old version. Should it be in the toolchain? But where?

When I type manually west flash --runner nrfjprog or west flash --runner jlink it works. But only west flash raises the error.

Regards
Markus

Parents
  • Ok, I think a get it a little bit. But for installation process its still a little bit confusing.
    Actually this nrfutil tool seems to be right. Its Version v8.0 (Version number is not standing at the download page): 
    https://www.nordicsemi.com/Products/Development-tools/nRF-Util

    In Windows I had to download it, place it in a folder and than manually adding it to the PATH-variable. Afterwards I had manually to run the command:
    nrfutil install device

    So a folder .nrfutil in my user directory is created. And then I could use it in VS Code with the button Flash without an error message. 

    Is this really the way it should be? 
    So at all:
    -install Segger Software
    -install nrf Tools
    -install nrf Connect for Desktop
    -install VS Code
    -install VS Code Extension for nrf Connect
    -install toolchain 3.0.2
    -install SDK 3.0.2
    -download nrf util and place it in a place which is included in the PATH variable
    -execute nrfutil install device

    Afterwards the blinky example did work. Is this really the right way? Looks like getting more complicated. Or did I something wrong?

    Regards
    Markus 

Reply
  • Ok, I think a get it a little bit. But for installation process its still a little bit confusing.
    Actually this nrfutil tool seems to be right. Its Version v8.0 (Version number is not standing at the download page): 
    https://www.nordicsemi.com/Products/Development-tools/nRF-Util

    In Windows I had to download it, place it in a folder and than manually adding it to the PATH-variable. Afterwards I had manually to run the command:
    nrfutil install device

    So a folder .nrfutil in my user directory is created. And then I could use it in VS Code with the button Flash without an error message. 

    Is this really the way it should be? 
    So at all:
    -install Segger Software
    -install nrf Tools
    -install nrf Connect for Desktop
    -install VS Code
    -install VS Code Extension for nrf Connect
    -install toolchain 3.0.2
    -install SDK 3.0.2
    -download nrf util and place it in a place which is included in the PATH variable
    -execute nrfutil install device

    Afterwards the blinky example did work. Is this really the right way? Looks like getting more complicated. Or did I something wrong?

    Regards
    Markus 

Children
No Data
Related