<?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[SD cart mount failed]]></title><description><![CDATA[<p dir="auto">I'm facing a weird issue.<br />
When I use the <code>SD.exists</code> or <code>SD.open</code> on different CPP files, everything works well, but when I click on the reset button, an error <a href="http://occurred.It" target="_blank" rel="noopener noreferrer nofollow ugc">occurred.It</a>'s also happening when I try to save a file on the SD card twice.</p>
<p dir="auto">I have to remove and reinsert the SD card every time which is a little annoying.</p>
<p dir="auto">What I'm trying to do is check if there is an SD card available, if yes, I can add a button to save the current game state, or I'm able to load the JSON stored on the SD card.</p>
<pre><code>[  1788][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[  1788][E][sd_diskio.cpp:795] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[  2095][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
</code></pre>
<p dir="auto">Everything I do is public: <a href="https://github.com/PierreRambaud/pokegotchi/" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PierreRambaud/pokegotchi/</a></p>
<p dir="auto">I'm not sure it's the right approach as I started C/C++ one month ago.</p>
<p dir="auto"><a href="https://github.com/PierreRambaud/pokegotchi/blob/master/src/main.cpp#L85" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PierreRambaud/pokegotchi/blob/master/src/main.cpp#L85</a><br />
<a href="https://github.com/PierreRambaud/pokegotchi/blob/master/lib/Pokegotchi/Pokegotchi.cpp#L17" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PierreRambaud/pokegotchi/blob/master/lib/Pokegotchi/Pokegotchi.cpp#L17</a></p>
]]></description><link>https://community.m5stack.com/topic/4047/sd-cart-mount-failed</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:46:06 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4047.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Feb 2022 16:56:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SD cart mount failed on Wed, 23 Feb 2022 13:11:18 GMT]]></title><description><![CDATA[<p dir="auto">Glad you got things working, out of interest, are you running with tasks/threads? I'm working on a project that is reading and writing to an SD card, and luckily I've not had this problem yet. But I may implement what you've found just to be extra safe.</p>
]]></description><link>https://community.m5stack.com/post/16741</link><guid isPermaLink="true">https://community.m5stack.com/post/16741</guid><dc:creator><![CDATA[Minxster]]></dc:creator><pubDate>Wed, 23 Feb 2022 13:11:18 GMT</pubDate></item><item><title><![CDATA[Reply to SD cart mount failed on Thu, 17 Feb 2022 10:18:18 GMT]]></title><description><![CDATA[<p dir="auto">Ok, I bypass the problem by using <code>SD.begin()</code> and <code>SD.end()</code> each time I need to use SD methods</p>
]]></description><link>https://community.m5stack.com/post/16685</link><guid isPermaLink="true">https://community.m5stack.com/post/16685</guid><dc:creator><![CDATA[GoT]]></dc:creator><pubDate>Thu, 17 Feb 2022 10:18:18 GMT</pubDate></item></channel></rss>