Serial Recovery MCUboot

Hi

on any example in nRF Connect SDK, for nRF9160 (but even for other SoC):

- how can I enable Serial Recovery in the software? any config to select? (I guess I need also some other config related to MCUboot as well?)

-how do I select the uart used for serial recover?

- which is the pin used to enter Serial Recovery, and how can I change that? 

- after it enters into serial recovery, I know there can be a output pin to signal this status. How to enable this with config, how to change the pin and what is the behavior (it goes high or low, or what?)

Thanks

BR
LA 

Parents
  • Hi,

    - how can I enable Serial Recovery in the software? any config to select? (I guess I need also some other config related to MCUboot as well?)

    I suggest you take a look at Sigurd's Serial Recovery Samples. They show you most aspects of how to use Serial recovery, both over UART and USB.

    -how do I select the uart used for serial recover?

    That would be with an overlay file, setting the zephyr_console to the interface you want to use. Something like this:

    &uart1 {
    	status = "okay";
    };
    
    / {
    	chosen {
    		zephyr,console = &uart1;
    	};
    };
    

    - which is the pin used to enter Serial Recovery, and how can I change that? 

    See this thread.

    - after it enters into serial recovery, I know there can be a output pin to signal this status. How to enable this with config, how to change the pin and what is the behavior (it goes high or low, or what?)

    In the mentionned sample, CONFIG_MCUBOOT_INDICATION_LED=y is used in the MCUboot configuration. This casues led0 (from the devicetree) to be lit to signal that the device is in MCUboot. To do more changes than change pin (in the device tree) or disable it, you would need to modify the implementation in bootloader/mcuboot/boot/zephyr/main.c to suit your needs.

    Einar

  • basket random said:

    Thanks for sharing the details. Although the information is old, this is what I was looking for.

Reply Children
No Data
Related