<?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>Enter MCUboot from firmware (nRF9160)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84518/enter-mcuboot-from-firmware-nrf9160</link><description>Hello, 
 maybe it is a very simple question but I didn&amp;#39;t figured out the answer yet. Is it possible to start MCUboot from the application firmware code (to avoid pressing a certain button while power off/on the device)? I am using NCS connect SDK and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Feb 2022 12:44:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84518/enter-mcuboot-from-firmware-nrf9160" /><item><title>RE: Enter MCUboot from firmware (nRF9160)</title><link>https://devzone.nordicsemi.com/thread/351798?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:44:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f85abf6d-75e2-446d-809a-0fe0abb9de66</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]maybe it is a very simple question but I din&amp;#39;t figured out the answer yet. Is it possible to start MCUboot from the application firmware code (to avoid pressing a certain button while power off/on the device)? I am using NCS connect SDK and on my device runs MCUboot and Zephyr OS. MCBboot works and is tested well (button press while power cycle).[/quote]
&lt;p&gt;The mcuboot serial recovery must include a specific physical routine to enter recovery mode.&lt;/p&gt;
&lt;p&gt;However, if your application has smp_svr registered, you can handle the new image in your application, including test running the new one. See here for detailed information on how to run this sample:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; for nrf9160dk_nrf9160ns, please increase the &amp;quot;CONFIG_HEAP_MEM_POOL_SIZE=2048&amp;quot; to be able to successfully receive the uart payloads.&lt;/p&gt;
[quote user=""]If I trigger a soft reset (SYS_REBOOT(0)) while pressing the button it will not enter MCUboot. Only a real power cycle&amp;nbsp;starts MCUboot. What am I doing wrong or what I have missed?[/quote]
&lt;p&gt;mcuboot will run after a soft-reset, but it will not be directly triggered unless there is an active change pending.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>