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

MCUBoot Serial Recovery Mode with mcumgr

I am trying to build an application that can switch into MCUBoot's serial recovery mode and receive a new firmware image over the serial port.  I'm using NCS 1.7.1 through Visual Studio Code on a 64-bit Windows 10 machine.  I've set up a multi-image build with an MCUBoot child image, and verified that my code stays in MCUBoot when I either hold the button at startup or set the GPREGRET register accordingly (with some extra code added to mcuboot).

I'm just trying to verify that mcumgr can talk to the software at the moment.  By following this guide, I have successfully built an application that mcumgr can talk to over the serial port.  Now I want to have the same result when MCUBoot is running in serial recovery mode.  This command works in my parent application, but not when in MCUBoot (it just times out): 

   mcumgr --conntype serial --connstring "com5,baud=115200" echo hello

I've attached my application and mcuboot config files, as well as my mcuboot dts overlay file. 

5824.mcuboot.confmcuboot_dtc.overlay6013.prj.conf

Parents
  • Hi Brendan, 
    How did you enter MCUBoot recover mode ? I assume you press an hold a button when resetting? 
    I would suggest to set CONFIG_MCUBOOT_INDICATION_LED=y to the mcuboot child image to have an indication that it's running. 
    I found that when in recovery mode even though echo doesn't work the image update or reset function still works. Please try again. 

  • Oh wow, that's true for me too.  Echo doesn't work, but the other mcumgr commands do.  Thanks!

Reply Children
No Data
Related