<?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>dfu checking bootloader version/revision?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6956/dfu-checking-bootloader-version-revision</link><description>Hi, 
 In SD100v8, there is capability of checking the application version, to make sure no downgrade (or any other criteria required). The reference is in Link to SDK 
 However, I think this safe checking cannot be applied to a bootloader upgrade, as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 May 2015 11:53:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6956/dfu-checking-bootloader-version-revision" /><item><title>RE: dfu checking bootloader version/revision?</title><link>https://devzone.nordicsemi.com/thread/24526?ContentTypeID=1</link><pubDate>Wed, 20 May 2015 11:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:515d6cf6-9e1a-4aad-940f-bae9cf0ba94e</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks for the comments!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu checking bootloader version/revision?</title><link>https://devzone.nordicsemi.com/thread/24525?ContentTypeID=1</link><pubDate>Tue, 12 May 2015 11:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42ba280d-7e1e-4756-8f34-b5b8a68c61ec</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Just a comment, as Øyvind pointed, there is no bootloader version field on the initdata, so no information for the current bootloader to detect which version the new bootloader is coming.&lt;/p&gt;
&lt;p&gt;The reason for that is that we want to do it on the  master side and before we send the image.
There is a DFU revision characteristic in the DFU service. The DFU master should read this characteristic to detect which version of the bootloader is on the target.
The DFU master or the maker of .zip image file should take care of the match between softdevice and bootloader.&lt;/p&gt;
&lt;p&gt;As far as I know there are following revision:
0x0001: DFU Application (the DFU service embedded in application to start the bootloader)
0x0005: Bootloader in SDK v7.x
0x0006: Bootloader in SDK v8.x&lt;/p&gt;
&lt;p&gt;The bootloader in SDK earlier than SDK v7.x doesn&amp;#39;t have this revision characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu checking bootloader version/revision?</title><link>https://devzone.nordicsemi.com/thread/24524?ContentTypeID=1</link><pubDate>Fri, 08 May 2015 09:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63874c26-b752-4cb4-8dfb-02642583728b</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;While it is true that the bootloader version field is missing, note that the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00369.html"&gt;dfu_init_packet_t&lt;/a&gt; uses a very generous 32bits for the app_version. You could for example use the first 16bits in app_version for the bootloader version, and the last 16 for the actual application version.&lt;/p&gt;
&lt;p&gt;Unfortunately there is currently no template example for checking the application version.&lt;/p&gt;
&lt;p&gt;Hopefully this answers your question,&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>