<?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[ENVIII causes Core Basic to crash and restart continuously.]]></title><description><![CDATA[<p dir="auto">Arduino IDE 2.2.1<br />
ESP32 board   def. ver. 2.0.13<br />
M5Stack board def. ver. 2.0.7<br />
M5Stack library ver 0.4.5<br />
M5_ENV ver. 0.0.8<br />
All recently updated.<br />
Sketch is the example from the Github repository:<br />
Unit_ENVIII_M5Core.ino<br />
When I comment out this:</p>
<pre><code>/*
    if (sht30.get() == 0) {  // Obtain the data of shT30.  获取sht30的数据
        tmp = sht30.cTemp;   // Store the temperature obtained from shT30.
                             // 将sht30获取到的温度存储
        hum = sht30.humidity;  // Store the humidity obtained from the SHT30.
                               // 将sht30获取到的湿度存储
    } else {
        tmp = 0, hum = 0;
    }
    */
</code></pre>
<p dir="auto">it does not crash, but of course it does not display the temperature!<br />
So...it points to the "sht30.get()" function.</p>
<p dir="auto">When I replace it with inline code:<br />
(and declare this: unsigned int data[6];)<br />
Wire.beginTransmission(0x44);  //0x44 for M5Stack ENV  (0x45 is DFRobot)<br />
Wire.write(0x2C);              //show all the "wheels and gears"<br />
Wire.write(0x06);<br />
Wire.endTransmission();<br />
delay(50);<br />
Wire.requestFrom(0x44, 6);<br />
data[0] = Wire.read();<br />
data[1] = Wire.read();<br />
data[2] = Wire.read();<br />
data[3] = Wire.read();<br />
data[4] = Wire.read();<br />
data[5] = Wire.read();<br />
tmp = ((((data[0] * 256.0) + data[1]) * 175) / 65535.0) - 45;<br />
hum = ((((data[3] * 256.0) + data[4]) * 100) / 65535.0);</p>
<p dir="auto">The sensor works!</p>
]]></description><link>https://community.m5stack.com/topic/5645/enviii-causes-core-basic-to-crash-and-restart-continuously</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:21:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5645.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Sep 2023 20:43:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ENVIII causes Core Basic to crash and restart continuously. on Wed, 01 Nov 2023 10:24:02 GMT]]></title><description><![CDATA[<p dir="auto">Same as?<br />
<a href="https://forum.m5stack.com/topic/5692/stickc-envii-hat-or-enviii-unit-reboots-constantly/3" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.m5stack.com/topic/5692/stickc-envii-hat-or-enviii-unit-reboots-constantly/3</a></p>
]]></description><link>https://community.m5stack.com/post/22626</link><guid isPermaLink="true">https://community.m5stack.com/post/22626</guid><dc:creator><![CDATA[gavin67890]]></dc:creator><pubDate>Wed, 01 Nov 2023 10:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to ENVIII causes Core Basic to crash and restart continuously. on Tue, 31 Oct 2023 22:09:03 GMT]]></title><description><![CDATA[<p dir="auto">I has same problem. I solved it by adding sht30.init(); to the setup() function.</p>
<p dir="auto">SHT3X sht30;<br />
QMP6988 qmp6988;<br />
float tmp = 0.0;<br />
float hum = 0.0;<br />
float pressure = 0.0;</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
Wire.begin();<br />
<strong>sht30.init();</strong><br />
qmp6988.init();<br />
}</p>
<p dir="auto">this is missing in the example</p>
]]></description><link>https://community.m5stack.com/post/22625</link><guid isPermaLink="true">https://community.m5stack.com/post/22625</guid><dc:creator><![CDATA[evvecz]]></dc:creator><pubDate>Tue, 31 Oct 2023 22:09:03 GMT</pubDate></item></channel></rss>