<?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[ENV III Causes CoreS3 to restart.]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: M5Stack">@<bdi>M5Stack</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/iamliubo" aria-label="Profile: IAMLIUBO">@<bdi>IAMLIUBO</bdi></a> <img src="/assets/uploads/files/1685261423413-screenshot-2023-05-28-at-09.10.07-resized.png" alt="0_1685261428869_Screenshot 2023-05-28 at 09.10.07.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The shown examples causes the Core S3 to restart every time its "Run" from UIFLow2</p>
]]></description><link>https://community.m5stack.com/topic/5343/env-iii-causes-cores3-to-restart</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:45:58 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5343.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 May 2023 08:11:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Tue, 17 Dec 2024 01:49:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/romor001" aria-label="Profile: romor001">@<bdi>romor001</bdi></a><br />
Have you update your UiFlow firmware to the newest version?</p>
]]></description><link>https://community.m5stack.com/post/27485</link><guid isPermaLink="true">https://community.m5stack.com/post/27485</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Tue, 17 Dec 2024 01:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Sun, 15 Dec 2024 10:42:43 GMT]]></title><description><![CDATA[<p dir="auto">I have the same issue with the env III unit and m5paper.</p>
<p dir="auto">I do not have the time and energy to start patching libraries and modules.</p>
<p dir="auto">The built in SHT30 of the m5paper is not supported by UIFlow 2 and the external unit does not work as well.</p>
<p dir="auto">This is a bummer.</p>
<p dir="auto">Hoping m5stack will fix this and update the module/library.<br />
Is there any issue tracker where we can document and queue this for fixing?</p>
]]></description><link>https://community.m5stack.com/post/27475</link><guid isPermaLink="true">https://community.m5stack.com/post/27475</guid><dc:creator><![CDATA[romor001]]></dc:creator><pubDate>Sun, 15 Dec 2024 10:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Tue, 19 Sep 2023 16:39:01 GMT]]></title><description><![CDATA[<p dir="auto">If you are desperate to get it running, I have forked the <a href="https://github.com/gandro/micropython-m5stamp-c3u" target="_blank" rel="noopener noreferrer nofollow ugc">micropython-m5stamp-c3u</a> library and removed the QMP6988 reset().</p>
<p dir="auto">Unfortunately I have not found a way to override the built-in libraries, so it needs some code blocks in UiFlow...</p>
<p dir="auto">First install the libraries:</p>
<pre><code class="language-python">import mip
mip.install("https://raw.githubusercontent.com/AmedeeBulle/micropython-m5stamp-c3u/main/lib/sht30.py", target="/flash/libs")
mip.install("https://raw.githubusercontent.com/AmedeeBulle/micropython-m5stamp-c3u/main/lib/checksum.py", target="/flash/libs")
mip.install("https://raw.githubusercontent.com/AmedeeBulle/micropython-m5stamp-c3u/main/lib/qmp6988.py", target="/flash/libs")
</code></pre>
<p dir="auto">Once done you can query both sensors -- e.g:</p>
<p dir="auto"><img src="/assets/uploads/files/1695141053642-screenshot-2023-09-19-at-18.24.06-resized.png" alt="0_1695141051212_Screenshot 2023-09-19 at 18.24.06.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">There are basically 3 code blocks:</p>
<p dir="auto">Import libraries:</p>
<pre><code class="language-python">import sht30
import qmp6988
</code></pre>
<p dir="auto">Initialize sensors:</p>
<pre><code class="language-python">sht = sht30.SHT30(i2c0)
qmp = qmp6988.QMP6988(i2c0)
</code></pre>
<p dir="auto">Get data:</p>
<pre><code class="language-python">temperature, pressure = qmp.measure()
pressure = pressure / 100
temperature2, humidity = sht.measure()
</code></pre>
<p dir="auto">Note that in the above example, my ENV-III is plugged in the Port B, if you use Port A, adjust SCL/SDA accordingly!</p>
]]></description><link>https://community.m5stack.com/post/22262</link><guid isPermaLink="true">https://community.m5stack.com/post/22262</guid><dc:creator><![CDATA[Amedee]]></dc:creator><pubDate>Tue, 19 Sep 2023 16:39:01 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Tue, 19 Sep 2023 08:06:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amedee" aria-label="Profile: amedee">@<bdi>amedee</bdi></a> I think you are right. I think that fix has already been pushed, and the exception is on the readfrom_mem() now, like you say.</p>
<p dir="auto">It seems like the same approach would work for that line as well.</p>
]]></description><link>https://community.m5stack.com/post/22259</link><guid isPermaLink="true">https://community.m5stack.com/post/22259</guid><dc:creator><![CDATA[mtylerjr]]></dc:creator><pubDate>Tue, 19 Sep 2023 08:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Mon, 18 Sep 2023 19:07:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mtylerjr" aria-label="Profile: mtylerjr">@<bdi>mtylerjr</bdi></a> I am not so sure about that...</p>
<p dir="auto">Even with that change, the module will reset at <a href="https://github.com/gandro/micropython-m5stamp-c3u/blob/main/lib/qmp6988.py#L174" target="_blank" rel="noopener noreferrer nofollow ugc">this line</a>...</p>
<p dir="auto">What works for me is to bypass the reset(), after that I get correct temperature/pressure; but once you reset, the next  <code>readfrom_mem()</code> will reset the MCU</p>
]]></description><link>https://community.m5stack.com/post/22256</link><guid isPermaLink="true">https://community.m5stack.com/post/22256</guid><dc:creator><![CDATA[Amedee]]></dc:creator><pubDate>Mon, 18 Sep 2023 19:07:10 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Sun, 17 Sep 2023 06:50:58 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></p>
<p dir="auto">When I add the ENVIII unit to my CoreS3 on port A, and start it, I get the exception at line 98 of <a href="http://qmp6988.py" target="_blank" rel="noopener noreferrer nofollow ugc">qmp6988.py</a> (the call of reset() )</p>
<p dir="auto"><img src="/assets/uploads/files/1694933423330-718d4a1d-c795-4781-a6c1-f91479da1434-image-resized.png" alt="0_1694933407426_718d4a1d-c795-4781-a6c1-f91479da1434-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The issue seems to have been noticed and fixed 8 months ago though, by some guy named Gandro:</p>
<p dir="auto"><a href="https://github.com/gandro/micropython-m5stamp-c3u/commit/fe3ddc3d0c09cca4096dcfc37bbbf57e7b4a1271" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/gandro/micropython-m5stamp-c3u/commit/fe3ddc3d0c09cca4096dcfc37bbbf57e7b4a1271</a></p>
<p dir="auto">It was (seemingly) caused by the QMP6988 chip in the ENVIII resetting in the middle of an I2c transaction during a requested reset (from line 97 of drivers/qmp6988.py), and the driver file not handling the timeout exception causing the exception/crash.</p>
<p dir="auto"><img src="/assets/uploads/files/1694932495822-919af751-40ab-4af5-9fce-7e3ce72bbbf8-image-resized.png" alt="0_1694932494144_919af751-40ab-4af5-9fce-7e3ce72bbbf8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The fix was to just put a try/except around the transaction in reset(), and if the timeout is generated, ignore/handle it.</p>
<p dir="auto"><img src="/assets/uploads/files/1694932527987-9855c7fb-ab8f-4ddf-a6d9-ff1c01d040f8-image-resized.png" alt="0_1694932524877_9855c7fb-ab8f-4ddf-a6d9-ff1c01d040f8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I found this with 5 minutes of googling. Not sure why M5Stack hasnt fixed it yet for all products that use the QMP6988</p>
]]></description><link>https://community.m5stack.com/post/22243</link><guid isPermaLink="true">https://community.m5stack.com/post/22243</guid><dc:creator><![CDATA[mtylerjr]]></dc:creator><pubDate>Sun, 17 Sep 2023 06:50:58 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Fri, 15 Sep 2023 09:03:55 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> Ok thanks.</p>
<p dir="auto">FYI and anyone else that would like to get the ENV III data on CoreS3, I managed to get it working using I2C directly.</p>
<p dir="auto">Here is the code to go in your loop assuming I2C has been initialised as the default i2c0 variable:</p>
<p dir="auto">i2c0.writeto(68, '\x2C\x06', True)<br />
time.sleep_ms(100)<br />
data = i2c0.readfrom(68, 6, True)</p>
<p dir="auto">temp = (((data[0] &lt;&lt; 8 |  data[1]) * 175) / 0xFFFF) - 45<br />
hum = (((data[3] &lt;&lt; 8 | data[4]) * 100.0) / 0xFFFF)</p>
<p dir="auto">I then output this Temperature (C) and Humidity (%) formatted using (assuming you've initialised label fields already):</p>
<p dir="auto">label_t.setText(f'{temp:#.1f}C ')<br />
label_h.setText(f'{hum:#.0f}%')</p>
]]></description><link>https://community.m5stack.com/post/22235</link><guid isPermaLink="true">https://community.m5stack.com/post/22235</guid><dc:creator><![CDATA[cdouglas845]]></dc:creator><pubDate>Fri, 15 Sep 2023 09:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Thu, 14 Sep 2023 05:38:18 GMT]]></title><description><![CDATA[<p dir="auto">A workaround is to use Core or Core2 with Env III and UI Flow<br />
No problem</p>
]]></description><link>https://community.m5stack.com/post/22224</link><guid isPermaLink="true">https://community.m5stack.com/post/22224</guid><dc:creator><![CDATA[csierra67]]></dc:creator><pubDate>Thu, 14 Sep 2023 05:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Wed, 13 Sep 2023 08:49:15 GMT]]></title><description><![CDATA[<p dir="auto">I’ve reported it to M5STACK and they are looking into it</p>
]]></description><link>https://community.m5stack.com/post/22223</link><guid isPermaLink="true">https://community.m5stack.com/post/22223</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 13 Sep 2023 08:49:15 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Tue, 12 Sep 2023 18:46:46 GMT]]></title><description><![CDATA[<p dir="auto">I have exactly the same issue.  The ENV call from the unit library to initialise it causes the reboot:</p>
<p dir="auto">env3_0 = ENV(i2c=i2c0, type=3)</p>
<p dir="auto">I can remove that, then do a scan on i2c0 and fetch the addresses of the sensors: [68, 112]</p>
<p dir="auto">I can then interface with I2C directly to read from the correct address and pull data from the buffer.  That proves the ENV3 is connected correctly and that I2C isn't broken.</p>
<p dir="auto">It looks like a library issue for ENV3 I guess?</p>
<p dir="auto">I've also tried sending a command on I2C to the sensor to initiate a temperature measurement (writing 0x2C06) however I must be doing something wrong there as it then fails to allow me to read from the device any more and I have to hard reset it before I can continue.</p>
]]></description><link>https://community.m5stack.com/post/22216</link><guid isPermaLink="true">https://community.m5stack.com/post/22216</guid><dc:creator><![CDATA[cdouglas845]]></dc:creator><pubDate>Tue, 12 Sep 2023 18:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Mon, 11 Sep 2023 15:43:21 GMT]]></title><description><![CDATA[<p dir="auto">Anybody got this working?</p>
<p dir="auto">I am facing the same issue.</p>
<p dir="auto">I tried to use Port B instead or port A, but the behavior is exactly the same: the device reboots when <code>init</code> is invoked...</p>
]]></description><link>https://community.m5stack.com/post/22214</link><guid isPermaLink="true">https://community.m5stack.com/post/22214</guid><dc:creator><![CDATA[Amedee]]></dc:creator><pubDate>Mon, 11 Sep 2023 15:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Sun, 28 May 2023 16:17:12 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> said in <a href="/post/21022">ENV III Causes CoreS3 to restart.</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">have you tied with the <code>Init buit-in hardware at beginning</code> block a the top of setup? (Or without it?)</p>
<p dir="auto">Thanks<br />
Felix</p>
</blockquote>
<p dir="auto">That's strange, why did the block end up at the bottom.<br />
That would make sense it being at the top.</p>
<p dir="auto">EDIT: nope still crashes when querying the sensor.</p>
]]></description><link>https://community.m5stack.com/post/21023</link><guid isPermaLink="true">https://community.m5stack.com/post/21023</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 28 May 2023 16:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Sun, 28 May 2023 16:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">have you tied with the <code>Init buit-in hardware at beginning</code> block a the top of setup? (Or without it?)</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/21022</link><guid isPermaLink="true">https://community.m5stack.com/post/21022</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 28 May 2023 16:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to ENV III Causes CoreS3 to restart. on Sun, 28 May 2023 11:58:21 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> I don't have an ENV III but no problem with the ENV II</p>
<p dir="auto"><img src="/assets/uploads/files/1685275050795-envii-coress3-resized.jpg" alt="0_1685275056061_ENVII-CoresS3.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/21020</link><guid isPermaLink="true">https://community.m5stack.com/post/21020</guid><dc:creator><![CDATA[UKTechguy]]></dc:creator><pubDate>Sun, 28 May 2023 11:58:21 GMT</pubDate></item></channel></rss>