<?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>mcumgr - device bricked when firmware in Slot 1 got somehow Permanent flag</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65641/mcumgr---device-bricked-when-firmware-in-slot-1-got-somehow-permanent-flag</link><description>Hi, 
 Our devices are getting randomly bricked by updating firmware through mcumgr in Zephyr. It happens on both the nRF91 and nRF52 chips when we run the latest nRF Connect SDK 1.3. The reason is that firmware in Slot 1 is sometimes set Permanent flag</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2020 08:53:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65641/mcumgr---device-bricked-when-firmware-in-slot-1-got-somehow-permanent-flag" /><item><title>RE: mcumgr - device bricked when firmware in Slot 1 got somehow Permanent flag</title><link>https://devzone.nordicsemi.com/thread/268674?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 08:53:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a171cc07-91d9-4a3d-81b1-72b62b786483</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;&lt;span&gt;Great that you manage to reproduce the issue, Lukáš! I&amp;#39;ll await the logs and will do some more testing here aswell.&lt;br /&gt;&lt;br /&gt;Just a note: you are working in the NCS environment, correct? In that case, correctly signed .bin files are available in the build folder of your project. They are located at&amp;nbsp;&lt;strong&gt;&amp;lt;project_root&amp;gt;/build/zephyr/app_update.bin&lt;/strong&gt;. I recommend using this file for DFU.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr - device bricked when firmware in Slot 1 got somehow Permanent flag</title><link>https://devzone.nordicsemi.com/thread/268557?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 13:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:323c0b68-9479-4b33-93eb-3a6f5bd0ca4e</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Carl,&lt;/p&gt;
&lt;p&gt;I think we have figured out the issue as it can now be reproduced. The issue is that since we do a lot of development and testing, sometimes we managed not to sign the firmware with the correct mcuboot certificate. And for some reason, the mcuboot&amp;nbsp;is not invalidating the image in the second slot when it has an incorrect certificate. We don&amp;#39;t have enabled logs for mcuboot, so we cannot really tell what is wrong. But we will try to debug it further and when we have logs, we will post it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr - device bricked when firmware in Slot 1 got somehow Permanent flag</title><link>https://devzone.nordicsemi.com/thread/268543?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 13:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf3151d-37f2-42c2-b757-1ae22ea00306</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi, Lukáš!&lt;br /&gt;&lt;br /&gt;Apologies for the late answer. I&amp;#39;m working on the issue now and have created a similar test setup to yours.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The issue is&amp;nbsp; probably related to the&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.12.0/samples/subsys/mgmt/mcumgr/smp_svr/README.html#reset-remotely"&gt;remote reset functionality&lt;/a&gt;&amp;nbsp;describes in the SMP server sample. Do you have SMP/BLE functionality in the firmware you are flashing over DFU? Note aswell that the slots can be set as &amp;quot;permanent&amp;quot; using the &amp;quot;confirm&amp;quot; operation.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>