<?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 to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25654/how-to-pass-bootloader-version-from-bootloader-to-main-application</link><description>Hi all, 
 I&amp;#39;d like to pass bootloader version (2bytes) from bootloader_util_reset function (bootloader) to the main of application. can help me to acheive that? 
 Thank you for your help in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Jul 2019 10:19:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25654/how-to-pass-bootloader-version-from-bootloader-to-main-application" /><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/199629?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2019 10:19:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d0cf70-fb1e-4387-a7c6-01dbdbaa001a</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;I think it is better to link in both project a&amp;nbsp;dedicated section in RAM that will be shared by app and bootloader&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/199628?ContentTypeID=1</link><pubDate>Sun, 21 Jul 2019 09:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83d6a6c-895a-4302-aeb0-26006b690303</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I also want to pass information from my bootloader to my application. Since i know i cannot use UICR register i wanted to use these retention registers. But they are also used to pass information from app to the DFU (to start a DFU update for example). Is it safe enough to use it as you proposed ? Isn&amp;#39;t there another solution to pass the bootloader version to my main application ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Aur&amp;eacute;lien&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/101080?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 09:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32162602-24e5-43d9-87a0-a29f8ab0e510</guid><dc:creator>Juba Belgaid</dc:creator><description>&lt;p&gt;hi shibshab , thank you for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/101079?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 06:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162679dd-c559-44c2-8baf-e1bd2cba0318</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;You could use the retention registers, each of which is one byte.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#import &amp;quot;nrf_power.h&amp;quot;
...
NRF_POWER-&amp;gt;GPREGRET  = bootloader_version &amp;amp;&amp;amp; 0xff;
NRF_POWER-&amp;gt;GPREGRET2 =bootloader_version &amp;gt;&amp;gt; 8 &amp;amp;&amp;amp; 0xff; 
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;These are retained when performing a standard soft reset &lt;code&gt;NVIC_SystemReset&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/101077?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 13:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4586592-5020-49dd-b615-6625ea8ab400</guid><dc:creator>Juba Belgaid</dc:creator><description>&lt;p&gt;Custom bootloader (inspired from bootloader legacy sdk 9).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/101076?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 12:21:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5c4186-7ae3-4d3a-a50b-a98759f8a73b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Which bootloader version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to pass bootloader version from bootloader to main application</title><link>https://devzone.nordicsemi.com/thread/101078?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 13:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572b76dc-2257-462e-b664-938f527aaa3b</guid><dc:creator>Juba Belgaid</dc:creator><description>&lt;p&gt;I&amp;#39;d like to passe bootloder version as argument for main function (int main(int argc, char *argv[])&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>