<?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>NRF9160 Persist Ram</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64446/nrf9160-persist-ram</link><description>Hi, 
 I am trying to set up a region of RAM to store variables that persist across soft reboots but am unsure how to do it in this environment. I would normally define a region of RAM in the linker script, and store uninitialised variables in it. How</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2020 08:07:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64446/nrf9160-persist-ram" /><item><title>RE: NRF9160 Persist Ram</title><link>https://devzone.nordicsemi.com/thread/263129?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 08:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87974885-c66d-4c75-9b3f-e7e9a68cd3f3</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;I figured it out, you can use&amp;nbsp;zephyr_linker_sources() to add sections to the linker file.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Persist Ram</title><link>https://devzone.nordicsemi.com/thread/262937?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 09:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd1a2e8-9c96-4d59-8383-ece752d0c321</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You don&amp;#39;t. This is a dynamic range set automatically by the OS.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Persist Ram</title><link>https://devzone.nordicsemi.com/thread/262891?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 06:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870beef0-5727-46ec-bddd-eb7e9b0d7646</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How do you define a specific region in RAM for it though, like you would in a linker script? Is it the partition conf file that needs changing&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thomas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Persist Ram</title><link>https://devzone.nordicsemi.com/thread/262822?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed9c41c1-3de1-4a2c-af01-0d27a6fe1289</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Thomas,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Just did a quick test here in the Hello World sample, and you should be able to do what you are asking.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f0778587c3af4e9e976caa1d10aef499/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And in the prj.conf add the following:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_REBOOT=y&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will count one and reboot, count one, and reboot.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Let me know how that works for your application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>