<?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>Zephyr retention module not working; can&amp;#39;t read back</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116300/zephyr-retention-module-not-working-can-t-read-back</link><description>Hi, 
 I&amp;#39;m troubling using the retention module of Zephyr with NCS 2.6.1 on an NRF52840. I&amp;#39;ve read the Retention System Documentation of Zephyr but it is not working for me. Here is what I&amp;#39;ve done: 
 I&amp;#39;ve enabled in proj.conf: 
 
 CONFIG_RETENTION =y </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 14:28:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116300/zephyr-retention-module-not-working-can-t-read-back" /><item><title>RE: Zephyr retention module not working; can't read back</title><link>https://devzone.nordicsemi.com/thread/510135?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 14:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91c68a45-a3b2-4bce-bdc1-ca5c21a4ac7f</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;Thanks for the examples. I&amp;#39;ve altered the device tree to this and now it&amp;#39;s working:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	sram@2003FC00 {
		compatible = &amp;quot;zephyr,memory-region&amp;quot;, &amp;quot;mmio-sram&amp;quot;;
		reg = &amp;lt;0x2003FC00 DT_SIZE_K(1)&amp;gt;;
		zephyr,memory-region = &amp;quot;RetainedMem&amp;quot;;
		status = &amp;quot;okay&amp;quot;;

		retention0: retainedmem {
			compatible = &amp;quot;zephyr,retained-ram&amp;quot;;
			status = &amp;quot;okay&amp;quot;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;ve removed the address-cells and size-cells and also the reg which apparently gives the size of the subarea and it works. I don&amp;#39;t know why the other device tree overflay was not working, maybe it only works with 2 or more sections and one section may not be divided into one subarea like i did.&lt;/p&gt;
&lt;p&gt;Anyway, thanks.&lt;/p&gt;
&lt;p&gt;Phobios&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr retention module not working; can't read back</title><link>https://devzone.nordicsemi.com/thread/510117?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 13:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cffe65f6-09c8-4c41-806e-10660d0008cf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please look at this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/a70d6bd9660a3450f264d1d7017828196a964b3f/tests/drivers/retained_mem"&gt;retained_mem&lt;/a&gt;&amp;nbsp;sample and the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/a70d6bd9660a3450f264d1d7017828196a964b3f/tests/drivers/retained_mem/api/boards"&gt;boards&lt;/a&gt;&amp;nbsp;configs &amp;amp; overlay.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>