<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF52 SDk 15.0 with sd-card detect/remove with fatfs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51233/nrf52-sdk-15-0-with-sd-card-detect-remove-with-fatfs</link><description>Dear all, 
 I&amp;#39;d like to re-init sd-card when detect it plug/un-plug. But i face a issue when i re-mount sd-card it can not open file....My flow as below 
 
 what is the best re-init sd-card? 
 regards, 
 Tuyen</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Aug 2019 09:06:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51233/nrf52-sdk-15-0-with-sd-card-detect-remove-with-fatfs" /><item><title>RE: NRF52 SDk 15.0 with sd-card detect/remove with fatfs</title><link>https://devzone.nordicsemi.com/thread/205233?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 09:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42de0492-c995-44bb-955a-60d51dd85e97</guid><dc:creator>awneil</dc:creator><description>[quote userid="73387" url="~/f/nordic-q-a/51233/nrf52-sdk-15-0-with-sd-card-detect-remove-with-fatfs"]when i re-mount sd-card it can not open file[/quote]
&lt;p&gt;Any file, or just one particular file?&lt;/p&gt;
&lt;p&gt;Is that because the file was not not closed properly before you pulled the card out?&lt;/p&gt;
&lt;p&gt;Does everything else work OK after the re-init?&lt;/p&gt;
&lt;p&gt;If you check the card on a PC (or similar), is it corrupted?&lt;/p&gt;
&lt;p&gt;Note that FatFs is a 3rd-party thing - nothing specifically to do with Nordic. For questions specific to FatFs, check the FatFs documentation &amp;amp; forum:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elm-chan.org/fsw/ff/00index_e.html"&gt;http://elm-chan.org/fsw/ff/00index_e.html&lt;/a&gt;&amp;nbsp;- especially the &amp;#39;&lt;strong&gt;Resources&lt;/strong&gt;&amp;#39; section at the bottom of the page...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>