<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SD card error (FR_DISK_ERROR) with Chan's FATFS in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-card-error-FR-DISK-ERROR-with-Chan-s-FATFS/m-p/521048#M3954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by arvind.k08 on Mon Aug 10 22:02:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using SDcard via MCI interface on our custom board with LPC1778.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For read/write on SD card I am using Chan's Fatfs (v 0.10b).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDcard used: Sandisk Ultra, 8 Gb, class 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I am using SD card for data logging where it fails many times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My requirement is to log data coming from another chip. I am writing data to the SD card every second.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The data to write is around 4000 bytes. I am writing these data in SDcard, But sometimes while writing [function: f_write()], it fails with FR_DISK_ERR frequently and further if I am trying to write it fails FR_INVALID_OBJECT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works only after I do f_close() and again f_open(), which is more addon to to code, I feel I might loose the data coming from another chip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest a way how to handle these SD card errors, specially FR_DISK_ERR, so these errors should not come again and again so frequently. It has become a major block for my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arvind&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:47:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:47:33Z</dc:date>
    <item>
      <title>SD card error (FR_DISK_ERROR) with Chan's FATFS</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-card-error-FR-DISK-ERROR-with-Chan-s-FATFS/m-p/521048#M3954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by arvind.k08 on Mon Aug 10 22:02:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using SDcard via MCI interface on our custom board with LPC1778.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For read/write on SD card I am using Chan's Fatfs (v 0.10b).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDcard used: Sandisk Ultra, 8 Gb, class 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I am using SD card for data logging where it fails many times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My requirement is to log data coming from another chip. I am writing data to the SD card every second.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The data to write is around 4000 bytes. I am writing these data in SDcard, But sometimes while writing [function: f_write()], it fails with FR_DISK_ERR frequently and further if I am trying to write it fails FR_INVALID_OBJECT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works only after I do f_close() and again f_open(), which is more addon to to code, I feel I might loose the data coming from another chip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest a way how to handle these SD card errors, specially FR_DISK_ERR, so these errors should not come again and again so frequently. It has become a major block for my application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arvind&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-card-error-FR-DISK-ERROR-with-Chan-s-FATFS/m-p/521048#M3954</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: SD card error (FR_DISK_ERROR) with Chan's FATFS</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-card-error-FR-DISK-ERROR-with-Chan-s-FATFS/m-p/521049#M3955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help me if you have solved the disk error problem.I &amp;nbsp;am also facing same problem when i try to write the data to more than 4 GB cards.i am successfully writing the data to below 4 GB &amp;nbsp;size cards without any error. help me my target device is &amp;nbsp;1778.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2017 03:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-card-error-FR-DISK-ERROR-with-Chan-s-FATFS/m-p/521049#M3955</guid>
      <dc:creator>chakravarthi</dc:creator>
      <dc:date>2017-01-14T03:32:02Z</dc:date>
    </item>
  </channel>
</rss>

