<?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>Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111701/encrypted-fw-update-with-mcuboot-fails</link><description>Hello, 
 I&amp;#39;m having trouble making encrypted FW update with MCUboot work in NCS 2.5.0. There are no issues with update of signed but not encrypted FW. But when encrypted FW is uploaded, it gets rejected. It turned out that after uploading encrypted FW</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jun 2025 22:48:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111701/encrypted-fw-update-with-mcuboot-fails" /><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/538916?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 22:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f1d751-abaf-4dde-ab6a-72833cfce108</guid><dc:creator>sn0wst0rm</dc:creator><description>&lt;p&gt;Hello, &lt;br /&gt;&lt;br /&gt;I am trying to update my device with an encrypted firmware, using dual stage bootloader configuration. I think that my problem is the same as the one described by OP, but I don&amp;#39;t understand if there&amp;#39;s actually a way to perform encrypted updates or not. If I try to send the update image via mcumgr, and then reboot the device, MCUBoot never starts the swap process but neither logs any error. If I try to use the only signed version of the update everything works as expected.&lt;br /&gt;&lt;br /&gt;Is there any way around this, since encrypted image support is also stated in official ncs sdk documentation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/507361?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 12:35:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635fbbaf-9a2a-4c8e-aa93-d773345be38b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The statement I made in the linked thread is still true: &amp;quot;Encrypted DFU is feature we do not officially support in our SDK, even though it is made available through the mcuboot project.&amp;quot; But as demonstrated by the sample I provided in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/115570/using-mcuboot-with-nrf5340"&gt;Using MCUBoot with nRF5340&lt;/a&gt;&amp;nbsp;it is possible to enable encrypted dfu if you configure the bootloader for simultaneously DFU of app and netcore.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/507358?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 12:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff829fd-b2c2-484e-920a-5e8289b05118</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Is this still the case?&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.99-cs2/page/mcuboot/encrypted_images.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.99-cs2/page/mcuboot/encrypted_images.html&lt;/a&gt;&amp;nbsp;somehow suggests, that there should be support. Albei, it does not document, how to enable it to get encrypted images as a build target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/486852?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:199a3759-15d9-40f1-a3cf-e7263b54a44a</guid><dc:creator>dairup</dc:creator><description>&lt;p&gt;Thank you for quick reply. Missed that comment somehow...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/486838?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 09:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:832e3e39-b360-474a-96f1-bc7e4b75e853</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That explains it. The reset vector check is an addition in our MCUBoot fork to help determine where the update image belongs:&lt;/p&gt;
&lt;div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; /* Patch needed for NCS. Since image 0 (the app) and image 1 (the other&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; * B1 slot S0 or S1) share the same secondary slot, we need to check&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; * whether the update candidate in the secondary slot is intended for&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; * image 0 or image 1 primary by looking at the address of the reset&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; * vector. Note that there are good reasons for not using img_num from&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; * the swap info.&lt;/span&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;&lt;span&gt; */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The problem is that&amp;nbsp;this patch does not take encryption into account. This would have worked if you had not included the b0 bootloader with the additional s0 and s1 slots.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/486834?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 09:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964bb1e3-50df-4ecf-a88e-af4902a73d28</guid><dc:creator>dairup</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/111701/encrypted-fw-update-with-mcuboot-fails/486831"]Are you using the MCUBoot as the 2nd stage bootloader in your application?[/quote]
&lt;p&gt;Yes I am.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted FW update with MCUboot fails.</title><link>https://devzone.nordicsemi.com/thread/486831?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 09:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eea306b-1dfe-43fc-b652-473eee4d789f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t officially support encrypted DFU in our SDK (&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91331/nrf52840-ncs-mcuboot-cc310-enabled-image-encryption/383355"&gt;RE: nRF52840 + NCS + MCUBoot, CC310-enabled image encryption?&lt;/a&gt;&amp;nbsp;), so we don&amp;#39;t have any test coverage for it either. Are you using the MCUBoot as the 2nd stage bootloader in your application?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>