<?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[M5Stamp C3U unable to load program]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">i've just rec'd the M5Stamp C3U and i'm running into problems with programming it in the Arduino IDE.</p>
<p dir="auto">I downloaded both of the suggested USB drivers, the CH9102 and the CP2104 and installed them.  I've added a link for the ESP32C3 and M5Stack in the boards manager in preferences and installed ESP32-Arduino and M5Stack-Arduino and can see the lists of boards under those headings in the 'boards' submenu in the Arduino IDE.  I've tried uploading using the STAMP-C3 and ESP32C3 Dev Module boards.</p>
<p dir="auto">Sometimes the C3U is recognised by my PC and sometimes it isn't.  When it is recognised, the led on the C3U is off, and when it isn't recognised, the led is on.</p>
<p dir="auto">If it is recognised by my PC i try loading a sketch onto it i get this error message...</p>
<p dir="auto">Traceback (most recent call last):<br />
File "<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a>", line 5387, in &lt;module&gt;<br />
File "<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a>", line 5380, in _main<br />
<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> v3.3<br />
File "<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a>", line 4687, in main<br />
Serial port COM11<br />
File "<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a>", line 114, in get_default_connected_device<br />
File "<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a>", line 332, in <strong>init</strong><br />
File "serial\serialutil.py", line 392, in write_timeout<br />
File "serial\serialwin32.py", line 222, in _reconfigure_port<br />
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)<br />
[8556] Failed to execute script 'esptool' due to unhandled exception!<br />
the selected serial port [8556] Failed to execute script 'esptool' due to unhandled exception!<br />
does not exist or your board is not connected</p>
<p dir="auto">...and the led on the C3U turns on. and it is no longer recognised by my PC.</p>
<p dir="auto">There is so little info on this product that i don't know if i'm meant to do something with the 'reset' button or if it needs a bootloader flashed onto it first, or maybe something else i have missed.</p>
<p dir="auto">I usually run into problems when i'm writing my code, not before i've even uploaded my first sketch :(</p>
<p dir="auto">Can anyone offer a solution to this problem?</p>
<p dir="auto">Thanks</p>
<p dir="auto">NM</p>
]]></description><link>https://community.m5stack.com/topic/4467/m5stamp-c3u-unable-to-load-program</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:30:03 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4467.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Jul 2022 22:10:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Sat, 06 Aug 2022 10:13:38 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a>.  When I looked at your code I realised my mistake. I'd been treating the RGB LED as a simple LED, not an RGB. I should have read the spec sheet! It's all working as expected. I have also managed to get the M5Stamp attached to Blynk.</p>
<p dir="auto">Tony</p>
]]></description><link>https://community.m5stack.com/post/18221</link><guid isPermaLink="true">https://community.m5stack.com/post/18221</guid><dc:creator><![CDATA[tonyd]]></dc:creator><pubDate>Sat, 06 Aug 2022 10:13:38 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Fri, 05 Aug 2022 18:42:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/tonyd" aria-label="Profile: tonyd">@<bdi>tonyd</bdi></a></p>
<p dir="auto">you are correct, the RGB LED is connected to GPIO2.</p>
<p dir="auto"><a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5StampC3/NonBlockingBlink.ino" target="_blank" rel="noopener noreferrer nofollow ugc">Here</a> is a blinking RGB LED example for Arduino.</p>
<p dir="auto">And <a href="https://github.com/m5stack/STAMP-C3/tree/master/idf/RGB_LED_Control" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> is an example using the RGB LED for ESP-IDF.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18209</link><guid isPermaLink="true">https://community.m5stack.com/post/18209</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 05 Aug 2022 18:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Fri, 05 Aug 2022 17:20:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/nuttymonk" aria-label="Profile: NuttyMonk">@<bdi>NuttyMonk</bdi></a></p>
<p dir="auto">What Pin did you assign to the LED? The examples have 21, but I think it's 2. I can compile code , but can't get the LED to flash. I can do a WIFI scan, so know the toolchain is working</p>
<p dir="auto">Thanks</p>
<p dir="auto">Tony</p>
]]></description><link>https://community.m5stack.com/post/18207</link><guid isPermaLink="true">https://community.m5stack.com/post/18207</guid><dc:creator><![CDATA[tonyd]]></dc:creator><pubDate>Fri, 05 Aug 2022 17:20:49 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Tue, 26 Jul 2022 18:10:22 GMT]]></title><description><![CDATA[<p dir="auto">Ah, i figured it out.  On that first link it mentions CDC and i realised that is one of the settings in the Tools menu of the Arduino IDE.  It was disabled so i enabled it and uploaded the code and now i can get text to the Serial Monitor.</p>
<p dir="auto">Thanks for all your help, felmue.  I wouldn't have been able to get this working without you. :)</p>
<p dir="auto">Cheers</p>
<p dir="auto">NM</p>
]]></description><link>https://community.m5stack.com/post/18074</link><guid isPermaLink="true">https://community.m5stack.com/post/18074</guid><dc:creator><![CDATA[NuttyMonk]]></dc:creator><pubDate>Tue, 26 Jul 2022 18:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Tue, 26 Jul 2022 17:48:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/nuttymonk" aria-label="Profile: NuttyMonk">@<bdi>NuttyMonk</bdi></a></p>
<p dir="auto">I think that is normal for the StampC3<strong>U</strong>. 'U' stands for the internal USB (in contrast to an external USB Serial converter) and in order to get debug output some flags need to be defined. See <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/usb-serial-jtag-console.html" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and <a href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/kconfig.html#config-esp-console-uart" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>. Edif: <s>Unfortunately by default these flags are undefined in the ESP32-Arduino libraries.</s> Looking through <a href="https://github.com/espressif/arduino-esp32/blob/2.0.2/tools/sdk/esp32c3/include/config/sdkconfig.h" target="_blank" rel="noopener noreferrer nofollow ugc">sdkconfig.h in github</a> it looks like the necessary flag <code>#define CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG 1</code> is set in Arduino 2.0.2 and up. Not sure why it is not working though.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18073</link><guid isPermaLink="true">https://community.m5stack.com/post/18073</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 26 Jul 2022 17:48:13 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Tue, 26 Jul 2022 16:10:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi felmue,</p>
<p dir="auto">thanks for the advice.  Doing it your way is working now.  I am able to upload.</p>
<p dir="auto">Can you tell me, what are the differences working with Serial on the STAMP C3U from other microcontrollers.</p>
<p dir="auto">I have used this code to set up the Serial port so i can get info to my Serial Monitor but it isn't working.  I am running a simple Blink test sketch in the Arduino IDE and the LED i attached is blinking so i know the sketch uploaded and is working fine, but i am getting no text showing up in the Serial Monitor...</p>
<p dir="auto">Serial.begin(115200);<br />
delay(1000);<br />
Serial.println("==========");<br />
Serial.println("BASIC TEST");<br />
Serial.println("==========");</p>
<p dir="auto">...that code is in the setup function.  I have the "Upload Speed" setting in the Arduino IDE set to 115,200 and the Serial Monitor is also set to 115,200 but nothing shows up on the Serial Monitor.</p>
<p dir="auto">Thanks</p>
<p dir="auto">NM</p>
]]></description><link>https://community.m5stack.com/post/18072</link><guid isPermaLink="true">https://community.m5stack.com/post/18072</guid><dc:creator><![CDATA[NuttyMonk]]></dc:creator><pubDate>Tue, 26 Jul 2022 16:10:36 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp C3U unable to load program on Tue, 26 Jul 2022 03:37:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/nuttymonk" aria-label="Profile: NuttyMonk">@<bdi>NuttyMonk</bdi></a></p>
<p dir="auto">maybe below instructions from the <a href="https://shop.m5stack.com/collections/m5-controllers/products/m5stamp-c3u-mate-with-pin-headers" target="_blank" rel="noopener noreferrer nofollow ugc">documentation</a> can help:</p>
<p dir="auto"><em>Program Download/Notes<br />
Enter the program download mode operation:</em></p>
<ol>
<li><em>Long press the center button (G9) of STAMP C3U under power failure condition.</em></li>
<li><em>Connect to the computer, after the port is successfully identified, program burning.</em></li>
</ol>
<p dir="auto">what that means is:</p>
<ol>
<li>disconnect (= power failure condition) M5StampC3U from the USB port</li>
<li>press and hold (= long press) the center button</li>
<li>while holding the center button, connect M5StampC3U to USB</li>
</ol>
<p dir="auto">Now M5StampC3U should be in download mode.</p>
<p dir="auto">Alternative method: Or what I use (with USB connected all the time):</p>
<ol>
<li>press and hold the center button</li>
<li>while holding the center button, click the reset button (small one)</li>
<li>then release center button</li>
</ol>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18066</link><guid isPermaLink="true">https://community.m5stack.com/post/18066</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 26 Jul 2022 03:37:14 GMT</pubDate></item></channel></rss>