<?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: FEC buffer overrun. MCF5282 CW7.1.1a please help in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219662#M11178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its seems that reducing the Rx buffer length from 2048 to 1520 made my program a lot more stable.&amp;nbsp; I guess that my problem was memory corruption as the firmware was bugging or jamming at strange places.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the stack was getting corrupted by the ring of buffers, like a case I saw on a similar post on the forum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 23:04:53 GMT</pubDate>
    <dc:creator>francois_boucha</dc:creator>
    <dc:date>2009-11-19T23:04:53Z</dc:date>
    <item>
      <title>FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219654#M11170</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck with an Ethernet driver problem.&amp;nbsp; I'm getting buffer overrun errors on some packets which subsequently are dropped.&amp;nbsp; I'm using lwIP1.3.0 TCP/IP stack, but my problem is on the low level (drivers).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included my driver code (which has been taken mostly from the FreeRTOS port), but again, please concentrate on the FEC buffer ring code, frame reception code, and its ISR routine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;files:&lt;/P&gt;&lt;P&gt;fec.c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the receive task, Rx ISR, init code, etc.&lt;/P&gt;&lt;P&gt;fec.h&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nbuc.c&amp;nbsp;&amp;nbsp; // the fec buffer ring module&lt;/P&gt;&lt;P&gt;nbuf.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 21:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219654#M11170</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-10-06T21:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219655#M11171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oups I forgot attachment!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CFCOMM/7844_ethernet_drivers.zip" rel="nofollow" target="_self"&gt;ethernet_drivers.zip&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-07&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;09:01 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 22:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219655#M11171</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-10-06T22:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219656#M11172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to look at An3928SW.zip file. It contains lwIP 1.3.0 with FreeRTOS 5.3.0 using the same FEC controller (fec.c and nbuf.c). Then you will be able to look at the differences and fix them. Now I'm running this SW with 5235 and without any memory restriction as MCF51CN12 :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 22:47:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219656#M11172</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2009-10-06T22:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219657#M11173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, Could you please point me out where to find "An3928SW.zip"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 23:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219657#M11173</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-10-06T23:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219658#M11174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I got the file &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 00:26:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219658#M11174</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-10-07T00:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219659#M11175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;0xFB wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck with an Ethernet driver problem.&amp;nbsp; I'm getting buffer overrun errors on some packets which subsequently are dropped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The 5282 chip has uncorrected flaws when used on 10BaseT links. The Device Errata sheet from Freescale (Document Number: MCF5282DE) includes paragraphs titled "FEC Receive Buffer Overrun in 10BaseT Mode" and "Concantenation of Received Frames in 10BaseT Mode".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the workarounds suggests that buffers need to be 64 bytes longer than the longest frame, but we have found they need to be a full 2048 bytes to prevent memory corruption. I have not seen published drivers that cope with the 5282 errata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 00:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219659#M11175</guid>
      <dc:creator>bkatt</dc:creator>
      <dc:date>2009-10-07T00:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219660#M11176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bkatt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;full 2048 bytes buffer length checked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
MCF_FEC_EMRBR = 2048 - 1;&lt;/PRE&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must check to be shure FEC operates on 100baseT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My drivers seems pretty much like the one Paolo talks about.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beside the dropped frames, I got now a Rx buffer that says EMPTY &lt;U&gt;and&lt;/U&gt; IN_USE at the same time.&amp;nbsp; Then the program gets stuck in infinite loop in the FEC receive routine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 23:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219660#M11176</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-10-09T23:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219661#M11177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please let us know what was the issue as soon as you get it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to take whatever you want from the code and modify it as you like&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 23:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219661#M11177</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2009-10-09T23:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: FEC buffer overrun. MCF5282 CW7.1.1a please help</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219662#M11178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its seems that reducing the Rx buffer length from 2048 to 1520 made my program a lot more stable.&amp;nbsp; I guess that my problem was memory corruption as the firmware was bugging or jamming at strange places.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the stack was getting corrupted by the ring of buffers, like a case I saw on a similar post on the forum.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 23:04:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/FEC-buffer-overrun-MCF5282-CW7-1-1a-please-help/m-p/219662#M11178</guid>
      <dc:creator>francois_boucha</dc:creator>
      <dc:date>2009-11-19T23:04:53Z</dc:date>
    </item>
  </channel>
</rss>

