This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to use mcumgr DFU over serial from ubuntu

Hi all,
I tried the Serial DFU sample with NRF52840-DK board in ubuntu

The project build and run.

When I use mcumgr the command work but was non possible to me upload a new image.

The mcumgr echo work:

mcumgr --conntype serial --connstring "/dev/ttyACM0,baud=115200" echo hello
hello

The mcumgr image list work:

mcumgr --conntype serial --connstring "/dev/ttyACM0,baud=115200" image list
Images:
image=0 slot=0
version: 0.0.0
bootable: true
flags: active confirmed
hash: ed709b43573bd8ab480672e00fb40dfa4d93da3e4aa849bc194a6e2c3a35f2a9
Split status: N/A (0)

The mcumgr image upload stall at 0%:

mcumgr --conntype serial --connstring "/dev/ttyACM0,baud=115200" image upload -e app_update.bin
0 B / 109.28 KiB [------------------------------------------------------------------------------------------] 0.00%

Parents Reply
  • Hi

    Which version of nRF Connect SDK are you using?

    When you communicate using the the USB connector to the debugges (J2), the serial data has to go via the debugger.
    This could cause errors due to delays.
    To avoid this, try to use the USB connector which goes directly to the nRF instead, marked nRF USB (J3).
    For using the nRF USB you need to build the SMP Server sample with the following configurations:

    west build -p -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG="overlay-cdc.conf overlay-fs.conf" -DDTC_OVERLAY_FILE="usb.overlay"

    (First program the board (west flash) from J2, then reconnect to J3 before using DFU (mcumgr))

    Regards,
    Sigurd Hellesvik

Children
Related