<?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>status of SRAM during an over the air update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34395/status-of-sram-during-an-over-the-air-update</link><description>The project I am working on stores information in SRAM while it waits for the radio to get in range and transmit data. 
 I want to know if I can put items in SRAM buffer that will remain there during an over the air firmware update. 
 I will not change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 May 2018 22:51:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34395/status-of-sram-during-an-over-the-air-update" /><item><title>RE: status of SRAM during an over the air update</title><link>https://devzone.nordicsemi.com/thread/132842?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 22:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63396bd5-053a-47c7-8604-9b15a9d4c635</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: status of SRAM during an over the air update</title><link>https://devzone.nordicsemi.com/thread/132658?ContentTypeID=1</link><pubDate>Tue, 22 May 2018 07:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf72d4a1-d506-485e-bd23-7cc4617db8b5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can use the __attribute__ keyword in your code to place a variable in the non_init section:&lt;/p&gt;
&lt;p&gt;static uint8_t data[SIZE] __attribute__((section(&amp;quot;.non_init&amp;quot;)));&lt;/p&gt;
&lt;p&gt;Then you need to edit the flash_placement.xml (located in same directory as project file) to ensure the .no_init section is placed in an area of RAM that is not already used by the bootloader or application:&lt;/p&gt;
&lt;p&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.non_init&amp;quot; &lt;strong&gt;start=&amp;quot;START_ADDRESS&amp;quot; size=&amp;quot;SIZE&lt;/strong&gt;&amp;quot;/&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: status of SRAM during an over the air update</title><link>https://devzone.nordicsemi.com/thread/132538?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 23:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fafe2c4-8a16-4cf1-8b3a-f62f1ed469ec</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;I am using the Segger Embedded Studio on the nRF52840 development board&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: status of SRAM during an over the air update</title><link>https://devzone.nordicsemi.com/thread/132475?ContentTypeID=1</link><pubDate>Fri, 18 May 2018 09:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a4297f-bc71-48ae-9f36-c3a3dba83f93</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The DFU process involves system resets (soft), but&amp;nbsp;this does&amp;nbsp;not reset RAM (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17_7#unique_832471788"&gt;reset behavior&lt;/a&gt;).&amp;nbsp;It is in other words possible to retain the data through DFU given that the data is kept in a non-initialized section of the RAM.&amp;nbsp;&amp;nbsp;This will require changes in the linker configuration for both application and bootloader. I can provide instructions on how to declare a non-initialized&amp;nbsp; RAM section if needed, just need to know which toolchain you are using.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>