<?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[Cardputer SD-Card issues &#x2F; how to format?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">it's a really fun device, but I somehow struggle to get the SD-card working…<br />
Tried Uniflow2.0 and it all works - except the SD.<br />
No matter what I try, I always get:<br />
<em><strong>Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 74, in &lt;module&gt;<br />
File "&lt;stdin&gt;", line 47, in loop<br />
OSError: [Errno 19] ENODEV</strong></em></p>
<p dir="auto">Using the CLI:<br />
<em><strong>&gt;&gt;&gt; os.listdir("/")<br />
['system', 'flash']</strong></em></p>
<p dir="auto">So the SD isn't seen.</p>
<p dir="auto">I tried formating on OSX, OSX (Terminal), in Win10, Fat16 / FAT 32.<br />
Both with a 8GB Card and two small 128MB cards.</p>
<p dir="auto">Is there a known good sample sketch to handle the SD in Cardputer to format / get Infos?</p>
<p dir="auto">I am using PIO, but I guess that can broadly be be considered "Arduino IDE"?</p>
]]></description><link>https://community.m5stack.com/topic/6128/cardputer-sd-card-issues-how-to-format</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 20:04:24 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6128.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Feb 2024 18:03:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Wed, 04 Sep 2024 05:48:58 GMT]]></title><description><![CDATA[<p dir="auto">I'm glad to hear the issue is resolved! The SD card initialization step is indeed essential. For future troubleshooting, make sure the SD card is properly formatted and always include the initialization code in your sketch. If you run into similar issues, checking for hidden characters or formatting errors on the card can also be helpful. Thanks for updating us on the solution!</p>
]]></description><link>https://community.m5stack.com/post/26349</link><guid isPermaLink="true">https://community.m5stack.com/post/26349</guid><dc:creator><![CDATA[jhoney12]]></dc:creator><pubDate>Wed, 04 Sep 2024 05:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Thu, 22 Feb 2024 13:24:11 GMT]]></title><description><![CDATA[<p dir="auto">OK, it works now.<br />
Seems there was a &lt;space&gt; in the "empty" listdir path <em>facepalm</em></p>
<p dir="auto">And it does require the SD card init block as you suggested.<br />
I thought that would be included in the "init built-in hardware" step, but the code shows otherwise.</p>
<p dir="auto">Even hot-swapping multiple works – neat.</p>
<p dir="auto">Thank you so much!</p>
]]></description><link>https://community.m5stack.com/post/24030</link><guid isPermaLink="true">https://community.m5stack.com/post/24030</guid><dc:creator><![CDATA[Brainzilla]]></dc:creator><pubDate>Thu, 22 Feb 2024 13:24:11 GMT</pubDate></item><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Thu, 22 Feb 2024 12:23:47 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></p>
<p dir="auto">it seems that there is <em>something</em> happening.</p>
<p dir="auto"><strong>#1 Started with card</strong><br />
File "&lt;stdin&gt;", line 18, in &lt;module&gt;<br />
File "&lt;stdin&gt;", line 11, in setup<br />
OSError: [Errno 22] EINVAL</p>
<p dir="auto"><strong>#2 Removing the card</strong><br />
File "&lt;stdin&gt;", line 18, in &lt;module&gt;<br />
File "&lt;stdin&gt;", line 9, in setup<br />
File "hardware/sdcard.py", line 19, in SDCard<br />
OSError: [Errno 116] ETIMEDOUT: ESP_ERR_TIMEOUT</p>
<p dir="auto"><strong>#3 Running it again</strong><br />
File "&lt;stdin&gt;", line 18, in &lt;module&gt;<br />
File "&lt;stdin&gt;", line 9, in setup<br />
File "hardware/sdcard.py", line 16, in SDCard<br />
OSError: (-259, 'ESP_ERR_INVALID_STATE')</p>
<p dir="auto">Inserting the card back at runtime changes the error back to #1</p>
<p dir="auto">Pretty sure the solution lies somewhere in correctly formatting the card.<br />
That's why I would like to format it with the ESP itself.</p>
<p dir="auto"><img src="/assets/uploads/files/1708604625172-bildschirmfoto-2024-02-22-um-13.23.31-resized.png" alt="0_1708604623889_Bildschirmfoto 2024-02-22 um 13.23.31.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/24028</link><guid isPermaLink="true">https://community.m5stack.com/post/24028</guid><dc:creator><![CDATA[Brainzilla]]></dc:creator><pubDate>Thu, 22 Feb 2024 12:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Thu, 22 Feb 2024 05:03:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/brainzilla" aria-label="Profile: Brainzilla">@<bdi>Brainzilla</bdi></a></p>
<p dir="auto">try adding the <code>Init SDCard with</code> block before accessing the SD card. See below.</p>
<p dir="auto"><img src="/assets/uploads/files/1708578174221-ui2_m5cardputer_sdcard_20240222.png" alt="0_1708578172291_UI2_M5Cardputer_SDCard_20240222.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/24014</link><guid isPermaLink="true">https://community.m5stack.com/post/24014</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 22 Feb 2024 05:03:32 GMT</pubDate></item><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Wed, 21 Feb 2024 21:31:09 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> said in <a href="/post/24005">Cardputer SD-Card issues / how to format?</a>:</p>
<blockquote>
<p dir="auto">What code are you using?</p>
</blockquote>
<p dir="auto">Basically just UIFlow2 &gt; SDCard &gt; listdir</p>
<p dir="auto">Or the CLI in UIFlow for the os.listdir()</p>
<p dir="auto"><img src="/assets/uploads/files/1708551066023-bildschirmfoto-2024-02-21-um-22.28.18-resized.png" alt="0_1708551064186_Bildschirmfoto 2024-02-21 um 22.28.18.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/24008</link><guid isPermaLink="true">https://community.m5stack.com/post/24008</guid><dc:creator><![CDATA[Brainzilla]]></dc:creator><pubDate>Wed, 21 Feb 2024 21:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to Cardputer SD-Card issues &#x2F; how to format? on Wed, 21 Feb 2024 19:58:32 GMT]]></title><description><![CDATA[<p dir="auto">What code are you using?</p>
]]></description><link>https://community.m5stack.com/post/24005</link><guid isPermaLink="true">https://community.m5stack.com/post/24005</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 21 Feb 2024 19:58:32 GMT</pubDate></item></channel></rss>