<?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[Core INK freezes after a couple of minutes]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I am very new to this, so sorry if my question might be a bit too obvious.<br />
I have made a CO2 monitor on UIFLOW using CORE Ink and a CO2 module. it shows the data on the screen and also I used REMOTE+ to read the data on my phone.<br />
Everything works well for around 5 minutes and then Core INK freezes. I have no idea why.<br />
Can you please help me diagnose this?<img src="/assets/uploads/files/1672412564168-screenshot-2022-12-30-155652-resized.png" alt="0_1672412560299_Screenshot 2022-12-30 155652.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/4944/core-ink-freezes-after-a-couple-of-minutes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 05 May 2026 18:32:47 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4944.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Dec 2022 15:03:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Tue, 10 Jan 2023 21:06:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Yes I removed the loop because I wanted to add the restart option at the end of the code to use the low power mode basically.<br />
So now, it restarts, reads and sends the data, and goes to sleep.</p>
]]></description><link>https://community.m5stack.com/post/19818</link><guid isPermaLink="true">https://community.m5stack.com/post/19818</guid><dc:creator><![CDATA[Navidard]]></dc:creator><pubDate>Tue, 10 Jan 2023 21:06:38 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Tue, 10 Jan 2023 19:33:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/navidard" aria-label="Profile: navidard">@<bdi>navidard</bdi></a> said in <a href="/post/19797">Core INK freezes after a couple of minutes</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Hello, so after fiddling with it yesterday, I understood the same thing still happens. it works for longer periods, but then stops responding again and dies. This is the sketch I am using now:<img src="/assets/uploads/files/1673345366051-screenshot-2023-01-10-110905-resized.png" alt="0_1673345363895_Screenshot 2023-01-10 110905.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">The GC block needs to be inside the If&gt;do loop.<br />
I'm not sure if its a bug as gc.collect() is supposed to run continuously but Inside a loop it forces a reset of gc.collect()<br />
Try putting an execute code block containing import gc next to start and then gc.collect() at the beginning of the if loop<br />
I don't see a main loop function and so to me the code looks to be running in "One Shot" mode and not repeating.</p>
]]></description><link>https://community.m5stack.com/post/19814</link><guid isPermaLink="true">https://community.m5stack.com/post/19814</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 10 Jan 2023 19:33:31 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Tue, 10 Jan 2023 10:09:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Hello, so after fiddling with it yesterday, I understood the same thing still happens. it works for longer periods, but then stops responding again and dies. This is the sketch I am using now:<img src="/assets/uploads/files/1673345366051-screenshot-2023-01-10-110905-resized.png" alt="0_1673345363895_Screenshot 2023-01-10 110905.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/19797</link><guid isPermaLink="true">https://community.m5stack.com/post/19797</guid><dc:creator><![CDATA[Navidard]]></dc:creator><pubDate>Tue, 10 Jan 2023 10:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Mon, 09 Jan 2023 17:00:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/navidard" aria-label="Profile: navidard">@<bdi>navidard</bdi></a> I went through so much IOT headache before I discovered this. So glad it works.</p>
]]></description><link>https://community.m5stack.com/post/19788</link><guid isPermaLink="true">https://community.m5stack.com/post/19788</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 09 Jan 2023 17:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Mon, 09 Jan 2023 16:19:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/navidard" aria-label="Profile: Navidard">@<bdi>Navidard</bdi></a></p>
<p dir="auto">I assume by restart you mean shutdown and restart. So yes, that is how UIFlow works. When the device restarts UIFlow firmware is started and eventually your code gets executed.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19787</link><guid isPermaLink="true">https://community.m5stack.com/post/19787</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:19:10 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Mon, 09 Jan 2023 14:49:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> Thanks for the advice.<br />
I added a restart after every 120 seconds to save battery, and downloaded the code to the device, but then every time it restarts, it shows the UIflow logo, beeps, etc etc, until it gets to my application page. Do you have any idea why this happens?</p>
]]></description><link>https://community.m5stack.com/post/19785</link><guid isPermaLink="true">https://community.m5stack.com/post/19785</guid><dc:creator><![CDATA[Navidard]]></dc:creator><pubDate>Mon, 09 Jan 2023 14:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Mon, 09 Jan 2023 14:47:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thanks a lot! it seems like it's working for now!</p>
]]></description><link>https://community.m5stack.com/post/19784</link><guid isPermaLink="true">https://community.m5stack.com/post/19784</guid><dc:creator><![CDATA[Navidard]]></dc:creator><pubDate>Mon, 09 Jan 2023 14:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Sat, 07 Jan 2023 19:02:54 GMT]]></title><description><![CDATA[<p dir="auto">Add an execute block to the begging of the program loop and in the block add the following</p>
<pre><code>import gc
gc.collect()
</code></pre>
<p dir="auto">This should force micropython to preform garbage collection freeing up memory.</p>
]]></description><link>https://community.m5stack.com/post/19758</link><guid isPermaLink="true">https://community.m5stack.com/post/19758</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 07 Jan 2023 19:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Sat, 07 Jan 2023 08:49:45 GMT]]></title><description><![CDATA[<p dir="auto">attempt without ezdata <a href="https://essentialsclothing.co/" target="_blank" rel="noopener noreferrer nofollow ugc">-</a> it seems as though it secures after two or three updates.</p>
<p dir="auto">Much obliged</p>
]]></description><link>https://community.m5stack.com/post/19750</link><guid isPermaLink="true">https://community.m5stack.com/post/19750</guid><dc:creator><![CDATA[Red253]]></dc:creator><pubDate>Sat, 07 Jan 2023 08:49:45 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Thu, 05 Jan 2023 18:27:07 GMT]]></title><description><![CDATA[<p dir="auto">It may be memory error, I did have issues running sensors on the controllers filling memory and not clearing the memory.</p>
]]></description><link>https://community.m5stack.com/post/19729</link><guid isPermaLink="true">https://community.m5stack.com/post/19729</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 05 Jan 2023 18:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Thu, 05 Jan 2023 09:34:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/navidard" aria-label="Profile: Navidard">@<bdi>Navidard</bdi></a></p>
<p dir="auto">try without <a href="https://community.m5stack.com/topic/3862/is-ezdata-working-or-not">ezdata</a> - it looks like it locks up after a couple of updates.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19724</link><guid isPermaLink="true">https://community.m5stack.com/post/19724</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 05 Jan 2023 09:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to Core INK freezes after a couple of minutes on Thu, 05 Jan 2023 09:33:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/navidard" aria-label="Profile: Navidard">@<bdi>Navidard</bdi></a></p>
<p dir="auto">try without <a href="https://community.m5stack.com/topic/3862/is-ezdata-working-or-not">ezdata</a> - it looks like it looks up after a couple of updates.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19723</link><guid isPermaLink="true">https://community.m5stack.com/post/19723</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 05 Jan 2023 09:33:42 GMT</pubDate></item></channel></rss>