nrfutil No such option: --json

hi,

i am trying test the software tool (nrfutil) log option, but some errors are appearcing.

the nrfutil.exe was download at nordic official website, and i install the nrf5sdk-tools by command line. And then i add the path to system's PATH on Windows 10.

when i test dfu serial upgrade process, it is successful.

nrfutil execute dfu serial

But when i try open the logger in order to gain code debug information, some information was prompted that is "No such option: --json".

nrfutil error information

when i execute separately two sentence, no error information was appearced, and no more log information were record at the file( only two line). The log path is .C:\<user>\.nrfutil\logs

log information

so, could you tell me what's wrong with me? I can't find any blog to resolve this problem.

Best wishes for you

Parents
  • Hi, 

    You can check the command supported by nrfutil nrf5sdk-tools with this command: 

    >nrfutil nrf5sdk-tools --help
    Usage: pc_nrfutil_legacy_v6.1.7.exe [OPTIONS] COMMAND [ARGS]...
    
    Options:
      -v, --verbose            Increase verbosity of output. Can be specified more
                               than once (up to -v -v -v -v).  [x>=0]
      -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.

    It seems that passing -o filename should make it log to the file. I haven't tested logs with nrfutil dfu serial, so I am not sure what gets logged there.

    If you want to debug serial DFU, you should use the bootloader with debug version like pca10040_uart_debug to get the log instead of the log from nrfutil.  

    Regards,
    Amanda H.

Reply
  • Hi, 

    You can check the command supported by nrfutil nrf5sdk-tools with this command: 

    >nrfutil nrf5sdk-tools --help
    Usage: pc_nrfutil_legacy_v6.1.7.exe [OPTIONS] COMMAND [ARGS]...
    
    Options:
      -v, --verbose            Increase verbosity of output. Can be specified more
                               than once (up to -v -v -v -v).  [x>=0]
      -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.

    It seems that passing -o filename should make it log to the file. I haven't tested logs with nrfutil dfu serial, so I am not sure what gets logged there.

    If you want to debug serial DFU, you should use the bootloader with debug version like pca10040_uart_debug to get the log instead of the log from nrfutil.  

    Regards,
    Amanda H.

Children
Related