<?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>DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6</link><description>Hi, I have issue where the slot 1 image seems stuck. It can not be erased, confirmed, or swapped in the state that it is currently on. When I click erase, the error bad state 6 will show. As per the error code, the source has this definition &amp;quot;The device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Jul 2025 18:06:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6" /><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/541218?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 18:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f976c49-8261-4656-a05e-5b879b3ff3d4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;We suspect the issue is that t&lt;span&gt;he bootloader will ignore an image in the secondary slot if it detects that the image doesn&amp;#39;t correspond to any of the primary slots, leaving the image in a pending state as a result.&lt;/span&gt;&lt;span&gt;&amp;nbsp;The issue is addressed in v2.6.0.&amp;nbsp;&lt;/span&gt;See&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/releases_and_maturity/releases/release-notes-2.6.0.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.0/page/nrf/releases_and_maturity/releases/release-notes-2.6.0.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8154.pastedimage1751473208341v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/541116?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 07:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b83ab9-98de-4f7f-913e-7e8c63facbdf</guid><dc:creator>86s9f5w8</dc:creator><description>[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540887"]It sounds like a known issue that is addressed in v2.6.0.&amp;nbsp;[/quote]
&lt;p&gt;Can you link or describe this issue? On our side, we need to document this to know the full extent. We are currently on 2.4.2.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540887"]Have you already distributed the FW update to your customers, or did you catch this issue during release testing?&amp;nbsp;[/quote]
&lt;p&gt;No, this FW package is not in distribution. This was noticed during DFU testing.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/540887?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 14:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a7c1ed-ab09-482b-8919-67f8e7cdd0b2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It sounds like a known issue that is addressed in v2.6.0.&amp;nbsp;&lt;span&gt;To recover from this, you must physically attach a debugger to the device and erase the secondary partition.&lt;/span&gt;&lt;/p&gt;
[quote user="86s9f5w8"]Not at the moment because this is a production device with no access to JTAG interface.[/quote]
&lt;p&gt;&lt;span&gt;It won&amp;#39;t be able to recover from this without JTAG.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you already distributed the FW update to your customers, or did you catch this issue during release testing?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;nbsp;needs to figure out what caused the update to become stuck in the pending state in the first place&amp;nbsp;to prevent it from happening again on other devices.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/540535?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 06:51:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2adefa8-9068-4401-a530-8a7d5e119d25</guid><dc:creator>86s9f5w8</dc:creator><description>[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540360"]Is the firmware enabled for&amp;nbsp;&lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.2/page/nrf/app_dev/bootloaders_and_dfu/fw_update.html#using_mcuboot"&gt;downgrade protection&lt;/a&gt;?[/quote]
&lt;p&gt;&lt;span&gt;CONFIG_MCUBOOT_DOWNGRADE_PREVENTION is not set.&amp;nbsp;CONFIG_BOOT_UPGRADE_ONLY is not set. We have functionality to downgrade our devices using older firmwares which is why these options are not set. It has been working for 2 years now aswell with thousands of firmware updates.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540360"]Do you update the new firmware with the same partition?[/quote]
&lt;p&gt;Yes, the same yml is used with the partitions specified.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540360"]You can upload a new file built with the same partition of the image in slot 0. If it enables the downgrade protection, also ensure to update the version.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;I have tried this solution but to no luck.&lt;/p&gt;
[quote userid="77782" url="~/f/nordic-q-a/122469/dfu-ota-mcumgr-slot-1-stuck-bad-state-6/540360"]Could you upload the mcuboot log if it&amp;#39;s possible?[/quote]
&lt;p&gt;Not at the moment because this is a production device with no access to JTAG interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/540360?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 14:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3cdc14e-e2a3-4d7b-9bad-b5afbe93a081</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]This firmware image is thoroughly tested in production and has been working for 2 years. The version is stable and supports the SMP server version and implementation same as in the other version on slot 1 and slot 0.[/quote]
&lt;p&gt;Is the firmware enabled for&amp;nbsp;&lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.4.2/page/nrf/app_dev/bootloaders_and_dfu/fw_update.html#using_mcuboot"&gt;downgrade protection&lt;/a&gt;? Do you update the new firmware with the same partition?&lt;/p&gt;
[quote user=""]Can the slot 1 still be recovered in some way?&lt;br /&gt;[/quote]
&lt;p&gt;You can upload a new file built with the same partition of the image in slot 0. If it enables the downgrade protection, also ensure to update the version.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="86s9f5w8"]does confirm and test set some additional flags to check this version which would prevent it from downgrading? [/quote]
&lt;p&gt;No, the mcuboot would check it before swapping.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you upload the mcuboot log if it&amp;#39;s possible?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amada H.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU OTA mcumgr slot 1 stuck (bad state 6)</title><link>https://devzone.nordicsemi.com/thread/540288?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 09:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6c1f5e-dc10-4b38-bbe2-5724c7152ad4</guid><dc:creator>86s9f5w8</dc:creator><description>&lt;p&gt;Here is additional context.&lt;br /&gt;&lt;br /&gt;As per another nrf5340 device the same flags are applied for another image. When I send confirm command the permanent changes to true so I believe this or the reset command is the last command sent to the device before it has got stuck.&lt;br /&gt;&lt;br /&gt;zephyr 28a3fca7da5&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1750754690819v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;first one point to the img_mgmt_erase which reads the info from the specified slot so i believe this fails causing it to check the the slot in secondary slot has flash confirmed or pending.&lt;/p&gt;
&lt;p&gt;reset is not swapping the images either so does this mean the mcuboot is not swapping the images because of version downgrade protection or something. i have downgraded the device many times before so I don&amp;#39;t know why it is issue this time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;does confirm and test set some additional flags to check this version which would prevent it from downgrading? I know that nrf5340 does not support the mcumgr test command because of the multi core nature. Does it mean I can softbrick my device using this confirm and test command?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>