<?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>Secure Bootloader Version from App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63205/secure-bootloader-version-from-app</link><description>Hi! Some prerequisite info: 
 
 We are using nrf52840 boards as our peripherals 
 We are using v16.0.0 SDK 
 We are using the s113 SoftDevice, more specifically s113_nrf52_7.0.1_softdevic e. 
 Since our central code is written in .NET Core, we use Windows</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jul 2020 12:37:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63205/secure-bootloader-version-from-app" /><item><title>RE: Secure Bootloader Version from App</title><link>https://devzone.nordicsemi.com/thread/259685?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 12:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e3687bd-4820-449e-b356-2d2735181132</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Very helpful Sigurd! Many Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Version from App</title><link>https://devzone.nordicsemi.com/thread/259659?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 10:16:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47fbf7b5-9510-4250-8ccb-3dd40af37ac7</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Roiger"]Regarding the settings page- is this the settings file that is generated (in my case, using nrfutil) before the first programming of the device?[/quote]
&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;
[quote user="Roiger"]If so, bootloader version is given using a flag there- it wont necessarily be the &amp;quot;true&amp;quot; bootloader version (according to the C code).[/quote]
&lt;p&gt;&amp;nbsp;The settings page - bootloader version field will be updated when you do a DFU.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think you can read the bootloader version from the app itself like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;     nrf_dfu_settings_t my_dfu_settings;
     memcpy(&amp;amp;my_dfu_settings, (uint32_t *)BOOTLOADER_SETTINGS_ADDRESS, sizeof(nrf_dfu_settings_t)); 

     uint32_t my_bootloader_version = my_dfu_settings.bootloader_version;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Version from App</title><link>https://devzone.nordicsemi.com/thread/258790?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 12:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:271b1b1a-3d9b-40d2-83cd-1a5e9245105b</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Regarding the settings page- is this the settings file that is generated (in my case, using nrfutil) before the first programming of the device?&lt;/p&gt;
&lt;p&gt;If so, bootloader version is given using a flag there- it wont necessarily be the &amp;quot;true&amp;quot; bootloader version (according to the C code).&lt;/p&gt;
&lt;p&gt;Many thanks for the quick reply!&lt;/p&gt;
&lt;p&gt;Roi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Bootloader Version from App</title><link>https://devzone.nordicsemi.com/thread/258770?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 09:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77c74765-1d2f-41cf-8919-c2f71e5e8d10</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bootloader version can be fetched from the &lt;strong&gt;&lt;span&gt;&lt;a title="Bootloader Settings page" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html?cp=7_5_0_3_5_0_0#lib_bootloader_settings_page"&gt;Bootloader Settings page&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you are using buttonless DFU you can probably add a custom opp code to the control point characteristic and use that to read the version. &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/group__ble__dfu.html#ga9a25cf6098f4ab162e64bba0c9c8d6a6"&gt;ble_dfu_buttonless_op_code_t&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>