<?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>Invalid Application after SoftDevice DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61508/invalid-application-after-softdevice-dfu</link><description>Hi, 
 
 I am using nRF52840, S140 V7.0.1. 
 I am using Secure Serial Bootloader and able to do DFU of Application. 
 
 Now I am trying to do the same for generating SoftDevice package. 
 Generate SoftDevice DFU package 
 nrfutil pkg generate --hw-version</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 May 2020 08:44:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61508/invalid-application-after-softdevice-dfu" /><item><title>RE: Invalid Application after SoftDevice DFU</title><link>https://devzone.nordicsemi.com/thread/250385?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 08:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21e34d1e-73f7-415c-9cef-ced7d77eb4cf</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thanks a lot for your detailed explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid Application after SoftDevice DFU</title><link>https://devzone.nordicsemi.com/thread/250384?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 08:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074d12d6-dc9d-4510-b58d-9d8cfe74bfb9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Vishnu,&lt;/p&gt;
&lt;p&gt;[quote user="beemavishnu"][/quote]&lt;/p&gt;
&lt;p&gt;1) You mentioned even bootloader to be updated. Can you please confirm. In below link no where it&amp;#39;s mentioned to update bootloader when SoftDevice is updated other than application.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader_dfu_banks.html&amp;amp;cp=6_1_3_5_1_2"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader_dfu_banks.html&amp;amp;cp=6_1_3_5_1_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The exact statement that SoftDevice updates require a update of the bootloader if the bootloader depends on the SoftDevice (which BLE bootloader do) an the SoftDevice API has changed it not found in the documentation as far as I know, though there are statements such as &amp;quot;If the bootloader depends on Softdevice (see Bootloader dependencies) then package that contains Softdevice update may contain the bootloader.&amp;quot; &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_process.html?cp=7_1_3_5_1"&gt;here&lt;/a&gt;. But the fact remains that you cannot update to a SoftDevice which is incompatible with the current bootloader without also updating the bootloader.&lt;/p&gt;
[quote user="beemavishnu"]2) Currently I am using nRF52840, S140 V7.0.1. So do you mean 7 is major version.[/quote]
&lt;p&gt;Yes. And the aim is that all major versions of the SfotDEvice should have the same API. But if you later move to a 8.x.x version this will have a different API, braking compatibility, requiring an update of the bootloader and application as well as the SoftDevice.&lt;/p&gt;
[quote user="beemavishnu"]3) What about other numbers within 7.0.1. Whether they are minor and intermediate.[/quote]
&lt;p&gt;If you have version 7.0.1, then 7 is the major version, 0 is the minor version and 1 is the patch version (Major.Minor.Patch). Major versions typically break API. Minor versions can add new API but not break existing API. Patch versions are typically small fixes with no API differences.&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: Invalid Application after SoftDevice DFU</title><link>https://devzone.nordicsemi.com/thread/250383?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 21:15:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b565160-35cc-4461-bacd-964a681e993a</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) You mentioned even bootloader to be updated. Can you please confirm. In below link no where it&amp;#39;s mentioned to update bootloader when SoftDevice is updated other than application.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader_dfu_banks.html&amp;amp;cp=6_1_3_5_1_2"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader_dfu_banks.html&amp;amp;cp=6_1_3_5_1_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Currently I am using nRF52840, S140 V7.0.1. So do you mean 7 is major version.&lt;/p&gt;
&lt;p&gt;3) What about other numbers within 7.0.1. Whether they are minor and intermediate.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In release note I could not find the details about version number.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid Application after SoftDevice DFU</title><link>https://devzone.nordicsemi.com/thread/250382?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766b4be1-c3c5-4930-9889-9c4d7df24871</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Vishnu,&lt;/p&gt;
[quote user=""]1) Even after invalidating application, whether application will keep running. My application is running even after SoftDevice DFU. Does it mean application is not invalidated.[/quote]
&lt;p&gt;If the SoftDevice is of a different major version, then the SoftDevice and application will not be API compatible, and the application will be invalidated. If the API is compatible, the application will not be invalidated. In this case, it is not invalidated.&lt;/p&gt;
[quote user=""]2) Whether we can&amp;#39;t do application DFU after application getting invalidated.[/quote]
&lt;p&gt;If the application is invalidated the only way to get it running is to upgrade to a new application over DFU&lt;/p&gt;
[quote user=""]3) How about version check. I did not give any version as part of command.[/quote]
&lt;p&gt;Version checking is used for application and bootloader, but not for SoftDevice. There is no option to add version number for the SoftDevice (though it has not been consistent for all SDK versions). This is not needed since the SoftDevice ID is always used.&lt;/p&gt;
[quote user=""]4) Whether the commands I used to generate package and doing SoftDevice DFU are fine. Please let me know if I miss anything.[/quote]
&lt;p&gt;It should be fine. But just remember that if you update to a new major SoftDevice version you are forced to update the bootloader at the same time. For the application, it follows the earlier discussion.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>