<?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>MCUBOOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112576/mcuboot</link><description>For our project we switched over to using DIRECT_XIP mone primarily because of the faster boot time but it automatically enables downgrade protection. For our project we need the ability to downgrade. So is there anyway to have DIRECT_XIP while still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2024 15:15:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112576/mcuboot" /><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/497507?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 15:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6fb566e-6c91-46e6-a472-cbda684687b6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would not recomend this approach, but theoretically you could modfiy the version and security counter in some cases in a semi-safe way&amp;nbsp;by writing to the image trailer without erasing. That would only let you flip bits from 1 to 0.&lt;/p&gt;
&lt;p&gt;But why do you want to do this? If. you really need to downgrade while using downgrade protection, a possibility could be to build another variant of the old firmware with a higher version number. So that it is a higher version seen from the bootloader, but in fact is in other ways identical with the older version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/497055?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 22:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad80bdf1-3e9d-44a1-a648-71adaac4bab1</guid><dc:creator>YveWit</dc:creator><description>&lt;p&gt;Hi Sorry for the late reply, but is it possible to modify the version number of the current image safely to allow downgrading? Creating a fork of the SDK is not really a viable option. If for example we were in the middle of modifying the version and we lost power would that essentially brick the unit as we would have no image with a valid version number a.k.a no bootable image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/492866?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 06:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1ce5b2-7d75-4dd8-a77d-4c7f2b34c305</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;This would mean that you don&amp;#39;t remove all dependencies. The configuration is selected by something else, which you can see in the KConfig documentation:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can modify the KConfigs in the SDK to make a custom fork of the SDK (disclaimer do not do this without knowing what you&amp;#39;re doing) as an experiment to see if you&amp;#39;re able to disable it.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/492821?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 19:17:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b65e03-23cd-4bbf-9f02-59825ac3ad38</guid><dc:creator>YveWit</dc:creator><description>&lt;p&gt;When I set it to n it say that it is still set to y in build. I am not sure it is possible to actually disable it with &lt;span&gt;DIRECT_XIP&lt;/span&gt;:&lt;br /&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/pastedimage1720466221325v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/492278?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 13:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcbc7f87-8edb-4ed1-bdf0-1eab657296f3</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What do you see when you set it to n and remove all dependencies?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/492103?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 14:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62c8964-6c14-46dc-9753-e0ccf677e6cf</guid><dc:creator>YveWit</dc:creator><description>&lt;p&gt;Why Can I not enable&amp;nbsp;&lt;span&gt;&amp;nbsp;DIRECT_XIP and just set&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE to no. Why would that now work exactly?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/492008?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 08:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea2bfc3-81cc-4e48-b377-4d40eebaea1a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;The team says that this should be possible, but that doing so will cause you too loose out of the safetyfeatures that downgrade protection provides. Negating&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;CONFIG_MCUBOOT_BOOTLOADER_NO_DOWNGRADE will also be quite hard due to how it&amp;#39;s implemented.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The recommendation is to make&amp;nbsp;&lt;span dir="ltr"&gt;&lt;a title="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#config_mcuboot_bootloader_mode_direct_xip_with_revert" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT" rel="noopener noreferrer" target="_blank"&gt;CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT&lt;/a&gt;&amp;nbsp;working with removing the selects.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/491972?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 07:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:711c7a89-bc72-40e2-8d60-8e3010946fae</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted, thank you for elaborating.&lt;/p&gt;
&lt;p&gt;Then the answer is unfortunately no, not currently and not without a feature request that will implement a workaround through the configuration or that you create your own custom MCUboot (which is possible) that does not select&amp;nbsp;&lt;span&gt;MCUBOOT_BOOTLOADER_NO_DOWNGRADE when building your project with&amp;nbsp;DIRECT_XIP.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked in internally w.r.t the last option to see if there is any pitfalls that I&amp;#39;ve not considered and I&amp;#39;ll get back to you with an update when I hear back from them&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/491927?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 18:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f161ba5d-c5db-4d83-b5e8-7890cd2e19e3</guid><dc:creator>YveWit</dc:creator><description>&lt;p&gt;We require the use of DIRECT_XIP for the boot speed. Because it does not copy over the secondary slot to the primary slot. As far as I know there is no other option that allows one to run directly from the slot that was updated. It is a requirement for our product to have the ability to update to any version. I just want to know if there is anyway to use DIRECT_XIP but disabling&amp;nbsp; the version checking&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/491738?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 07:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:450bfb0b-6cda-4bf1-a52c-a968426c35b3</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Currently this is not supported as all of the variations of &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT"&gt;CONFIG_BOOT_BUILD_DIRECT_XIP_VARIANT&lt;/a&gt;, i.e &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP"&gt;CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT"&gt;CONFIG_MCUBOOT_BOOTLOADER_MODE_DIRECT_XIP_WITH_REVERT&lt;/a&gt;&amp;nbsp;selects &lt;span&gt;MCUBOOT_BOOTLOADER_NO_DOWNGRADE&amp;nbsp;due it&amp;#39;s not possible to downgrade a running application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you expand a bit upon the motivation for the need of not having downgrade protection while using DIRECT_XIP? Is it an option to investigate the use of non-direct_xip with downgrade protection disabled?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>