<?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>Firmware version and downgrade protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110492/firmware-version-and-downgrade-protection</link><description>Hi there, 
 
 I&amp;#39;m currently working on the firmware versioning and the downgrade protection for an nRF5340 with NCS 2.6.0. 
 The firmware consists of: 
 
 I currently have a specific prj.conf file for the main application, the McuBoot and the HCI_IPC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Apr 2024 15:14:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110492/firmware-version-and-downgrade-protection" /><item><title>RE: Firmware version and downgrade protection</title><link>https://devzone.nordicsemi.com/thread/480506?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 15:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7af2d92-b8d6-43ef-96b0-7be56608347d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Patrick.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any issues in this description, but the feature should work and I have not seen any other reports of problems with downgrade protection. Can you upload a project you use to test along with exact instructions for each step you take so that I can attempt to reproudce on my end?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware version and downgrade protection</title><link>https://devzone.nordicsemi.com/thread/480216?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 12:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90ab4615-c042-4fea-8bff-a2291c2213e0</guid><dc:creator>SirBuhi</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I defined the application firmware version with the VERSION file to lets say 9.8.7. Built the firmware and flashed it to the nRF5340.&lt;/p&gt;
&lt;p&gt;I then reduced the number of the version to lets say 8.8.7 as well as a change in a blinky timer (for visual testing) and built the firmware. Loaded the app_update.bin to the smartphone and performed a DFU with either the&amp;nbsp;&lt;span&gt;&amp;quot;Device Manager&amp;quot;&amp;nbsp;or &amp;quot;nRF Connect&amp;quot; application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The same test was performed with setting the&amp;nbsp;&lt;/span&gt;&lt;span class="go"&gt;CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION to similar values as described above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;Other settings in the prj.conf were not changed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;Loading the new application with a lower version number and booting from it was possible, without any issue. Same as loading and booting the higher version again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;In regards to the&amp;nbsp;&lt;span&gt;CONFIG_MCUBOOT_HW_DOWNGRADE_PREVENTION_COUNTER_VALUE, do I understand that correctly, that the value defines the version number of the McuBoot?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="go"&gt;&lt;span&gt;Patrick&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Firmware version and downgrade protection</title><link>https://devzone.nordicsemi.com/thread/480201?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 12:16:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81fc55b6-fd0f-4b9f-8efd-9b7324ed569c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Patrick,&lt;/p&gt;
&lt;p&gt;Did you test with different firmware versions by setting the application frirmware version as desribed &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/dfu/dfu_image_versions.html#configuring-image-version-with-mcuboot"&gt;here&lt;/a&gt; and the MCUBoot veersion by adjusting&amp;nbsp;CONFIG_MCUBOOT_HW_DOWNGRADE_PREVENTION_COUNTER_VALUE? And if you do, is it MCUboot downgrade protection that does not seem to work or application downgrade prevention? Can you elaborate on how you test?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>