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 ?

  • Hello,

    -- runners.nrfutil: Board with serial number XXXXXXXX flashed successfully.

    This indicates that the board is flashed. Can you let me know if the blinky application is running or not on the DK?

    Error: no such option: --json

    Is the --json option listed when invoking "nrfutil -h" in an nRF Connect terminal? For example, the output I get for nrfutil v7.13.0 from the nRF Connect terminal in VS Code is below.

    PS C:\ncs\v2.9.0> nrfutil -h
    nrfutil 
    
    Usage:
        nrfutil [+MODIFIER] [OPTIONS] [SUBCOMMAND]
    
    Options:
          --log-level <LOG_LEVEL>    Set the maximum log level [env: NRFUTIL_LOG=] [possible values: off, error, warn, info, debug, trace]
          --log-output <LOG_OUTPUT>  Set log output type: --log-output=stdout --log-output=file ... [possible values: file, stdout]
          --json                     Print output in a JSON Lines format
          --json-pretty              Print output as formatted JSON
          --skip-overhead            Skip all message overhead when in JSON output mode, outputting only the data part of "info" messages and ignoring the rest
          --changelog                Print the latest changelog entry
          --changelog-full           Print the full changelog
      -V, --version
          --help-extended            Show comprehensive documentation
          --license                  Show license information for in-built dependencies
          --detect-proxy             Invoke libproxy's 'proxy' utility program to retrieve proxy server info and use it
      -h, --help                     Print help (see more with '--help')
    
    
    Built-in nrfutil commands (see installed commands with `list`):
      help             Show comprehensive documentation
      install          Download and install nrfutil commands
      upgrade          Upgrade nrfutil commands to the latest version
      uninstall        Uninstall nrfutil commands [aliases: remove]
      prepare-offline  Prepare local package and resource repositories for offline installs of nrfutil commands
      search           Search for installable nrfutil commands in the package index
      list             List installed nrfutil commands
      self-upgrade     Upgrades the nrfutil core functionality to the latest version
      config           Interact with the main nrfutil configuration

    To see which version of nrfutil you have installed, run "nrfutil --version".

    Best regards,

    Maria

  • No, it seems the board finished flashing but the hex file is never actually uploaded. It seems to me that something is wrong here - 

     % nrfutil -h
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try 'nrfutil --help' for help.
    
    Error: no such option: -h
    
     % nrfutil --help
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    
    Options:
      -v, --verbose            Increase verbosity of output. Can be specified more
                               than once (up to -v -v -v -v).
    
      -o, --output <filename>  Log output to file
      --help                   Show this message and exit.
    
    Commands:
      dfu       Perform a Device Firmware Update over serial, BLE, Thread, Zigbee
                or ANT transport given a DFU package (zip file).
    
      keys      Generate and display private and public keys.
      pkg       Display or generate a DFU package (zip file).
      settings  Generate and display Bootloader DFU settings.
      version   Display nrfutil version.
      zigbee    Zigbee-related commands and utilities.
      
     % nrfutil --version
    Usage: nrfutil [OPTIONS] COMMAND [ARGS]...
    Try 'nrfutil --help' for help.
    
    Error: no such option: --version
    
     % nrfutil version  
    nrfutil version 5.2.0
    

Related