<?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>Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116078/confirmation-question-can-mcuboot-be-made-an-immutable-bootloader-in-the-nrf52840-ic</link><description>Hi, 
 
 I am reading through different Nordic documentation. In some documentation, it shows a first stage B0 Nordic bootloader. This bootloader then can point to MCUboot as the Second Stage Bootloader. 
 
 
 
 On the other hand, I see documentation indicating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Nov 2024 07:53:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116078/confirmation-question-can-mcuboot-be-made-an-immutable-bootloader-in-the-nrf52840-ic" /><item><title>RE: Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/thread/509603?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 07:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93471053-bc6d-4c98-bf92-610d1a54bdcd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp;Lock action should be performed as early as possible, either in NSIB or MCUBoot depending on which first stage bootloader is used. HW AP-protect should be enabled as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/thread/509550?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 17:48:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad1ff7d-f72f-453b-82f4-de8358a2a6cd</guid><dc:creator>Canadian_EE</dc:creator><description>&lt;p&gt;Is this correct: &amp;quot;NRF_SECURE_APPROTECT_LOCK=y&amp;quot; to lock the debug port?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does this get put in the main prj.conf file? Do I also put it in the mcuboot.conf file? Can the lock be applied both during firmware operation and during bootloader operation?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/thread/509193?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 07:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62564bf9-c296-4bac-8902-8cbf1413769c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;See&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0-preview1/page/nrf/security/ap_protect.html"&gt;Enabling access port protection mechanism&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/thread/509174?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 19:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e99d587-c92a-4f3e-8333-340869a3f1c3</guid><dc:creator>Canadian_EE</dc:creator><description>&lt;p&gt;Is there a setting to close the debug port? Or would I have to modify the bootloader myself to close the debug port after a new image is written?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confirmation Question: Can MCUboot be made an immutable bootloader in the nRF52840 IC?</title><link>https://devzone.nordicsemi.com/thread/509079?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 10:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6041e0c-7c72-4bd0-8404-3353e56f256f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]1. Can MCUboot be the First Stage Bootloader?[/quote]
&lt;p&gt;Yes, mcuboot will be used as the first stage bootloader as long as you don&amp;#39;t enable the Nordic Secure immutable bootloader (B0).&lt;/p&gt;
[quote user=""]2. Can MCUboot be immutable? Meaning write protected?&amp;nbsp;[/quote]
&lt;p&gt;Yes,&amp;nbsp;write protection&amp;nbsp;is enabled by default (CONFIG_FPOTECT):&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/16a77893d9c6c461f79178b2148159e32949d9ac/boot/zephyr/main.c#L610"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/16a77893d9c6c461f79178b2148159e32949d9ac/boot/zephyr/main.c#L610&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Does Secure MCUboot mean the MCUboot bootloader is immutable? Is Secure Boot == Immutable Bootloader? Or does Secure Boot mean something else?[/quote]
&lt;p&gt;The bootloader must also validate the signature of the next image in the boot chain (in this case, the application image).&amp;nbsp;You can read more about this here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader.html&lt;/a&gt;&lt;/p&gt;
[quote user=""]4. Can image files be encrypted while still maintaining a Secure Immutable MCUboot bootloader? Some sources say that encrypted images are not supported.&amp;nbsp;[/quote]
&lt;p&gt;It is possible to enable encrypted DFU. However, this is a feature we don&amp;#39;t officially support in our SDK. It&amp;#39;s therefore not tested or validated by us. Here are some other threads on this forum that you may find relevant:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/114550/setting-sysbuild-encryption-of-dfu-images"&gt;Setting sysbuild encryption of DFU images&lt;/a&gt;&amp;nbsp;,&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;&amp;nbsp;&lt;/p&gt;
[quote user=""]5. Do I need to modify MCUboot to provide read protection for the firmware?&amp;nbsp;[/quote]
&lt;p&gt;CONFIG_FPROTECT is enabled by default. You can confirm&amp;nbsp;that is enabled&amp;nbsp;by inspecting the generated .config file.&lt;/p&gt;
[quote user=""]6. Can I get (4) and (5) with a single image slot? I don&amp;#39;t want to waste space on a second image slot.&amp;nbsp;[/quote]
&lt;p&gt;Single slot DFU is only possible if you enable serial recovery support in MCUBoot, which allows DFU over UART or USB within the bootloader. Note that encrypted DFU is not supported in serial recovery mode. For FOTA, firmware images must be received while running the main application and therefore requires two slots.&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>