<?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: I am facing a tx underrun error in lpc1768 emac driver</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884076#M35415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant send you the demo as it is a part of a registered product&lt;/P&gt;&lt;P&gt;The chip I am using is an LPC1778FBD208&lt;/P&gt;&lt;P&gt;While debugging the issue I tried to increase the&lt;/P&gt;&lt;P&gt;BACK-TO-BACK INTER-PACKET-GAP and NON-BACK-TO-BACK INTER-PACKET-GAP PART2 value from default value of 0x15 and 0x12 to 0x18 and 0x13&lt;/P&gt;&lt;P&gt;Which is the minimum possible period between the end of any transmitted packet to the beginning of the next&lt;/P&gt;&lt;P&gt;And it happened to be that the TX underrun occurring period has been increased considerably from approx. 4 hrs to 10 hrs or so&lt;/P&gt;&lt;P&gt;But still I am getting the Tx underrun after 10 hours&lt;/P&gt;&lt;P&gt;Should I consider to increase the interpacket gap to counter the TX underrun error I am facing?&lt;/P&gt;&lt;P&gt;What impact will it make on the throughput of my system?&lt;/P&gt;&lt;P&gt;Kindly help me to find the right fix for this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 09:46:09 GMT</pubDate>
    <dc:creator>ankish_sharma1</dc:creator>
    <dc:date>2019-04-12T09:46:09Z</dc:date>
    <item>
      <title>I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884055#M35394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using lpc port for lwip2.0.1 and facing a random delay in transmission .Debugging the emac driver gives me a tx underrun bit set in the TSV0 register every time a delay occurs.Had someone experienced the same issue and is there some reliable fix for this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:28:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884055#M35394</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-03-11T12:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884056#M35395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="337346" data-username="ankish.sharma@helmholz.de" href="https://community.nxp.com/people/ankish.sharma@helmholz.de"&gt;ankish sharma&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;The underrun error would happen by these causes, just according to your description, it's hard to say which cause you may encounter.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/72188i61557696489CEA08/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;So I'd like to suggest you do more test to find the exact cause, in further, LPCOpen library has provided the Lwip demo, you can refer to it for details.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&gt;&amp;nbsp;&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, 12 Mar 2019 03:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884056#M35395</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-12T03:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884057#M35396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am getting the overrun status on my debugger window have attached the debugging window snapshot&lt;/P&gt;&lt;P&gt; so I think below is the reason for a underrun out of three reasons&lt;/P&gt;&lt;P&gt;The transmission fragment data is not available when the Ethernet block has already&lt;/P&gt;&lt;P&gt;started sending the frame. This is a nonfatal error. An Underrun status will be returned&lt;/P&gt;&lt;P&gt;on transfer and the TxError bit in IntStatus will be set.&lt;/P&gt;&lt;P&gt;But I don’t know how to resolve this issue&lt;/P&gt;&lt;P&gt;I increased the tx descriptors to 6 from 4 but it didn’t helped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 07:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884057#M35396</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-03-12T07:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884058#M35397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="337346" data-objecttype="3" href="https://community.nxp.com/people/ankish.sharma@helmholz.de"&gt;ankish sharma&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;To provide the fastest possible support, I'd highly recommend you to refer to the Lwip demo in the LPCOpen library, use the demo as a template.&lt;/P&gt;&lt;P&gt;Please give a try.&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fsupport%2Fdeveloper-resources%2Fsoftware-development-tools%2Flpc-developer-resources-%2Flpcopen-libraries-and-examples%2Flpcopen-software-development-platform-lpc17xx%3ALPCOPEN-SOFTWARE-FOR-LPC17XX" rel="nofollow" target="_blank"&gt;LPCOpen Software for LPC17XX | NXP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&gt;&amp;nbsp;&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>Wed, 13 Mar 2019 07:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884058#M35397</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-13T07:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884059#M35398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i am using the lpcopen example as a templet for my design but still facing the random delay with tx underun interrupt set with no tx error interrupt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 06:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884059#M35398</guid>
      <dc:creator>ankish_sharma</dc:creator>
      <dc:date>2019-03-14T06:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884060#M35399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="336447" data-username="ankish_sharma@yahoo.com" href="https://community.nxp.com/people/ankish_sharma@yahoo.com"&gt;ankish sharma&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;Whether you can upload a simplified demo which can replicate the issue, meanwhile, please introduce the testing process, as I'd like to replicate it on my site and it can help to figure the issue out.&lt;BR /&gt;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&gt;&amp;nbsp;&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>Fri, 15 Mar 2019 02:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884060#M35399</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-15T02:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884061#M35400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using Lauterbach script for debugging the firmware&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a Modbus server communicating with a Modbus client at 100mbs ethernet link with lwip stack in it.&lt;/P&gt;&lt;P&gt;It works fine for couple of hours but then it shows me random delays of approximately an 1 sec which causes the Modbus client to retransmit the data&lt;/P&gt;&lt;P&gt;I am not getting any trace of packet drop even after debugging the lwip stack for sometime so i suspected it to be a emac driver issue so i put a break point in the ethernet port form the&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; Lwip demo in the LPCOpen library ethernet IRQ function where it gets the tx underun interrupt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I have attached the Wireshark trace for the mentioned delay as well 192.168.72.1 is my Modbus client and 192.168.72.231 is my lpc 1768 Modbus server with lwip stack for tcp/ip communication.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;void ETH_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;#if NO_SYS == 1&lt;BR /&gt;&amp;nbsp;/* Interrupts are not used without an RTOS */&lt;BR /&gt;&amp;nbsp;NVIC_DisableIRQ(ETHERNET_IRQn);&lt;BR /&gt;#else&lt;BR /&gt;&amp;nbsp;signed portBASE_TYPE xRecTaskWoken = pdFALSE, XTXTaskWoken = pdFALSE;&lt;BR /&gt;&amp;nbsp;uint32_t ints;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* Interrupts are of 2 groups - transmit or receive. Based on the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupt, kick off the receive or transmit (cleanup) task */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* Get pending interrupts */&lt;BR /&gt;&amp;nbsp;ints = Chip_ENET_GetIntStatus(LPC_ETHERNET);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;if (ints &amp;amp; RXINTGROUP) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* RX group interrupt(s) */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* Give semaphore to wakeup RX receive task. Note the FreeRTOS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method is used instead of the LWIP arch method. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;int_rx_cnt++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;xSemaphoreGiveFromISR(lpc_enetdata.rx_sem, &amp;amp;xRecTaskWoken);&lt;BR /&gt;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;if (ints &amp;amp; TXINTGROUP) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;if (ints &amp;amp; (ENET_INT_TXUNDERRUN | ENET_INT_TXERROR))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tx_error++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* TX group interrupt(s) */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;/* Give semaphore to wakeup TX cleanup task. Note the FreeRTOS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method is used instead of the LWIP arch method. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;int_tx_cnt++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;xSemaphoreGiveFromISR(lpc_enetdata.tx_clean_sem, &amp;amp;XTXTaskWoken);&lt;BR /&gt;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* Clear pending interrupts */&lt;BR /&gt;&amp;nbsp;Chip_ENET_ClearIntStatus(LPC_ETHERNET, ints);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* Context switch needed? */&lt;BR /&gt;&amp;nbsp;portEND_SWITCHING_ISR(xRecTaskWoken || XTXTaskWoken);&lt;BR /&gt;#endif&lt;BR /&gt;}&lt;span class="lia-inline-image-display-wrapper" image-alt="2019-03-15 08_20_26-Greenshot.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77497i363A50F43176B85C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-03-15 08_20_26-Greenshot.png" alt="2019-03-15 08_20_26-Greenshot.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 07:22:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884061#M35400</guid>
      <dc:creator>ankish_kacktwan</dc:creator>
      <dc:date>2019-03-15T07:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884062#M35401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;According to the aforementioned underrun errors description, the underrun error is mainly related to sending the unavailable-fragment, however from your reply, underrun error cause Modbus client retransmit data, actually, it should cause the Modbus server (LPC) retransmit data to Modbus client, so I'm a bit confused with it, whether you can share some comments.&lt;BR /&gt;In further, I was wondering if you can share the trace file of the Wireshark.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&gt;&amp;nbsp;&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>Mon, 18 Mar 2019 08:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884062#M35401</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-18T08:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884063#M35402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;i can not see a trace of the outgoing packet from the server on the wireshark trace there is a retransmission from the client i am attaching the wireshark trace for analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from Yahoo Mail on Android &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  On Mon, Mar 18, 2019 at 13:53, jeremyzhou&amp;lt;admin@community.nxp.com&amp;gt; wrote:    &lt;/P&gt;&lt;P&gt;#yiv3831587256 * &lt;SPAN __jive_macro_name="margin"&gt;&lt;/SPAN&gt;#yiv3831587256 a &lt;SPAN __jive_macro_name="color"&gt;&lt;/SPAN&gt;#yiv3831587256 body {font-family:Helvetica, Arial, sans-serif;}#yiv3831587256 #yiv3831587256 h1, #yiv3831587256 h2, #yiv3831587256 h3, #yiv3831587256 h4, #yiv3831587256 h5, #yiv3831587256 h6, #yiv3831587256 p, #yiv3831587256 hr {}#yiv3831587256 .yiv3831587256button td {} &lt;/P&gt;&lt;P&gt;| &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NXP Community  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;| &lt;/P&gt;&lt;P&gt;Re: I am facing a tx underrun error in lpc1768 emac driver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from jeremyzhou in LPC Microcontrollers - View the full discussion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According to the aforementioned underrun errors description, the underrun error is mainly related to sending the unavailable-fragment, however from your reply, underrun error cause Modbus client retransmit data, actually, it should cause the Modbus server (LPC) retransmit data to Modbus client, so I'm a bit confused with it, whether you can share some comments.&lt;/P&gt;&lt;P&gt;In further, I was wondering if you can share the trace file of the Wireshark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 03:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884063#M35402</guid>
      <dc:creator>ankish_sharma</dc:creator>
      <dc:date>2019-03-19T03:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884064#M35403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="337713" data-username="ankish.kacktwana@gmail.com" href="https://community.nxp.com/people/ankish.kacktwana@gmail.com"&gt;ankish sharma&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I'm still analysing the attachment now, and I'll appreciate a lot if you can introduce the function about your prototype briefly, it can help me figure the 'issue' out.&lt;BR /&gt;Looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Wed, 20 Mar 2019 10:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884064#M35403</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-20T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884065#M35404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The server is an lpc1768 cpu based modbus coupler with io modules attached&lt;/P&gt;&lt;P&gt;to it and uses lwip2.0 tcpip stack for communication the client is an&lt;/P&gt;&lt;P&gt;siemens plc which sends the modbus request with diffrent function code and&lt;/P&gt;&lt;P&gt;the modbus server sends the response to the Plc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:58:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884065#M35404</guid>
      <dc:creator>ankish_kacktwan</dc:creator>
      <dc:date>2019-03-25T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884066#M35405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="337713" data-objecttype="3" href="https://community.nxp.com/people/ankish.kacktwana@gmail.com"&gt;ankish sharma&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;Whether the demo code pause at the breakpoint when the TCP/IP layer handles the time-out ACK event with retransmitting the segment, in trace data, as I can't find the record when the server transmits this segment data (Seq: 6185~6444).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67503i7EA143876F2C0E6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 26 Mar 2019 07:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884066#M35405</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-26T07:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884067#M35406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jeremyzho,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right the segment is not available in the trace because it hits the underrun breakpoint before it for debugging and the wireshark trace is from the firmware without a breakpoint introduced in it for Tx underrun interrupt.&lt;/P&gt;&lt;P&gt;And I am wondering why the lpc lwip driver not retransmitting the segment which had caused the underrun in the  driver&lt;/P&gt;&lt;P&gt;if you can help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884067#M35406</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-03-27T07:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884068#M35407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="337346" data-username="ankish.sharma@helmholz.de" href="https://community.nxp.com/people/ankish.sharma@helmholz.de"&gt;ankish sharma&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I'm not clear with your reply, whether you mean the trace is recorded in debug condition and without placing any breakpoints, is it right.&lt;BR /&gt;Just according to the trace, we're hard to jump to the conclusion that the issue is related to LPC driver, it may be related to Lwip library &lt;BR /&gt;In the current, above all, find out the rule of replicating the issue, otherwise, it's hard to think out some ideas to fix it&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 28 Mar 2019 09:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884068#M35407</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-28T09:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884069#M35408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the trace is without a breakpoint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have also sent you the internal registers screenshot which clearly shows an Tx underrun interrupt triggered causing a retransmission from the client without the packet retransmission from the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lpc driver which should retransmit in case of a buffer underrun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to disable the EMC Burst Control as my Rx and Tx buffer and the lwip pbuf for transmission are in the external SDRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It increased the time after which a tx underrun occurs but I can still see the tx underrun after 2 hours or so causing retransmission from the client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the LPC internal registers trace in which tx underrun can be seen clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 09:47:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884069#M35408</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-03-28T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884070#M35409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="337346" data-objecttype="3" href="https://community.nxp.com/people/ankish.sharma@helmholz.de"&gt;ankish sharma&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;The retransmit should be handled by TCP protocol, in another word, the Lwip is in charge of it, not the LPC driver.&lt;BR /&gt;It seems that the key to the issue is the cause of raise underrun error, I'm curious that whether the issue happens when doing transmitting testing on the Data Link layer instead of using the Lwip.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 29 Mar 2019 08:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884070#M35409</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-03-29T08:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884071#M35410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by testing on Data Link Layer?&lt;/P&gt;&lt;P&gt;I am looking for an explanation for the ethernet communication process in LPC&lt;/P&gt;&lt;P&gt;I tried to figure out the process from the user manual of LPC 1768 but its not very clear for me to debug my issue&lt;/P&gt;&lt;P&gt;Which is very much related to the ethernet MAC driver&lt;/P&gt;&lt;P&gt;As far as I understood the transmission process it works as&lt;/P&gt;&lt;P&gt;     /* Save size of packet, descriptor is not last */&lt;/P&gt;&lt;P&gt;                     lpc_enetif-&amp;gt;ptxd[idx].Control = ENET_TCTRL_SIZE(q-&amp;gt;len) | ENET_TCTRL_INT |&lt;/P&gt;&lt;P&gt;                                                           ENET_TCTRL_LAST;&lt;/P&gt;&lt;P&gt;                lpc_enetif-&amp;gt;txb[idx] = p;&lt;/P&gt;&lt;P&gt;Activating the  packet transfer complete interrupt in control register&lt;/P&gt;&lt;P&gt;Also the last segment interrupt activated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lpc_enetif-&amp;gt;ptxd[idx].Packet = (u32_t) q-&amp;gt;payload;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Packet  section is uploaded by the payload&lt;/P&gt;&lt;P&gt;idx = Chip_ENET_IncTXProduceIndex(LPC_ETHERNET);&lt;/P&gt;&lt;P&gt;and the TXProducer index is incremented to indicate the TXConsumer buffer maintained by the hardware to consume the packet and send it out on the datalink layer&lt;/P&gt;&lt;P&gt;and after the segment is been send by the hardware it triggers an TxDoneInt interrupt which is been handled in the ETH_IRQHandler&lt;/P&gt;&lt;P&gt;My question is :&lt;/P&gt;&lt;P&gt;If the hardware segment transfer is only triggered by increasing the producer index how is it possible than there is an TXunderrun which is according to the user manual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transmission fragment data is not available when the Ethernet block has already&lt;/P&gt;&lt;P&gt;started sending the frame. This is a nonfatal error. An Underrun status will be returned&lt;/P&gt;&lt;P&gt;on transfer and the TxError bit in IntStatus will be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be very helpful for mw to debug this issue if you explain me these points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 07:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884071#M35410</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-04-03T07:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884072#M35411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to decrease the speed of the MII management hardware by appropriate value in the MCFG register of the MCU which is running at a Host Clock divided by 44 and the host clock is 120MHz&lt;/P&gt;&lt;P&gt;So it is currently running at a speed of 2.7 MHz&lt;/P&gt;&lt;P&gt;In order to prevent the TX Underrun&lt;/P&gt;&lt;P&gt;And also trying to figure out the reason for improved performance by disabling the EMC Burst&lt;/P&gt;&lt;P&gt;Control&lt;/P&gt;&lt;P&gt;Would like to mention  my pbufs , TX and RX Descriptors are in the SDRAM which I believe  are accessed by EMC of the CPU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 11:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884072#M35411</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-04-03T11:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884073#M35412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="337346" data-objecttype="3" href="https://community.nxp.com/people/ankish.sharma@helmholz.de" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;ankish sharma&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;Q1) What do you mean by testing on Data Link Layer?&lt;BR /&gt;-- Just using the EMAC drive to handle the Ethernet transmission.&lt;BR /&gt;Q2) Is it possible to decrease the speed of the MII management hardware by appropriate value in the MCFG register of the MCU which is running at a Host Clock divided by 44 and the host clock is 120MHz?&lt;BR /&gt;-- Please give a try and tell me the testing result.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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 style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 04 Apr 2019 14:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884073#M35412</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-04T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: I am facing a tx underrun error in lpc1768 emac driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884074#M35413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jeremyzhou&amp;lt;https://community.nxp.com/people/jeremyzhou?et=watches.email.thread&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have tried to lower the speed of the MII management hardware without any luck on Tx Underrun&lt;/P&gt;&lt;P&gt;Still Tx underrun seems a mystery for me as neither you or lpc user manual have a clear explanation for the reason of TX underrun or any fix to resolve the issue&lt;/P&gt;&lt;P&gt;Its surely is not the issue with the upper layers as I am not getting any packet drop or any asserts in the lwip stack&lt;/P&gt;&lt;P&gt;Is there any document by LPC to understand the functioning of ethernet hardware block?&lt;/P&gt;&lt;P&gt;Can you provide me with a fix to retransmit the dropped segment by the emac so that packet lost on the transmission can be prevented?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mit freundlichen Grüßen&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankish Sharma&lt;/P&gt;&lt;P&gt; Software Development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helmholz GmbH &amp;amp; Co. KG&lt;/P&gt;&lt;P&gt;Hannberger Weg 2&lt;/P&gt;&lt;P&gt;91091 Großenseebach&lt;/P&gt;&lt;P&gt;Germany&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phone:  +49 9135 7380 - 0&lt;/P&gt;&lt;P&gt;Fax:    +49 9135 7380 - 110&lt;/P&gt;&lt;P&gt;E-Mail: Ankish.Sharma@helmholz.de&amp;lt;mailto:Ankish.Sharma@helmholz.de&amp;gt;&lt;/P&gt;&lt;P&gt;Internet:       &lt;A href="www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;" target="test_blank"&gt;www.helmholz.de&amp;lt;http://www.helmholz.de&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRA 10671&lt;/P&gt;&lt;P&gt;Persönlich haftende Gesellschafterin Helmholz Verwaltungs GmbH&lt;/P&gt;&lt;P&gt;Reg. Gericht Fürth (Bay.) HRB 15642&lt;/P&gt;&lt;P&gt;Geschäftsführer: Carsten Bokholt, Karsten Eichmüller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 10:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-am-facing-a-tx-underrun-error-in-lpc1768-emac-driver/m-p/884074#M35413</guid>
      <dc:creator>ankish_sharma1</dc:creator>
      <dc:date>2019-04-05T10:42:30Z</dc:date>
    </item>
  </channel>
</rss>

