<?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>51822  application get address 0x0003FC00 value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48080/51822-application-get-address-0x0003fc00-value</link><description>Hi all; 
 
 I want to know how to get setting file data in application layer , which means I want to know the value in address 0x3FC00. From the web , it is easy in bootloader mode, but it seems that it is not easy in application layer.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2019 06:33:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48080/51822-application-get-address-0x0003fc00-value" /><item><title>RE: 51822  application get address 0x0003FC00 value</title><link>https://devzone.nordicsemi.com/thread/190961?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 06:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a59aec97-e0d8-47fb-b151-a4cd1e5f0225</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Forgot to declare the variable as a pointer. I&amp;#39;ve updated my previous answer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822  application get address 0x0003FC00 value</title><link>https://devzone.nordicsemi.com/thread/190940?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 04:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c05f07-d4ec-4bc3-8291-08ef2f78f574</guid><dc:creator>mdevil39</dc:creator><description>&lt;p&gt;Yes , it is v12.3 , but it compiled error:&lt;/p&gt;
&lt;p&gt;Build target &amp;#39;nrf51422_xxac&amp;#39;&lt;br /&gt;compiling main.c...&lt;br /&gt;..\..\..\main.c(114): warning: #520-D: initialization with &amp;quot;{...}&amp;quot; expected for aggregate object&lt;br /&gt; nrf_dfu_settings_t bootloader_settings = (nrf_dfu_settings_t *) 0x3FC00;&lt;br /&gt;..\..\..\main.c(114): error: #144: a value of type &amp;quot;nrf_dfu_settings_t *&amp;quot; cannot be used to initialize an entity of type &amp;quot;uint32_t&amp;quot;&lt;br /&gt; nrf_dfu_settings_t bootloader_settings = (nrf_dfu_settings_t *) 0x3FC00;&lt;br /&gt;..\..\..\main.c: 1 warning, 1 error&lt;br /&gt;&amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 1 Error(s), 1 Warning(s).&lt;br /&gt;Target not created.&lt;br /&gt;Build Time Elapsed: 00:00:01&lt;/p&gt;
&lt;p&gt;I also try to use like this:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mdfu_settings_buffer&lt;/span&gt;&lt;span&gt;[CODE_PAGE_SIZE] &lt;/span&gt;&lt;span&gt;__attribute__&lt;/span&gt;&lt;span&gt;((&lt;/span&gt;&lt;span&gt;at&lt;/span&gt;&lt;span&gt;(BOOTLOADER_SETTINGS_ADDRESS)))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;__attribute__&lt;/span&gt;&lt;span&gt;((used));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;it compiled error:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;.\_build\nrf51422_xxac.axf: Error: L6982E: AT section main.o(.ARM.__AT_0x0003FC00) with base 0x0003fc00 limit 0x00040000 overlaps address range with AT section nrf_dfu_settings.o(.ARM.__AT_0x0003FC00) with base 0x0003fc00 limit 0x00040000.&lt;br /&gt;Not enough information to list image symbols.&lt;br /&gt;Finished: 1 information, 0 warning and 1 error messages.&lt;br /&gt;&amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 1 Error(s), 0 Warning(s).&lt;br /&gt;Target not created.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822  application get address 0x0003FC00 value</title><link>https://devzone.nordicsemi.com/thread/190780?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 12:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844499d1-cb06-4627-9076-57a40c1e0f60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, you can access the settings page from the application. Which SDK version are you using? If it&amp;#39;s v. 12.3 you can try to do something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include nrf_dfu_types.h

nrf_dfu_settings_t bootloader_settings = (nrf_dfu_settings_t *) 0x3FC00&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&amp;nbsp;&lt;/strong&gt;Forgot to declare bootloader_settings variable as a pointer, sorry. Fixed code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;const nrf_dfu_settings_t * bootloader_settings = (const nrf_dfu_settings_t *) 0x3FC00;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822  application get address 0x0003FC00 value</title><link>https://devzone.nordicsemi.com/thread/190646?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 02:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06317f06-c800-4e2d-b378-791e11456360</guid><dc:creator>mdevil39</dc:creator><description>&lt;p&gt;Maybe I do not tell clearly ,&amp;nbsp; I want to know setting file value in application layer ,including applicaiton version, bootloader version , setting version . Is it possible ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>