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

MCUBoot serial download support

I was trying to make sense of the serial support in mcuboot, but it uses a protocol and format I don't recognize.  I expect they're generated by the Apache Newt tools, since that's where mcuboot is originally from.

Is there an example anywhere showing how to use a serial recovery bootloader with NRF/Zephyr applications?

  • Hi,

    Is there an example anywhere showing how to use a serial recovery bootloader with NRF/Zephyr applications?

    Yes, the sample in ~/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr

    You need to set CONFIG_MCUMGR_SMP_UART=y,

    # Allow for large Bluetooth data packets.
    #CONFIG_BT_L2CAP_TX_MTU=260
    #CONFIG_BT_RX_BUF_LEN=260
    
    # Enable the Bluetooth and shell mcumgr transports.
    #CONFIG_MCUMGR_SMP_BT=y
    #CONFIG_MCUMGR_SMP_SHELL=y
    
    #Enable the Uart mcumgr transports.
    CONFIG_MCUMGR_SMP_UART=y
    
    

    Might also need to set CONFIG_NET_BUF=y

    Build and flash mcuboot, then build and flash the smp_svr(sign the image with imgtool.py)

Related