<?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: LPC1788 Ethernet Bootloader via Flash Magic in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545307#M9162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by research on Wed May 22 02:52:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are also working in LPC1788 Ethernet Bootloader. can you share sample code for Ethernet bootloader with us..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Research&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:21:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:21:17Z</dc:date>
    <item>
      <title>LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545304#M9159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by irvind on Thu Nov 08 22:26:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on LPC1788 ethernet bootloader, firmware flashed with flash magic application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far everthing working fine like erase flash, blank check, read ID and security etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I start to program blinky.hex. I feel that flash magic was sending data packet faster than my board can receive it(checked with wireshark FM sending 12-14 data packet without delay). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of the time my board receive 4 packets and I check these EMAC index(LPC_EMAC-&amp;gt;RxConsumeIndex,LPC_EMAC-&amp;gt;RxProduceIndex) shown that no more data in the network. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyone who facing this problem or some suggestion how to overcome this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545304#M9159</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545305#M9160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by irvind on Sun Nov 11 22:56:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;can anyone give some advice on this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545305#M9160</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545306#M9161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ex-kayoda on Mon Nov 12 06:09:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You're not giving us a lot of information about software (code?) and hardware (Board? PHY?)&amp;nbsp; ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545306#M9161</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545307#M9162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by research on Wed May 22 02:52:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are also working in LPC1788 Ethernet Bootloader. can you share sample code for Ethernet bootloader with us..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Research&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545307#M9162</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545308#M9163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by research on Wed May 22 03:51:54 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share with emac.c for LPC1788 Ethernet Boot loader&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Research&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545308#M9163</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545309#M9164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nil on Thu Jan 29 09:05:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am also working on the same thing can you share any sample code of boot loader.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545309#M9164</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545310#M9165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Jan 31 20:33:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks like it may be a problem with the implementation of the TCP stack -- you didn't say if it was roll your own,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(LPCOpen) LWIP or what.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When TCP has received enough to momentarily fill it's buffers (i.e doesn't want any more for a bit) a field in the TCP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;packet header for the ACK (or ACKS) called 'window' is decreased to indicate how much more data (i.e input packets)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can be handled. This is even allowd to reduce to zero. When the application has emptied (i.e retrieved) enough data to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;free up&amp;nbsp; some the TCP stack's buffer space, this window field will be increased. [This is a simplification].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if packets arrive that cannot be handled, the ACK number doesn't acknowledge anything out side the so called&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;receive window. But then the other end will re-send them assuming that they were lost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This suggests that the TCP stack on the 1778 is not fully complient, or that Flash Magic is ignoring the window&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;advertisement (or at least Window's error response from a 'send' call).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See "RFC 793" (Google, freely available, for the 'Standard' description of TCP) or (again Google) any TCP info &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;website. This is obviously somewhat technical, and may be more than you wanted to know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your Wireshark logs will show if this (guess) is true or not when you inspect the packet headers (from the 1778).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that this will point you in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545310#M9165</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 Ethernet Bootloader via Flash Magic</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545311#M9166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Jan 31 20:53:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, specifically for the 1778 EMAC, if there are no buffers (as indicated by RxProduce/RxComsume) then any&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input packets will be simply discarded and will not make it to the TCP stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you probably know, after a packet has been copied to the TCP stack, the RxConsume index has to be advanced&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to free up another DMA buffer for the EMAC controller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned previously, Flash Magic should not even attempt to send more packets than fit in the latest ack packet's&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;window size (starting with the ack for the syn packet that opened the connection). So running out of (receiving too many)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DMA buffers &lt;/SPAN&gt;&lt;I&gt;should&lt;/I&gt;&lt;SPAN&gt; not be an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But perhaps you input packet handler takes to long to process them before 'releasing' the DMA buffers. Maybe the TCP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stack code need to copy and then release the (DMA) buffers earlier in the processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Your code should receive the entire download before erasing/writing to flash. It should definitely NOT be burning&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;each section as it comes in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, just guesses, Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1788-Ethernet-Bootloader-via-Flash-Magic/m-p/545311#M9166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:21:20Z</dc:date>
    </item>
  </channel>
</rss>

