<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[deepsleep &amp; memory]]></title><description><![CDATA[<p dir="auto">I've got a gpy program that wakes up pulls a cycle counter out of flash, sends some data on lte, increments the cycle counter by one, writes it back to flash then deepsleeps for 6 minutes, rinse &amp; repeat. Can flash take 240 read-writes/day indefinitely? Is there a better way to do this? I read somewhere that there is some RTC memory preserved during deepsleep, is that accessible in the user space?</p>
<p dir="auto">I don't really understand what RTC memory is for? I have to resync the RTC after each awakening from deepsleep so why does it need memory?</p>
]]></description><link>https://forum.pycom.io/topic/4173/deepsleep-memory</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 20:10:48 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4173.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Jan 2019 06:39:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to deepsleep &amp; memory on Tue, 01 Jan 2019 12:25:35 GMT]]></title><description><![CDATA[<p dir="auto">I've got a gpy program that wakes up pulls a cycle counter out of flash, sends some data on lte, increments the cycle counter by one, writes it back to flash then deepsleeps for 6 minutes, rinse &amp; repeat. Can flash take 240 read-writes/day indefinitely? Is there a better way to do this? I read somewhere that there is some RTC memory preserved during deepsleep, is that accessible in the user space?</p>
<p dir="auto">I don't really understand what RTC memory is for? I have to resync the RTC after each awakening from deepsleep so why does it need memory?</p>
]]></description><link>https://forum.pycom.io/post/24571</link><guid isPermaLink="true">https://forum.pycom.io/post/24571</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Tue, 01 Jan 2019 12:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to deepsleep &amp; memory on Thu, 03 Jan 2019 22:33:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3449">@kjm</a> Tried nvram as an alternative to flash.<br />
write</p>
<pre><code>pycom.nv_set('testlocn', 1234)
</code></pre>
<p dir="auto">read</p>
<pre><code>pycom.nv_get('testlocn')
</code></pre>
<p dir="auto">and clear</p>
<pre><code>pycom.nv_erase('testlocn')
</code></pre>
<p dir="auto">all work. But what happens if a location gets orphaned, say you forget it's name or some errant iterative code writes to a wrong name. Is there a cmd that erases ALL of the nvram? If not is there a way to see all of the contents of nvram, something like pycom.nv_dir()? Otherwise we risk an accumulation of nvram keys that can't be removed because they are unknown.</p>
]]></description><link>https://forum.pycom.io/post/24623</link><guid isPermaLink="true">https://forum.pycom.io/post/24623</guid><dc:creator><![CDATA[kjm]]></dc:creator><pubDate>Thu, 03 Jan 2019 22:33:58 GMT</pubDate></item><item><title><![CDATA[Reply to deepsleep &amp; memory on Fri, 04 Jan 2019 11:44:11 GMT]]></title><description><![CDATA[<p dir="auto">From the <a href="https://docs.pycom.io/firmwareapi/pycom/pycom.html#pycomnvseraseall" target="_blank" rel="noopener noreferrer nofollow">pycom module documentation</a> :<br />
&quot;pycom.nvs_erase_all()<br />
Erase the entire NVRAM memory area.&quot;</p>
<p dir="auto">AFAIK, there is no way to see all of the contents of nvram on ESP32/Pycom boards.</p>
]]></description><link>https://forum.pycom.io/post/24631</link><guid isPermaLink="true">https://forum.pycom.io/post/24631</guid><dc:creator><![CDATA[rcolistete]]></dc:creator><pubDate>Fri, 04 Jan 2019 11:44:11 GMT</pubDate></item></channel></rss>