This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a way to configure nrfutil to show all the bytes transmitted and received?

When using "nrfutil dfu serial" can it be configured to log all the bytes transmitted and all bytes received in a log file or on the console?

A colleague of mine is starting development on the Master side of the DFU protocol and would like to be able to see this information.

Parents Reply Children
  • This is what I get when I try the -vvvv option:

    9:06:33 C:\nordic\nRF5_SDK_15.3.0_59ac345\nRF5SDK153059ac345\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_blinky\pca10056\s140\ses\Output\Release\Exe>nrfutil dfu serial -pkg ble_blinky_app_dfu_package.zip -p COM12 -b 115200 -fc 0 -vvvv
    Usage: nrfutil dfu serial [OPTIONS]
    Try "nrfutil dfu serial --help" for help.

    Error: no such option: -v

  • Hi Douglas, 

    can you try --verbose instead? Which version of nrfutil are you using? There is also a --log option as well.

    Best regards

    Bjørn

  • I apparently have version 5.2.0 but --verbose doesn't work either:

    Even though the help information shows both -v and --verbose as options:

    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.

  • Try adding the -v -v -v -v right after nrfutil, i.e. 

    nrfutil -v -v -v -v dfu serial -pkg dfu_test.zip -p COMx -b 115200

  • That doesn't throw an error, but it also doesn't show the bytes being sent/received:

    10:00:47 C:\nordic\nRF5_SDK_15.3.0_59ac345\nRF5SDK153059ac345\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_blinky\pca10056\s140\ses\Output\Release\Exe>nrfutil -v -v -v -v dfu serial -pkg ble_blinky_app_dfu_package.zip -p COM12 -b 115200 -fc 0
    2019-08-09 10:00:48,194 Using board at serial port: COM12
    2019-08-09 10:00:48,194 Sending Application image.
    2019-08-09 10:00:51,709 Serial: Set Packet Receipt Notification 0
    2019-08-09 10:00:51,709 Sending init packet...
    2019-08-09 10:00:51,709 Serial: Selecting Object: type:1
    2019-08-09 10:00:51,709 Serial: Object selected: max_size:512 offset:0 crc:0
    2019-08-09 10:00:51,723 Serial: Streaming Data: len:141 offset:0 crc:0x00000000
    2019-08-09 10:00:51,927 Sending firmware file...
    2019-08-09 10:00:51,927 Serial: Selecting Object: type:2
    2019-08-09 10:00:51,927 Serial: Object selected: max_size:4096 offset:0 crc:0
    2019-08-09 10:00:52,020 Serial: Streaming Data: len:4096 offset:0 crc:0x00000000
    2019-08-09 10:00:52,516 Serial: Streaming Data: len:4096 offset:4096 crc:0xA0E6B9DD
    2019-08-09 10:00:53,013 Serial: Streaming Data: len:4096 offset:8192 crc:0xC10085B8
    2019-08-09 10:00:53,509 Serial: Streaming Data: len:4096 offset:12288 crc:0x64C25F08
    2019-08-09 10:00:54,003 Serial: Streaming Data: len:4096 offset:16384 crc:0xCB18C2BA
    2019-08-09 10:00:54,486 Serial: Streaming Data: len:1884 offset:20480 crc:0x3F1CF308
    2019-08-09 10:00:54,783 Image sent in 3.07499980927s
    Device programmed.

Related