<?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>How can I get the application version in DFU bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13472/how-can-i-get-the-application-version-in-dfu-bootloader</link><description>Hi, 
 I can use the DFU bootloader via HCI/UART to update the application image. 
 Reference DFU init pakcet . The init packet contains a 4-byte value identifying the version of the application that is being transferred. 
 My questions as below 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 May 2016 01:31:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13472/how-can-i-get-the-application-version-in-dfu-bootloader" /><item><title>RE: How can I get the application version in DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/51407?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 01:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60045225-237e-40e6-b79d-a609a7bcb4ea</guid><dc:creator>Ryan Huang</dc:creator><description>&lt;p&gt;Hi run_ar,
The program detail of nrf51 and my target as link &lt;em&gt;&lt;a href="https://devzone.nordicsemi.com/question/77813/how-can-i-define-central-device-an-application-version/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get the application version in DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/51406?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 13:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad5fe273-b7e7-4525-98d4-bc119b3a7cb4</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;So to clarify, you are using serialization and the application version in question here is that of the serialization code which is running on the nRF51?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get the application version in DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/51405?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 02:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81268c6f-72aa-4686-9fdf-1dcec5feb15b</guid><dc:creator>Ryan Huang</dc:creator><description>&lt;p&gt;Hi run_ar,&lt;/p&gt;
&lt;p&gt;Thanks for your reply!&lt;/p&gt;
&lt;p&gt;A.) But, I don&amp;#39;t know how to obtain the value in application start address + 0x0100. My device is nRF51 serial.&lt;/p&gt;
&lt;p&gt;May I follow as below to define &lt;strong&gt;application start address + 0x0100&lt;/strong&gt; and obtain the &lt;strong&gt;application version&lt;/strong&gt; ?  If yes, how can I write back a new application version into the application start address + 0x0100 ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SD_FWID_GET(baseaddr) ((*((uint32_t *) ((baseaddr) + SD_FWID_OFFSET))) &amp;amp; 0xFFFF)    
SD_FWID_GET(MBR_SIZE));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;B.) I am working on the heart_rate_collector example code of nrf51-ble-driver_linux_0.5.0. So I program my device to &lt;strong&gt;Central&lt;/strong&gt; device. How can I obtain this application version in heart_rate_collector example code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get the application version in DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/51404?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 12:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efa7bafd-12dc-42fa-9c54-f3ec40e0d241</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;A)For application version handling see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_example_init.html?cp=4_0_0_4_2_3_1_3_1_1#dfu_init_app_ver_sec"&gt;here&lt;/a&gt;.&lt;br /&gt;
B) I suggest you use the device information service for this and populate it using the version from an address as suggested in A.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>