<?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[Issue with esp32 board lib v1.0.5]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I would like to report an issue with M5Stack Core GRAY/BASIC.<br />
If you have installed esp32 board lib v1.0.5 and run code like above, you will find that the statement Serial.begin() has a conflict with the statement M5.begin(). You will never get into the loop.<br />
With esp32 1.0.4 and lower it is ok.<br />
The strange thing is that when i remove Serial.begin() it works and still prints with 115200 baud.<br />
I do not know wether the issue is in the lib esp32 or m5stack.<br />
Regards Patrick</p>
<p dir="auto">Here is an example:<br />
/******************************************************************************/<br />
#include &lt;M5Stack.h&gt;</p>
<p dir="auto">int i = 0;</p>
<p dir="auto">void setup(void) {<br />
Serial.begin(115200);     // comment this line if esp32 lib 1.0.5 is installed!</p>
<p dir="auto">M5.begin();<br />
M5.Power.begin();<br />
M5.Lcd.setCursor(10, 20, 4);<br />
M5.Lcd.setTextColor(TFT_YELLOW);<br />
M5.Lcd.setTextSize(1);<br />
M5.Lcd.print("Hello World!");<br />
delay(2000);<br />
M5.Lcd.clear(TFT_BLACK);<br />
}</p>
<p dir="auto">void loop() {<br />
M5.Lcd.setCursor(10, 20, 4);<br />
M5.Lcd.fillRect(10, 20, 100, 19, TFT_BLACK);<br />
M5.Lcd.println(i);</p>
<p dir="auto">Serial.println(i);<br />
i++;<br />
delay(1000);<br />
}<br />
/******************************************************************************/</p>
]]></description><link>https://community.m5stack.com/topic/3087/issue-with-esp32-board-lib-v1-0-5</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 23:10:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3087.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Mar 2021 12:22:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issue with esp32 board lib v1.0.5 on Mon, 15 Mar 2021 17:16:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1341">@Pat</a></p>
<p dir="auto">you are welcome.</p>
<p dir="auto">BTW: you do not necessarily need to touch the M5Stack lib - <code>M5.begin()</code> actually has parameters, one of them is <code>SerialEnable</code>, if you set this to <code>false</code> you can setup <code>Serial</code> in your code anyway you like.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13032</link><guid isPermaLink="true">https://community.m5stack.com/post/13032</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 15 Mar 2021 17:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with esp32 board lib v1.0.5 on Mon, 15 Mar 2021 14:27:23 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Felix for the quick answer. I confess did not looked in the M5 source. So its more a feature than a bug.<br />
My problem was, that i am communicating with other hardware where i can not easily change the baudrate to 115200. Must touch the M5Stack lib for that.<br />
A property for baudrate value would be nice.<br />
Still do not understand why the problem was only since the esp32 release to 1.0.5 and not earlier.<br />
Regards Patrick</p>
]]></description><link>https://community.m5stack.com/post/13025</link><guid isPermaLink="true">https://community.m5stack.com/post/13025</guid><dc:creator><![CDATA[Pat]]></dc:creator><pubDate>Mon, 15 Mar 2021 14:27:23 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with esp32 board lib v1.0.5 on Mon, 15 Mar 2021 13:07:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1341">@Pat</a></p>
<p dir="auto">if you look into <code>M5.begin()</code> you'll see that there already is a <code>Serial.begin()</code> call.</p>
<pre><code>  if (SerialEnable == true) {
    Serial.begin(115200);
    Serial.flush();
    delay(50);
    Serial.print("M5Stack initializing...");
  }
</code></pre>
<p dir="auto">In my experience calling <code>Serial.begin()</code> twice is a bad idea and can lead to very strange errors.<br />
Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13023</link><guid isPermaLink="true">https://community.m5stack.com/post/13023</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 15 Mar 2021 13:07:57 GMT</pubDate></item></channel></rss>