<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Serial Recovery MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95892/serial-recovery-mcuboot</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 12:57:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95892/serial-recovery-mcuboot" /><item><title>RE: Serial Recovery MCUboot</title><link>https://devzone.nordicsemi.com/thread/405837?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 12:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c73061e-d668-4ff3-a6f6-ae331ca42031</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]- 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?)[/quote]
&lt;p&gt;I suggest you take a look at Sigurd&amp;#39;s&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery"&gt;Serial Recovery Samples&lt;/a&gt;. They show you most aspects of how to use Serial recovery, both over UART and USB.&lt;/p&gt;
[quote user=""]-how do I select the uart used for serial recover?[/quote]
&lt;p&gt;That would be with an overlay file,&amp;nbsp;setting the zephyr_console to the interface you want to use. Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
};

/ {
	chosen {
		zephyr,console = &amp;amp;uart1;
	};
};
&lt;/pre&gt;&lt;/p&gt;
[quote user=""]- which is the pin used to enter Serial Recovery, and how can I change that?&amp;nbsp;[/quote]
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/95830/can-not-modify-gpio-number-to-use-to-enter-dfu-mode-with-mcuboot-on-nrf52840dk"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
[quote user=""]- after it enters into serial recovery,&amp;nbsp;I know there can be a output pin to signal this status. How to enable this&amp;nbsp;with config, how to change the pin and what is the behavior&amp;nbsp;(it goes high or low, or what?)[/quote]
&lt;p&gt;In the mentionned sample,&amp;nbsp;CONFIG_MCUBOOT_INDICATION_LED=y is used in the MCUboot configuration. This casues led0 (from the devicetree) to&amp;nbsp;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&amp;nbsp;bootloader/mcuboot/boot/zephyr/main.c to suit your needs.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>