<?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>About DFU version issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59270/about-dfu-version-issue</link><description>I had some questions when using nRF5SDK160098a08e2\examples\dfu\secure_bootloader\pca10056_s140_ble for OTA test. Who can help me answer my question? 
 1. Can I return the FW to the old version using the OTA method? 
 2. What is the maximum version number</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 11:48:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59270/about-dfu-version-issue" /><item><title>RE: About DFU version issue</title><link>https://devzone.nordicsemi.com/thread/241102?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 11:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5656cdd2-ff48-4c31-bd88-6289b472812d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Devin Li"]should the new version be greater than or equal to the old version?[/quote]
&lt;p&gt;&lt;span&gt;The acceptance rules are copy/pasted from&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_0_4_3_1_3_1#lib_bootloader_dfu_init_validation_acceptance_rules"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;Infocenter page.&lt;/span&gt;&amp;nbsp;Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19898/version-numbers-for-secure-dfu/77436#77436"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Devin Li"]2.&amp;nbsp;I mean when I use&amp;nbsp;&amp;quot;application-version INTEGER&amp;quot;, what is the maximum INTEGER?&amp;nbsp;&amp;nbsp;Is 0xFF the maximum?[/quote]
&lt;p&gt;&amp;nbsp;Because&amp;nbsp;&lt;a title="app_version" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/structnrf__dfu__settings__t.html?cp=7_1_6_11_7_0_8_5_1#a800f0555570f8bbec2a7eaa3da3c099e"&gt;app_version&lt;/a&gt;&amp;nbsp;is&amp;nbsp;&lt;span&gt;uint32_t, the maximum INTEGER is 4,294,967,295‬ (0xFFFFFFFF‬)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Devin Li"]3.&amp;nbsp;Can I only get version by way of &amp;quot; nrfutil Settings display &amp;quot; command?[/quote]
&lt;p&gt;&lt;b&gt;Firmware version&lt;/b&gt;: The firmware version refers to either the bootloader version or the application version, depending on the transferred image. The current version numbers are stored in the bootloader settings page. The application version (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/structnrf__dfu__settings__t.html#a800f0555570f8bbec2a7eaa3da3c099e"&gt;nrf_dfu_settings_t::app_version&lt;/a&gt;) and the bootloader version (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/structnrf__dfu__settings__t.html#a3669d435ba72fb0963d4a84bf59dee29"&gt;nrf_dfu_settings_t::bootloader_version&lt;/a&gt;&lt;a title="Creating a firmware package with nrfutil" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1_1#lib_dfu_image"&gt;)&lt;/a&gt;&amp;nbsp;can be retrieved from the global variable.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;Note&lt;/dt&gt;
&lt;dd&gt;Note that the version numbers are erased and zero-initialized when the bootloader image is&lt;span&gt;&amp;nbsp;&lt;/span&gt;programmed. Therefore, after you first program the bootloader, you must generate a bootloader settings page with the current version numbers. See&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html#lib_bootloader_settings_page"&gt;Bootloader Settings page&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_intro.html"&gt;nrfutil documentation&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;for more information.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;See the&amp;nbsp;&lt;a title="Creating a firmware package with nrfutil" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1_1#lib_dfu_image"&gt;Creating a firmware package with nrfutil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DFU version issue</title><link>https://devzone.nordicsemi.com/thread/240767?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 08:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f83d708-0de0-4911-8bf4-8b32dae38538</guid><dc:creator>Devin Li</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply. I would like to know more about it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Do you mean the old version of Softdevice?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a:&amp;nbsp;Not only refers to SD, but also includes application and bootloader. e.g.&amp;nbsp;I want to return application from version 2 to version 1. Because I see that there is a version check in the bootloader program, should the new version be greater than or equal to the old version?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&amp;nbsp;I mean when I use&amp;nbsp;&amp;quot;application-version INTEGER&amp;quot;, what is the maximum INTEGER?&amp;nbsp;&amp;nbsp;Is 0xFF the maximum?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp;Can I only get version by way of &amp;quot; nrfutil Settings display &amp;quot; command?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Devin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About DFU version issue</title><link>https://devzone.nordicsemi.com/thread/240762?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 08:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be59e89f-af7a-4850-9c38-d623d60fa1d3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1.&amp;nbsp;Can I return the FW to the old version using the OTA method?[/quote]
&lt;p&gt;&lt;b&gt;(updated)&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Firmware version:&lt;/b&gt;&lt;span&gt;&amp;nbsp;If the image contains a bootloader, the image is accepted if the new firmware version is greater than (&amp;gt;) the existing version of the bootloader. If the image contains an application, the image is accepted if the new firmware version is greater than or equal to (&amp;gt;=) the existing version of the application. If the image contains a SoftDevice and no SoftDevice is already present, the fw_version is checked against the existing application&amp;#39;s version to determine whether the update can overwrite it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please see&amp;nbsp;&lt;a title="Acceptance rules for versions" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1_2_1#lib_bootloader_dfu_init_validation_acceptance_rules"&gt;Acceptance rules for versions&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]2.&amp;nbsp;&lt;span&gt;What is the maximum version number supported for OTA?&lt;/span&gt;&lt;span&gt;What happens if you reach this number?&lt;/span&gt;[/quote]
&lt;p&gt;You can list the&amp;nbsp;SoftDevice well-known values with &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nRF-Command-Line-Tools&lt;/a&gt;&amp;nbsp;by the following command:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfutil pkg generate --help&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If the latest version of softdevice is not on the list, you can update to the &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nRF-Command-Line-Tools&lt;/a&gt;&amp;nbsp;to the latest version.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]3.&amp;nbsp;Can the application, bootloader, softdevice version number saved in the bootloader settings file be read out by API function?[/quote]
&lt;p&gt;&amp;nbsp;Please see&amp;nbsp;&lt;a title="Generating and displaying bootloader settings" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6"&gt;Generating and displaying bootloader settings&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>