<?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>LPC Microcontrollers中的主题 Re: LPC1788 MCI problems...</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519343#M3115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lien.Nguyen on Mon Jul 23 03:10:32 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The MCI driver has been updated for SDHC. You can pull it from GIT server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please go to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsw.lpcware.com%2F%3Fp%3Dlpc177x_8x.git%26a%3Dsummary" rel="nofollow" target="_blank"&gt;http://sw.lpcware.com/?p=lpc177x_8x.git&amp;amp;a=summary&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:38:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:38:32Z</dc:date>
    <item>
      <title>LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519338#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fsteff on Fri Jul 20 06:13:28 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to debug my usage of the lpc177x_8x_mci.c example code (an olding one, and one cloned from git a few days ago), but continue to have some very annoying problems testing with this 16GB SDHC card.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the problem only the first time I call either MCI_ReadBlock() or MCI_WriteBlock().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem exists both in DMA and FIFO mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The commands both return MCI_FUNC_OK as expected, and I start polling MCI_GetDataXferEndState(), to wait for the data to be transfered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have three types of error to happen during this wait.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. After a few while() loops, MCI_GetDataXferEndState() returns 0 and MCI_GetXferErrState() also returns 0 to indicate the transfer has completed without errors. However the contents of the buffer has not been touched by the DMA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. After a many while() loops, MCI_GetDataXferEndState() returns 0 and MCI_GetXferErrState() returns 2, indicating MCI_DATA_CRC_FAIL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. After a very many while() loops, MCI_GetDataXferEndState() returns 0 and MCI_GetXferErrState() returns 8, indicating MCI_DATA_TIMEOUT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like the first time I call MCI_ReadBlock() or MCI_WriteBlock() it sets up something during it's course that should have been set up before the first call, as the next many calls to the same function always seems to performs as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I fail to spot any (vital) differences in the LPC registers relavant to either of the functions (save to CSV file before and after command execusion and then manually compared), and have been single-stepping through all of the functions, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice or pointers any of you can provide to help me debug this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flemming&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519338#M3110</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519339#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Sun Jul 22 03:37:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;IMHO,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the MCI code from NXP is horrible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done my own - I was not able to get this code to do something reliable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519339#M3111</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519340#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Dave on Sun Jul 22 13:10:12 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, I wasn't that impressed either...&amp;nbsp; The code using Chan's library comes with a monitor program that really didn't do anything - except the status command, which seemed to hang initially, but eventually gave me some of the details about the card.&amp;nbsp; The other example (the one that uses the EFSL) did a little more, like give me the directory contents etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either way, they're pretty lame.&amp;nbsp; I ended up writing my own as well, both for the MCI interface and the SPI interface...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chan's stuff works great for the SPI interface...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519340#M3112</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519341#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fsteff on Mon Jul 23 00:38:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your replies, wmues and Dave,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also pretty dissapointed with the state of the NXP code, but I did get it to work fine with an MMC card so the upgrade to a SDHC card ought to be manageable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still looking for pointers to what might be wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-- &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flemming&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519341#M3113</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519342#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lien.Nguyen on Mon Jul 23 03:05:38 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the timeout for read/write operations should be increased. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please try updating DATA_TIMER_VALUE macro in lpc177x_8x_mci.h. This value will be set to MCIDataTimer register.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lien&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519342#M3114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519343#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Lien.Nguyen on Mon Jul 23 03:10:32 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The MCI driver has been updated for SDHC. You can pull it from GIT server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Please go to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fsw.lpcware.com%2F%3Fp%3Dlpc177x_8x.git%26a%3Dsummary" rel="nofollow" target="_blank"&gt;http://sw.lpcware.com/?p=lpc177x_8x.git&amp;amp;a=summary&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519343#M3115</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519344#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Imagineme on Sun Dec 16 10:40:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone explain me the usage of SD_PWR pin what is it`s purpose ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519344#M3116</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519345#M3117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Sun Dec 16 15:12:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The SD card has no reset pin. When the communication get stuck, only a power cycle will reestablisch the connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should not happen if the driver software is crafted carefully, and you will found many products which do not use a power cycle mechanism.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519345#M3117</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519346#M3118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Imagineme on Mon Dec 17 06:40:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;SO in other words is it`s not a vital signal its only used as a precaution if the transfer between the sd card and MCU has to be terminated and start start again/ reset/. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519346#M3118</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519347#M3119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Dave on Thu Mar 21 09:00:23 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Pretty much... it's a mechanism to cycle the power on the MCI card...&amp;nbsp; just in case a hard reset is necessary... for any reason...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519347#M3119</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519348#M3120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Tue Apr 14 08:12:41 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I got the permission from managment to put my MCI driver online with a BSD-style licence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The driver is appended to this post (login required to see it).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have fun...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: there is an error in the SDHC capacity calculation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The correct formula is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mmc_card_sectors = (get_field(response, 48, 22) + 1) &amp;lt;&amp;lt; 10;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519348#M3120</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 MCI problems...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519349#M3121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Nemuisan on Tue Apr 05 18:47:18 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[s]I've ported ChaN's FatFs into LPC1788(MCI Interface).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My example based on ChaN's LPC2388 MCI-Driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fnemuisan.blog.bai.ne.jp%2F%3Feid%3D192848%23LPC1788" rel="nofollow" target="_blank"&gt;http://nemuisan.blog.bai.ne.jp/?eid=192848#LPC1788&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which can also support SDHC(I confirmed upto 32GB Capacity!).[/s]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1788 example was deprecated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use LPC4088 Example instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It supports upto 128GB capacity and eMMCv5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fnemuisan.blog.bai.ne.jp%2F%3Feid%3D192848%23LPC4088" rel="nofollow" target="_blank"&gt;http://nemuisan.blog.bai.ne.jp/?eid=192848#LPC4088&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nemui&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-MCI-problems/m-p/519349#M3121</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:36Z</dc:date>
    </item>
  </channel>
</rss>

