<?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[Can microSD card be accessed in UIFlow or with MicroPython?]]></title><description><![CDATA[<p dir="auto">I can not find any instruction in the documentation regarding how to access the tf card with python.<br />
Can anyone help me?</p>
]]></description><link>https://community.m5stack.com/topic/1037/can-microsd-card-be-accessed-in-uiflow-or-with-micropython</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 03:33:26 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1037.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 May 2019 07:40:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Mon, 24 Jul 2023 12:13:33 GMT]]></title><description><![CDATA[<p dir="auto">Yes, microSD cards can be accessed in UIFlow or with MicroPython. They allow you to read and write data from/to the microSD card, enabling storage and retrieval of information on compatible devices.</p>
]]></description><link>https://community.m5stack.com/post/21706</link><guid isPermaLink="true">https://community.m5stack.com/post/21706</guid><dc:creator><![CDATA[hema41]]></dc:creator><pubDate>Mon, 24 Jul 2023 12:13:33 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Wed, 29 May 2019 06:58:46 GMT]]></title><description><![CDATA[<p dir="auto">ok......</p>
<p dir="auto">now even one simple uos.mountsd() also works...<br />
good...</p>
<pre><code>&gt;&gt;&gt; import uos
&gt;&gt;&gt; uos.mountsd()
W (497494) sdspi_host: spi bus changed (1 -&gt; 2)
---------------------
 Mode: SPI
     Name: SU08G
     Type: SDHC/SDXC
    Speed: default speed (25 MHz)
SPI speed: 20 MHz
     Size: 7580 MB
      CSD: ver=1, sector_size=512, capacity=15523840 read_bl_len=9
      SCR: sd_spec=2, bus_width=5

</code></pre>
]]></description><link>https://community.m5stack.com/post/4465</link><guid isPermaLink="true">https://community.m5stack.com/post/4465</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Wed, 29 May 2019 06:58:46 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Wed, 29 May 2019 02:42:29 GMT]]></title><description><![CDATA[<p dir="auto">Here I attach the webpages which helps me mostly.<br />
Hope it can help other people.</p>
<p dir="auto"><a href="https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/filesystems" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/filesystems</a><br />
<a href="https://forum.micropython.org/viewtopic.php?t=4551" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.micropython.org/viewtopic.php?t=4551</a><br />
<a href="https://loboris.eu/forum/showthread.php?tid=85" target="_blank" rel="noopener noreferrer nofollow ugc">https://loboris.eu/forum/showthread.php?tid=85</a></p>
]]></description><link>https://community.m5stack.com/post/4464</link><guid isPermaLink="true">https://community.m5stack.com/post/4464</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Wed, 29 May 2019 02:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Wed, 29 May 2019 02:18:05 GMT]]></title><description><![CDATA[<p dir="auto">Funny...</p>
<p dir="auto">I re-burned back to UIFlow-v1.2.3, and it also worked.</p>
<pre><code>&gt;&gt;&gt; import uos
&gt;&gt;&gt; uos.sdconfig(uos.SDMODE_SPI,clk=18,mosi=23,miso=19,cs=4)
&gt;&gt;&gt; uos.mountsd()
W (104277) sdspi_host: spi bus changed (1 -&gt; 2)
---------------------
 Mode: SPI
     Name: SU08G
     Type: SDHC/SDXC
    Speed: default speed (25 MHz)
SPI speed: 20 MHz
     Size: 7580 MB
      CSD: ver=1, sector_size=512, capacity=15523840 read_bl_len=9
      SCR: sd_spec=2, bus_width=5

&gt;&gt;&gt;

</code></pre>
]]></description><link>https://community.m5stack.com/post/4463</link><guid isPermaLink="true">https://community.m5stack.com/post/4463</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Wed, 29 May 2019 02:18:05 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Wed, 29 May 2019 02:09:49 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></p>
<p dir="auto">thank you.</p>
<p dir="auto">I went to <a href="http://MicroPython.org" target="_blank" rel="noopener noreferrer nofollow ugc">MicroPython.org</a> but found nothing helpful.<br />
Finally, I erased the firmware and burned the M5S with the UIFlow-v1.3.1-Beta firmware.</p>
<p dir="auto">It worked, with the code below.</p>
<pre><code>&gt;&gt;&gt; import uos
&gt;&gt;&gt; uos.sdconfig(uos.SDMODE_SPI,clk=18,mosi=23,miso=19,cs=4)
I (53596) gpio: GPIO[23]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull             down: 0| Intr:0
I (53596) gpio: GPIO[19]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull             down: 0| Intr:0
I (53604) gpio: GPIO[18]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pull             down: 0| Intr:0
&gt;&gt;&gt; uos.mountsd()
W (65959) sdspi_host: spi bus changed (1 -&gt; 2)
I (65959) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulld             own: 0| Intr:0
---------------------
 Mode: SPI
     Name: SU08G
     Type: SDHC/SDXC
    Speed: default speed (25 MHz)
