Unable to Flash Blinky Sketch

Using Visual Studio Code as IDE with installed nrf SDK v2.9.0 on MacOS Sequoia 15.2

Terminal reads - 

* Executing task: nRF Connect: Build: blinky/blinky (active)

Building blinky
west build --build-dir /Users/<UserID>/nrfworkspace/blinky/build_1/blinky /Users/<UserID>/nrfworkspace/blinky

ninja: no work to do.
* Terminal will be reused by tasks, press any key to close it.

* Executing task: nRF Connect: Flash: blinky/blinky (active)

Flashing blinky to Blooper
west flash -d /Users/<UserID>/nrfworkspace/blinky/build_1/blinky --skip-rebuild --dev-id XXXXXXXX --erase

-- west flash: using runner nrfutil
-- runners.nrfutil: mass erase requested
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: /Users/<UserID>/nrfworkspace/blinky/build_1/merged.hex
Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
Try 'nrfutil --help' for help.

Error: no such option: --json
-- runners.nrfutil: Board with serial number XXXXXXXX flashed successfully.
* Terminal will be reused by tasks, press any key to close it.

How to get around this ?

Parents
  • I realised that I had a wrong version of nrfutil and needed to upgrade to the latest. I downloaded the file from here - NRF Util

    I followed the instruction on the page to also download commands such as 'nrf5sdk-tools' and 'device'.

    The version of pyYaml also needed upgrading to get 'west' working again.

    I needed another problem fixing in the meantime as I also had a version of nrfjprog which had some permission issue and could only be operated by sudo. I downgraded the utility to 10.24.0.  With this also handled all the boards can now be flashed normally. 

Reply
  • I realised that I had a wrong version of nrfutil and needed to upgrade to the latest. I downloaded the file from here - NRF Util

    I followed the instruction on the page to also download commands such as 'nrf5sdk-tools' and 'device'.

    The version of pyYaml also needed upgrading to get 'west' working again.

    I needed another problem fixing in the meantime as I also had a version of nrfjprog which had some permission issue and could only be operated by sudo. I downgraded the utility to 10.24.0.  With this also handled all the boards can now be flashed normally. 

Children
Related