<?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>Sharing persistent variable-data from application to bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28725/sharing-persistent-variable-data-from-application-to-bootloader</link><description>How do I share variable data from my nRF52 application to the bootloader code? 
 Check the update to this question after first comment by @HungBui 
 There is some short-data which needs to be shared from the application scope to bootloader across a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 14:28:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28725/sharing-persistent-variable-data-from-application-to-bootloader" /><item><title>RE: Sharing persistent variable-data from application to bootloader</title><link>https://devzone.nordicsemi.com/thread/192123?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 14:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a183e337-2d87-4924-ba1b-fbe3d4142bae</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m interested with this topic as well. May I know what is the outcome?&lt;/p&gt;
&lt;p&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: Sharing persistent variable-data from application to bootloader</title><link>https://devzone.nordicsemi.com/thread/192121?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 14:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c39ac9-d7d8-49e7-bbf7-0b6a75e7ca2c</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m interested in similar topics. May I know what is the outcome?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sharing persistent variable-data from application to bootloader</title><link>https://devzone.nordicsemi.com/thread/113841?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 13:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edc280be-a5f6-46eb-a89d-2eb11091407e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Nik: The documentation you pointed to is for SDK v11 are you sure it matches with your current SDK ?
If you use SDK v14.2 please follow the documentation &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_fstorage.html?cp=4_0_0_3_51"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I assume you are planning to use fstorage inside bootloader ?&lt;/p&gt;
&lt;p&gt;In the bootloader we used fstorage to store the bootloader setting in nrf_dfu_flash.c. You can follow what we do there to create yours.&lt;/p&gt;
&lt;p&gt;Have you tried to use fstorage in a normal application  ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sharing persistent variable-data from application to bootloader</title><link>https://devzone.nordicsemi.com/thread/113840?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 13:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92591439-84b0-435f-a11b-d8321ec66fc9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can use fstorage to access data directly. You can tell the softdevice that you reserve &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_bootloader_dfu_banks.html?cp=4_0_0_3_5_1_2_2#lib_bootloader_dfu_appdata"&gt;a number of page right under the softdevice&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that you can read from memory using direct memory access&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t data=*(uint32_t *) address;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>