SPI speed: 40 MHz
     Size: 7580 MB
      CSD: ver=1, sector_size=512, capacity=15523840 read_bl_len=9
      SCR: sd_spec=2, bus_width=5

&gt;&gt;&gt; 
</code></pre>
]]></description><link>https://community.m5stack.com/post/4462</link><guid isPermaLink="true">https://community.m5stack.com/post/4462</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Wed, 29 May 2019 02:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 14:46:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zhufu86" aria-label="Profile: zhufu86">@<bdi>zhufu86</bdi></a> said in <a href="/post/4457">Can TF card be accessed in UIFlow or with MicroPython?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a></p>
<p dir="auto">I just exec in REPL.</p>
<p dir="auto">import os<br />
os.mountsd()</p>
<p dir="auto">nothing else....</p>
<p dir="auto">I also tried os.SDMODE_4LINE, os.SDMODE_1LINE and os.SDMODE_SPI with os.sdconfig(...) before mountsd(), but none of them worked.</p>
<p dir="auto">Forgot to say, I'm using M5Stack Fire.</p>
</blockquote>
<p dir="auto">You also need the machine, sdcard and dpi library imported. That’s why I recommend that you visit <a href="http://MicroPython.org" target="_blank" rel="noopener noreferrer nofollow ugc">MicroPython.org</a></p>
]]></description><link>https://community.m5stack.com/post/4459</link><guid isPermaLink="true">https://community.m5stack.com/post/4459</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 28 May 2019 14:46:44 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 13:19:12 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></p>
<p dir="auto">I just exec in REPL.</p>
<p dir="auto">import os<br />
os.mountsd()</p>
<p dir="auto">nothing else....</p>
<p dir="auto">I also tried os.SDMODE_4LINE, os.SDMODE_1LINE and os.SDMODE_SPI with os.sdconfig(...) before mountsd(), but none of them worked.</p>
<p dir="auto">Forgot to say, I'm using M5Stack Fire.</p>
]]></description><link>https://community.m5stack.com/post/4457</link><guid isPermaLink="true">https://community.m5stack.com/post/4457</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Tue, 28 May 2019 13:19:12 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 13:05:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zhufu86" aria-label="Profile: zhufu86">@<bdi>zhufu86</bdi></a> said in <a href="/post/4454">Can TF card be accessed in UIFlow or with MicroPython?</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a><br />
thank you for your reply.<br />
But when I tried to exec os.mountsd I got an error as below.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">os.mountsd()<br />
W (20141) sdspi_host: spi bus changed (1 -&gt; 2)<br />
E (20141) sdspi_host: spi bus 2 not available<br />
E (20141) vfs_native: Failed to initialize SDcard (258).<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br />
OSError: [Errno 5] EIO</p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">Can you post all you code please</p>
]]></description><link>https://community.m5stack.com/post/4456</link><guid isPermaLink="true">https://community.m5stack.com/post/4456</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 28 May 2019 13:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 12:43:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a><br />
thank you for your reply.<br />
But when I tried to exec os.mountsd I got an error as below.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">os.mountsd()<br />
W (20141) sdspi_host: spi bus changed (1 -&gt; 2)<br />
E (20141) sdspi_host: spi bus 2 not available<br />
E (20141) vfs_native: Failed to initialize SDcard (258).<br />
Traceback (most recent call last):<br />
File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br />
OSError: [Errno 5] EIO</p>
</blockquote>
</blockquote>
</blockquote>
]]></description><link>https://community.m5stack.com/post/4454</link><guid isPermaLink="true">https://community.m5stack.com/post/4454</guid><dc:creator><![CDATA[zhufu86]]></dc:creator><pubDate>Tue, 28 May 2019 12:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 09:04:01 GMT]]></title><description><![CDATA[<p dir="auto">Not possible in uiflow yet. Micropython is easy<br />
import os<br />
os.mountsd()<br />
os.listdir('/sd')</p>
<p dir="auto">etc...</p>
]]></description><link>https://community.m5stack.com/post/4453</link><guid isPermaLink="true">https://community.m5stack.com/post/4453</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Tue, 28 May 2019 09:04:01 GMT</pubDate></item><item><title><![CDATA[Reply to Can microSD card be accessed in UIFlow or with MicroPython? on Tue, 28 May 2019 08:29:52 GMT]]></title><description><![CDATA[<p dir="auto">Take a look at the micro python official forums, there is a discussion about it</p>
<p dir="auto"><a href="http://Micropython.org" target="_blank" rel="noopener noreferrer nofollow ugc">Micropython.org</a></p>
]]></description><link>https://community.m5stack.com/post/4452</link><guid isPermaLink="true">https://community.m5stack.com/post/4452</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 28 May 2019 08:29:52 GMT</pubDate></item></channel></rss>