<?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[&quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu)]]></title><description><![CDATA[<h1>Issue Summary</h1>
<p dir="auto">I'm trying to run a simple "Hello World" program on my M5Stack Core using UIFlow2 on Ubuntu 22.04, but I keep experiencing an issue where the serial connection drops unexpectedly. Here’s what happens when clicking <em>Run</em> or <em>Download the program to the device</em>: a pop up appears, the device connects successfully and logs RAM information:</p>
<pre><code>heap RAM free: 55760
heap RAM alloc: 45296
heap RAM free: 55760
heap RAM alloc: 45296
...
</code></pre>
<p dir="auto">After a few seconds, I get <code>"Disconnected from Serial Port"</code>, and the device is no longer accessible.</p>
<p dir="auto">My device shows Public, the device mac, the associated user account, a QR Code ...</p>
<p dir="auto">What I've Tried So Far</p>
<ol>
<li>Checked USB connection</li>
</ol>
<ul>
<li>Used a high-quality data USB cable.</li>
<li>Switched between USB 2.0 and USB 3.0 ports.</li>
<li>Tried a different cable and another PC.</li>
</ul>
<ol start="2">
<li>Verified Serial Port availability</li>
</ol>
<p dir="auto">After disconnection, I ran <code>ls /dev/ttyACM*</code></p>
<p dir="auto">Before and After disconnection:  <code>/dev/ttyACM0</code> is listed. I can't see if it disconnects when I upload the code</p>
<ol start="3">
<li>Disabled ModemManager (Ubuntu)</li>
</ol>
<pre><code>sudo systemctl stop ModemManager
</code></pre>
<ol start="4">
<li>Flashed the latest UIFlow2 firmware using M5Burner</li>
</ol>
<ul>
<li>Used M5Burner to install the latest version of UIFlow2.</li>
<li>Issue persists even after flashing and rebooting.</li>
</ul>
<ol start="5">
<li>Tried a minimal script in UIFlow2</li>
</ol>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *

lcd.clear()
lcd.print("Hello World", 10, 10)
</code></pre>
<p dir="auto">The screen does not display "Hello World" before disconnection occurs.</p>
<p dir="auto">Questions</p>
<ul>
<li>Why does my M5Stack disconnect from the serial port after a few seconds?</li>
<li>Is this a firmware issue or a hardware problem?</li>
<li>Could this be related to power management settings or a driver issue on Linux?</li>
</ul>
<p dir="auto">Any help would be greatly appreciated! Thanks in advance. 😊</p>
]]></description><link>https://community.m5stack.com/topic/7365/disconnected-from-serial-port-while-running-hello-world-on-m5stack-uiflow2-ubuntu</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 03:37:43 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7365.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Mar 2025 16:38:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu) on Tue, 20 May 2025 01:24:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zverik" aria-label="Profile: Zverik">@<bdi>Zverik</bdi></a><br />
that's a bit of weird, i think you should try flash the factory firmware to test out if that was a hardware failure</p>
]]></description><link>https://community.m5stack.com/post/29069</link><guid isPermaLink="true">https://community.m5stack.com/post/29069</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Tue, 20 May 2025 01:24:30 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu) on Mon, 19 May 2025 07:29:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a> Of course, I've used M5Burner with the latest UIFlow2, as per the documentation. Just tried with the updated 2.2.7 version, still nothing.</p>
]]></description><link>https://community.m5stack.com/post/29065</link><guid isPermaLink="true">https://community.m5stack.com/post/29065</guid><dc:creator><![CDATA[Zverik]]></dc:creator><pubDate>Mon, 19 May 2025 07:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu) on Wed, 30 Apr 2025 01:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zverik" aria-label="Profile: Zverik">@<bdi>Zverik</bdi></a><br />
have you flashed the correct firmware?</p>
]]></description><link>https://community.m5stack.com/post/28992</link><guid isPermaLink="true">https://community.m5stack.com/post/28992</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Wed, 30 Apr 2025 01:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu) on Tue, 29 Apr 2025 14:33:13 GMT]]></title><description><![CDATA[<p dir="auto">Yup, same. Got my M5Stack Basic 2.7 today, burned UIFlow2, but when I try to open a console, or run a program, it shows some log about connecting and disconnecting, and does nothing:</p>
<pre><code>Connected to Serial Port!
4592
heap RAM free: 86704
heap RAM alloc: 2heap RAM free: 86704
heap RAM alloc: 24592
heap RAM free: 86704
heap RAM alloc: 24592
heap RAM free: 86704
heap RAM alloc: 24592
heap RAM free: 86704
heap RAM alloc: 24592
heap RAM free: 86704
heap RAM alloc: 24592
heap RAM free: 86704
heap RAM 4592
heap RAM free: 86704
heap RAM alloc: 24592

Disconnected from Serial Port
</code></pre>
]]></description><link>https://community.m5stack.com/post/28988</link><guid isPermaLink="true">https://community.m5stack.com/post/28988</guid><dc:creator><![CDATA[Zverik]]></dc:creator><pubDate>Tue, 29 Apr 2025 14:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Disconnected from Serial Port&quot; while running Hello World on M5Stack (UIFlow2, Ubuntu) on Mon, 21 Apr 2025 23:01:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">I have the same problem. My Mint Linux pops up the terminal; says it connected; says it disconnected.</p>
<p dir="auto">Have you made any progress solving this problem?</p>
]]></description><link>https://community.m5stack.com/post/28942</link><guid isPermaLink="true">https://community.m5stack.com/post/28942</guid><dc:creator><![CDATA[schnauzer]]></dc:creator><pubDate>Mon, 21 Apr 2025 23:01:41 GMT</pubDate></item></channel></rss>