<?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>non initialized RAM variable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24555/non-initialized-ram-variable</link><description>Hi, 
 Currently I&amp;#39;m working on nRF52 with SDK11 and SoftDevice S132.
Till now I&amp;#39;ve worked with IAR and my code was based on the &amp;quot;ble_app_uart&amp;quot; and the dfu &amp;quot;bootloader&amp;quot; examples.
Everything was working fine with IAR and I could also able to send FOTA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Aug 2017 12:17:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24555/non-initialized-ram-variable" /><item><title>RE: non initialized RAM variable</title><link>https://devzone.nordicsemi.com/thread/96663?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 12:17:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62553c53-e45d-45fd-bd75-228c8dd97611</guid><dc:creator>Arik_S</dc:creator><description>&lt;p&gt;Hello Martin and thank you for your comment, unfortunately no progress at all :(&lt;/p&gt;
&lt;p&gt;I did tried to defined the non init section in both linker files with no success, but perhaps I should try this again.
My application linker file is like that:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x64000
  RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0xdf80
}

SECTIONS
{
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM
} INSERT AFTER .data;

INCLUDE &amp;quot;nrf5x_common.ld&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So since the RAM section is ended in 0x20010000, the non init section should start from there.
But when I do the necessary changes in the bootloader linker file (non init section start from 0x20010000) the bootloader is not working at all, not advertising.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Question: If I have multiple non init variables defined both in the application and in the bootloader, how they will get the same absolute address? should they defined static or not?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: non initialized RAM variable</title><link>https://devzone.nordicsemi.com/thread/96664?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 10:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0945b120-fb31-454f-9469-bd8aa2ddac5d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi, Have you made any progress?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The RAM section should be defined in both linker files. Did you try it already?&lt;/li&gt;
&lt;li&gt;I&amp;#39;m pretty sure that is the correct way of doing it.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>