<?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 Using SD Card Interface on OM13073 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-SD-Card-Interface-on-OM13073/m-p/630925#M24823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the periph_sdmmc example from LPCOpen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used Hardware is OM13073 Evalboard (LPC43S37) and OM13082 rev. B (General Purpose Shield)&lt;/P&gt;&lt;P&gt;I added the code to initialize the GPIO1_12 to power the SD card (as required on the rev. B Shield).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calling this function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = f_open(&amp;amp;Fil, "HELLO.TXT", FA_WRITE | FA_CREATE_ALWAYS);&lt;/P&gt;&lt;P&gt;I get "Failed with rc=1." on the debug log..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initilizing the disk works fine with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; stat = disk_initialize(fs-&amp;gt;drv);&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Initialize the physical drive */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when it comes to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt = check_fs(fs, bsect = 0);&lt;/P&gt;&lt;P&gt;fmt is 3: Disk error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;digging a bit more into the library (in the function check_fs(..) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = sdmmc_execute_command(pSDMMC, CMD_READ_SINGLE, index, 0 | MCI_INT_DATA_OVER);&amp;nbsp; (line 527 in sdmmc_18xx_43xx.c)&lt;/P&gt;&lt;P&gt;status is 32812 (&amp;nbsp;MCI_INT_EBE | MCI_INT_DATA_OVER | MCI_INT_CMD_DONE) when trying to read the first sector for information about FAT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I did not find any information about End-bit error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows how to fix this problem, please let me know :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Simon Gerber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2016 15:58:44 GMT</pubDate>
    <dc:creator>simongerber</dc:creator>
    <dc:date>2016-11-03T15:58:44Z</dc:date>
    <item>
      <title>Using SD Card Interface on OM13073</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-SD-Card-Interface-on-OM13073/m-p/630925#M24823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the periph_sdmmc example from LPCOpen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used Hardware is OM13073 Evalboard (LPC43S37) and OM13082 rev. B (General Purpose Shield)&lt;/P&gt;&lt;P&gt;I added the code to initialize the GPIO1_12 to power the SD card (as required on the rev. B Shield).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When calling this function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = f_open(&amp;amp;Fil, "HELLO.TXT", FA_WRITE | FA_CREATE_ALWAYS);&lt;/P&gt;&lt;P&gt;I get "Failed with rc=1." on the debug log..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initilizing the disk works fine with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; stat = disk_initialize(fs-&amp;gt;drv);&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Initialize the physical drive */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when it comes to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmt = check_fs(fs, bsect = 0);&lt;/P&gt;&lt;P&gt;fmt is 3: Disk error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;digging a bit more into the library (in the function check_fs(..) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = sdmmc_execute_command(pSDMMC, CMD_READ_SINGLE, index, 0 | MCI_INT_DATA_OVER);&amp;nbsp; (line 527 in sdmmc_18xx_43xx.c)&lt;/P&gt;&lt;P&gt;status is 32812 (&amp;nbsp;MCI_INT_EBE | MCI_INT_DATA_OVER | MCI_INT_CMD_DONE) when trying to read the first sector for information about FAT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I did not find any information about End-bit error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone knows how to fix this problem, please let me know :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Simon Gerber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2016 15:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-SD-Card-Interface-on-OM13073/m-p/630925#M24823</guid>
      <dc:creator>simongerber</dc:creator>
      <dc:date>2016-11-03T15:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using SD Card Interface on OM13073</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-SD-Card-Interface-on-OM13073/m-p/630926#M24824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This end-bit error is sent after CRC bits in order to signal that command is finished. It is intended to received a '1' in this end-bit (index 0) once the read command is sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Are you able to check (with an analyzer's aid) if this bit is being sent? There is no information about what could be causing the end-bit to be cleared but you can try to use another SD card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've tested the example by using a 4 GB SD card in FAT32 (block size of 512) and it worked without problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 02:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-SD-Card-Interface-on-OM13073/m-p/630926#M24824</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-11-24T02:15:28Z</dc:date>
    </item>
  </channel>
</rss>

