Unable to install MCUMGR using GO

Hi,

I am trying to install mcumgr using the following command on my Laptop which is running Linux Ubuntu 20.04.6 LTS.

"go get github.com/apache/mynewt-mcumgr-cli/mcumgr"

I need this to enable DFU for UART. Below is the error prompt that I am getting:

"package io/fs: unrecognized import path "io/fs" (import path does not begin with hostname)"

I am currently using nRF SDK 2.5.1 and the go version which is running on my laptop is 1.13.8 linux/amd64

Parents Reply Children
  • Hi,

    Thank you for your prompt response. It's reassuring to hear that serial recovery is functioning normally. Our project requirement necessitates exploring DFU over UART to achieve firmware updates for the nRF52840 chip.

    Essentially, we need to update the firmware for the nRF52840 chip from a non-Nordic chipset, with both connected via UART pins. The non-Nordic chip will hold the application binary/hex file, which will then be transferred to the nRF52840 over UART to perform the update.

    To ensure robust functionality, we believe that implementing dual image slots is necessary. Therefore, we aim to integrate this functionality into our existing application.

    Could you please provide insights or guidance on how to achieve this functionality?

    Best Regards,

    Siddharth Singh

  • Hi,

     I am trying to do DFU using dual image slots. According to the steps mentioned in this document I have made the required changes in proj.conf and child image .conf file as shown in the attached image.

    After running mcumgr -c acm0 image list command I can't see the image list log without adjusting th DK in serial recovery mode, it displays Error: NMP Timeout.

    If I bring the DK into serial recovery mode by pressing button 2 while resetting the DK then only it will show the dual image list. As mentioned in the document in step 5.3 the device should display the image list log without entering in Serial recovery mode.

    The document link is mentioned as follows:

    https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/

    Regards,

    Siddharth Singh

  • Hi,

     

    You have both mcuboot recovery over uart enabled, as well as application aware DFU over uart now.

    This is per chapter 5 in the link that you posted, ie. "5. Add DFU over UART to the application." and below.

     

    You are not receiving any response. Is there any log output from your device?

    Kind regards,

    Håkon

Related