<?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>Does the MCUMGR have a foolproof feature?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112854/does-the-mcumgr-have-a-foolproof-feature</link><description>I am learning how to use MCUMGR. I generally understand it, but I have some concerns. 
 - The firmware with the private key can also be overwritten. Then it will not boot. (By the way, we call this a paperweight.) 
 - It is possible to write even if the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jul 2024 08:14:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112854/does-the-mcumgr-have-a-foolproof-feature" /><item><title>RE: Does the MCUMGR have a foolproof feature?</title><link>https://devzone.nordicsemi.com/thread/493075?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 08:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a89b57-bb85-494b-a991-7da12a74ead1</guid><dc:creator>Yoshihiro Goto</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My apologize, I was confusing recovery mode from mcuboot and DFU over USB.&amp;nbsp;I was overwriting firmware in recovery mode.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I followed the instructions on the above page to perform a USB DFU and was able to upload to slot 1.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Yoshihiro Goto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the MCUMGR have a foolproof feature?</title><link>https://devzone.nordicsemi.com/thread/493025?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 16:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb19520-d702-4f37-85a8-7c42bb5fa3ce</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The bootloader will skip the invalid image and boot the valid image in the other slot&lt;/span&gt; if using the&amp;nbsp;&lt;span&gt;dual-slot&lt;/span&gt;&amp;nbsp;configuration. If using the recovery mode with the single-slot configuration, you could upload&amp;nbsp;&lt;span&gt;the correct image again.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]-&amp;nbsp;I don&amp;#39;t know how to write to slot 1. Adding -n1 options doesn&amp;#39;t work.[/quote]
&lt;p&gt;&lt;span&gt;Which sample are you using? Are you using external flash?&amp;nbsp;&lt;/span&gt;Could you post the command you are using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#direct_image_upload_and_image_mapping_to_mcuboot_slot"&gt;doc&lt;/a&gt; said:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The mcumgr&amp;nbsp;&lt;code&gt;&lt;span&gt;image&lt;/span&gt;&amp;nbsp;&lt;span&gt;upload&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command may be provided optional&amp;nbsp;&lt;code&gt;&lt;span&gt;-e&lt;/span&gt;&amp;nbsp;&lt;span&gt;-n&lt;/span&gt;&amp;nbsp;&lt;span&gt;&amp;lt;image&amp;gt;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;parameter that will select target image for upload; when parameter is no provided, 0 is assumed, which means “default behaviour”, and it performs upload to the “image-1”, the MCUboot secondary slot.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Try to upload without&amp;nbsp;&lt;code&gt;&lt;span&gt;-e&lt;/span&gt;&amp;nbsp;&lt;span&gt;-n&lt;/span&gt;&amp;nbsp;&lt;span&gt;&amp;lt;image&amp;gt;&lt;/span&gt;&lt;/code&gt;&amp;nbsp;parameter to see if it can work or not.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>