<?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>no init in RAM area question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74977/no-init-in-ram-area-question</link><description>Hello. 
 
 I am using nrf51822/SD-130/SDK-12.3 now. 
 In order to preserve values ​​after reset, no init was set in the IRAM area. 
 The setting area is Start: 0x20007B80 / size: 0x480. 
 
 
 
 For testing, NVIC_SystemReset() is executed at regular intervals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 09:51:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74977/no-init-in-ram-area-question" /><item><title>RE: no init in RAM area question</title><link>https://devzone.nordicsemi.com/thread/311390?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 09:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd21b9f-aaa0-40d1-b14c-92a722be8f5e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It looks like you have done it correctly. I suggest that you review the *.map file for the bootloader and application to check if there is anything overlapping with your &amp;quot;no init&amp;quot; section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no init in RAM area question</title><link>https://devzone.nordicsemi.com/thread/311218?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 08:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a231c91b-4ddf-4070-972d-66e2695b3eef</guid><dc:creator>air</dc:creator><description>&lt;p&gt;I attach my ld file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/secure_5F00_dfu_5F00_gcc_5F00_nrf51.ld"&gt;devzone.nordicsemi.com/.../secure_5F00_dfu_5F00_gcc_5F00_nrf51.ld&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no init in RAM area question</title><link>https://devzone.nordicsemi.com/thread/311207?ContentTypeID=1</link><pubDate>Mon, 24 May 2021 06:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e6abd4-201f-4207-8832-06d870b4a14e</guid><dc:creator>air</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;
&lt;p&gt;I want to ask more.&lt;/p&gt;
&lt;p&gt;I made 2 FW ver using 2 RAM address map and tested Case 1 / 2.&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t know why the new bootloader configuration is not reflected in Case 2.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m reviewing and hope your help.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;********************************************************************&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;* FW ver 1 configuration&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;- application&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/memory_5F00_map_5F00_old.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;- bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;  /** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
  /* RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380 */
  RAM (rwx) :  ORIGIN = 0x200025e0, LENGTH = 0x59A0

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA.
   */
  NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;* FW ver 2 configuration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;- application&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/memory_5F00_map_5F00_new.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;- bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;  /** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
  /* RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380 */
  RAM (rwx) :  ORIGIN = 0x200025e0, LENGTH = 0x55A0

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA.
   */
  NOINIT (rwx) :  ORIGIN = 0x20007B80, LENGTH = 0x480&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;********************************************************************&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; * test *&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;* Case 1 : FW ver 2&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Ver 2 writing using nrfutil.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Writing some data to no init RAM area&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Ver 2 DFU&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;No init RAM area has data I wrote before DFU&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Writing some data to no init RAM area&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Soft reset using debugger and nrfutil with power maintained&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;No init RAM area has data I wrote before soft reset&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;* Case 2 : FW Ver 1 -&amp;gt; ver 2&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Ver 1 writing using nrfutil.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Ver 2 DFU&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Writing some data to no init RAM area&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Soft reset using debugger and nrfutil with power maintained&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;No init RAM area has erased&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no init in RAM area question</title><link>https://devzone.nordicsemi.com/thread/309348?ContentTypeID=1</link><pubDate>Wed, 12 May 2021 00:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e00bba44-cfb8-42f7-82db-1c3854839b1a</guid><dc:creator>air</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I modified the area in the *.ld file as below.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I solved it quickly thanks to your advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  /** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
  /* RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380 */
  /* RAM (rwx) :  ORIGIN = 0x200025e0, LENGTH = 0x59A0 ---&amp;gt; old area */
  RAM (rwx) :  ORIGIN = 0x200025e0, LENGTH = 0x55A0

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA.
   */
  /* NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80 --&amp;gt; old area */
  NOINIT (rwx) :  ORIGIN = 0x20007B80, LENGTH = 0x480&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: no init in RAM area question</title><link>https://devzone.nordicsemi.com/thread/309301?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 15:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:171bb889-27c4-45ed-a03d-cf0600a4fe11</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you allocated the same &amp;quot;.no_init&amp;quot; region in both the bootloader and the application, and do you see the same if you only program the Softdevice+application without the bootloader? &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>