<?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 Re: SD CARD communication and TX UNDERRUN error in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032730#M40211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing various tests, the problem occurs also in reception (TX OVERRUN) which is worse than the TX UNDERRUN because you can't recover it in any way (more data comes than that the uP can manage). Both problems (TX OVERRUN and TX UNDERRUN) don't occur up to a clock frequency of 3MHz. I unfortunately would like to go much higher, at least 15MHz. The value 20MHz would be ideal. I have to try using the DMA. Do you think it will work well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2019 07:03:12 GMT</pubDate>
    <dc:creator>aut</dc:creator>
    <dc:date>2019-12-18T07:03:12Z</dc:date>
    <item>
      <title>SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032725#M40206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with reference to the LPC1788 microcontroller, I have some problems with the SD CARD routines. I'm using&amp;nbsp; the&amp;nbsp;&lt;STRONG&gt;lpc177x_8x_mci.c&lt;/STRONG&gt;&amp;nbsp;routines&amp;nbsp;&lt;STRONG&gt;2.0&lt;/STRONG&gt;&amp;nbsp;version but I have frequently TX UNDERRUN errors. Is this a my mistake or the NXP routines are not reliables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:17:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032725#M40206</guid>
      <dc:creator>aut</dc:creator>
      <dc:date>2019-12-11T10:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032726#M40207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to use the newest LPCOpen library. Inside the library you can check the latest SDMMC card example and drivers. Please download LPCOpen library from the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX | NXP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or If you have MCUXpresso already installed in your PC you can check the examples in the following path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C:\nxp\MCUXpressoIDE_11.0.1_2563\ide\Examples\LPCOpen\lpcopen_2_10_lpcxpresso_ea_devkit_1788.zip&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 17:16:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032726#M40207</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-12T17:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032727#M40208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe.&lt;BR /&gt;Many thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment I by-passed the problem by writing or reading again the block (512 byte) where the problem has occurred. In this way, the data exchange goes on and ends successfully. I looked the last library version you recommended me but I didn't try it. Aniway, it seems to me that even in these new routines the data exchange stops if the TX OVERRUN error occurs. I noticed that using 400KHz clock the problem never occurs. Increasing the clock the problem starts and it becomes more and more frequent when the clock is increased up to 15MHz.&lt;/P&gt;&lt;P&gt;I don't use the DMA, I use the FIFO interrupts. If I well understood, the problem occurs because the FIFO emptying is much faster than the FIFO loading. Maybe it is normal with the FIFO interrupts. My question now is: is there any why to avoid the TX OVERRUN error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 13:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032727#M40208</guid>
      <dc:creator>aut</dc:creator>
      <dc:date>2019-12-13T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032728#M40209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Sorry, in my previous post I was wrong to write. The error isn't TX OVERRUN but&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;TX UNDERRUN&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032728#M40209</guid>
      <dc:creator>aut</dc:creator>
      <dc:date>2019-12-13T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032729#M40210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct, TX underrun means that the FIFO is transmitting data at a higher speed than the speeds the data comes to the FIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the only way to avoid this issue is to make sure that your FIFO has always values so your FIFO will not be empty when a new transmission request arrive, triggering FIFO underrun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Felipe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 16:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032729#M40210</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-17T16:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032730#M40211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing various tests, the problem occurs also in reception (TX OVERRUN) which is worse than the TX UNDERRUN because you can't recover it in any way (more data comes than that the uP can manage). Both problems (TX OVERRUN and TX UNDERRUN) don't occur up to a clock frequency of 3MHz. I unfortunately would like to go much higher, at least 15MHz. The value 20MHz would be ideal. I have to try using the DMA. Do you think it will work well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 07:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032730#M40211</guid>
      <dc:creator>aut</dc:creator>
      <dc:date>2019-12-18T07:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: SD CARD communication and TX UNDERRUN error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032731#M40212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DMA will definitely allows you to transfer at a higher frequency. However, you will need to test first if it fits the frequency you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:16:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SD-CARD-communication-and-TX-UNDERRUN-error/m-p/1032731#M40212</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-23T16:16:05Z</dc:date>
    </item>
  </channel>
</rss>

