<?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: LPC1769 Ethernet Bare metal</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Ethernet-Bare-metal/m-p/748311#M30142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the following thread and let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/423995"&gt;simple Ethernet example [LPC1769]&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 23:25:35 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2018-02-06T23:25:35Z</dc:date>
    <item>
      <title>LPC1769 Ethernet Bare metal</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Ethernet-Bare-metal/m-p/748310#M30141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom board based on lpc1769 with ethernet.&lt;/P&gt;&lt;P&gt;I've seen that in LPCopen library, the ethernet driver uses the interrupts only with an RTOS.&lt;/P&gt;&lt;P&gt;I needed to use the ethernet with a bare-metal application, and wanted to enable the interrupt , to manage ethernet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the IRQHandler (since the default one, in the driver disables the ETH IRQ ) . I moved the packet management out of the IRQ handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void ETH_IRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt; //NVIC_DisableIRQ(ETHERNET_IRQn);&lt;/P&gt;&lt;P&gt;/* Interrupts are not used without an RTOS */&lt;BR /&gt; uint32_t ints;&lt;BR /&gt; uint32_t prevtick=timerTick;&lt;/P&gt;&lt;P&gt;ints = Chip_ENET_GetIntStatus(LPC_ETHERNET);&lt;BR /&gt; if (ints &amp;amp; RXINTGROUP) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;struct pbuf *p;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;struct eth_hdr *ethhdr;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;int print_i;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* move received packet into a new pbuf */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;p = lpc_low_level_input(p_lpc_netif);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (p != NULL) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list_add_element(&amp;amp;g_rx_pbuf_list,p);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;BR /&gt; if (ints &amp;amp; TXINTGROUP) {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Chip_ENET_ClearIntStatus(LPC_ETHERNET, ints);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that, randomly, i have droped packets, since theses are corrupted, and some time after, a hard fault appears. It happens that the Hard fault appears without any droped packet.&amp;nbsp; I suppose that i'm doing something wrong, but i don't get whey it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that there is a reason why on lpcopen, the ethernet management is not done with interrupt on a bare metal system, but i can't figure out the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your time :smileyhappy:&amp;nbsp;If you have any solution ? something i missed in the documentation ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 10:45:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Ethernet-Bare-metal/m-p/748310#M30141</guid>
      <dc:creator>sahakagopyan</dc:creator>
      <dc:date>2018-01-23T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 Ethernet Bare metal</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Ethernet-Bare-metal/m-p/748311#M30142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the following thread and let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/423995"&gt;simple Ethernet example [LPC1769]&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 23:25:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Ethernet-Bare-metal/m-p/748311#M30142</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2018-02-06T23:25:35Z</dc:date>
    </item>
  </channel>
</rss>

