<?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[Check SD Card Status]]></title><description><![CDATA[<p dir="auto">I know how to read and write the SD Card but I am unsure how to check the status.  I have tried using Try and Except but still have not go where I wanted.  The goal is to tell if an SD card is inserted and formatted if not prompt the user to insert a proper card.  Since I am presently working in Blockly and inserting Python code using the Execute block a solution that met this requirement would be great.  Thanks</p>
]]></description><link>https://community.m5stack.com/topic/2766/check-sd-card-status</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 18:20:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2766.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 Jan 2021 20:50:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Check SD Card Status on Thu, 11 Feb 2021 04:08:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/6046">@SE</a></p>
<p dir="auto">thank you for sharing. The answer is not really surprising though - the required SDCard <code>detect</code> pin is not connected at all according to the schematics of M5Stack (Fire, Gray, etc.) and M5Core2.</p>
<p dir="auto">Interestingly it is connected in M5Paper, so SDCard detection should be possible there. But before you get your hopes up - SDCard support is not available yet in the UIFlow <code>alpha</code> version for M5Paper.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/12427</link><guid isPermaLink="true">https://community.m5stack.com/post/12427</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 11 Feb 2021 04:08:11 GMT</pubDate></item><item><title><![CDATA[Reply to Check SD Card Status on Sun, 07 Feb 2021 18:41:28 GMT]]></title><description><![CDATA[<p dir="auto">After consulting with M5Stack tech support they indicated the only way to re-mount a card after it has been ejected and re-inserted is to reboot the device.</p>
]]></description><link>https://community.m5stack.com/post/12356</link><guid isPermaLink="true">https://community.m5stack.com/post/12356</guid><dc:creator><![CDATA[SE]]></dc:creator><pubDate>Sun, 07 Feb 2021 18:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to Check SD Card Status on Mon, 18 Jan 2021 03:28:14 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I have figured out how to detect when the card is ejected by writing a file within a try - except but once the card is out I have not figured out how to get it re-mounted in code.  I can get it re-mounted by resetting the CORE2.  The scenario would be you eject the card and the CORE2 detects it and notifies the user to insert a new card.  Once the card is inserted the CORE2 would automatically mount it and make it available for use.  I am sure there is a simple command that I am missing.<br />
Thanks for any help.</p>
<p dir="auto">try:<br />
with open('/sd/IsCard.txt', 'w+') as fs:<br />
fs.write('Test Write')<br />
with open('/sd/IsCard.txt', 'r') as fs:<br />
label1.set_text(str(fs.read(10)))<br />
label0.set_text('Card has been read')<br />
NoCard = 0<br />
except:<br />
label0.set_text('Except0')<br />
NoCard = 1<br />
label0.set_text('Card Not Installed1')</p>
]]></description><link>https://community.m5stack.com/post/11813</link><guid isPermaLink="true">https://community.m5stack.com/post/11813</guid><dc:creator><![CDATA[SE]]></dc:creator><pubDate>Mon, 18 Jan 2021 03:28:14 GMT</pubDate></item></channel></rss>