<?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: Ethernet init problem with LPCopen and CMSIS in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1314089#M4264</link>
    <description>&lt;P&gt;same problem with LPC1758 board. How did you solve it?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 20:26:48 GMT</pubDate>
    <dc:creator>dvednere</dc:creator>
    <dc:date>2021-07-27T20:26:48Z</dc:date>
    <item>
      <title>Ethernet init problem with LPCopen and CMSIS</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1028502#M3188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I need to use LPCOpen and CMSIS together. My webserver code is written at LWIP lpcopen and my main code written at cmsis. when ı add webserver to main code, ethernet init function is halted and debugger is freeze.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, that's not the only the problem, is there any some major problem ?&lt;/P&gt;&lt;P&gt;How can ı solved this problem? How can ı run lwip server at lpcopen with cmsis.&lt;/P&gt;&lt;P&gt;I add some photo from options,codes and workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Debugger is halted at pENET-&amp;gt;MAC.MAC1 = ENET_MAC1_PARF;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void Chip_ENET_Init(LPC_ENET_T *pENET, bool useRMII)&lt;BR /&gt;{&lt;BR /&gt; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_ENET);&lt;BR /&gt; resetENET(pENET);&lt;/P&gt;&lt;P&gt;/* Initial MAC configuration for full duplex,&lt;BR /&gt; 100Mbps, inter-frame gap use default values */&lt;BR /&gt; pENET-&amp;gt;MAC.MAC1 = ENET_MAC1_PARF;&lt;BR /&gt; pENET-&amp;gt;MAC.MAC2 = ENET_MAC2_FULLDUPLEX | ENET_MAC2_CRCEN | ENET_MAC2_PADCRCEN;&lt;/P&gt;&lt;P&gt;if (useRMII) {&lt;BR /&gt; pENET-&amp;gt;CONTROL.COMMAND = ENET_COMMAND_FULLDUPLEX | ENET_COMMAND_PASSRUNTFRAME | ENET_COMMAND_RMII;&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; pENET-&amp;gt;CONTROL.COMMAND = ENET_COMMAND_FULLDUPLEX | ENET_COMMAND_PASSRUNTFRAME;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;pENET-&amp;gt;MAC.IPGT = ENET_IPGT_FULLDUPLEX;&lt;BR /&gt; pENET-&amp;gt;MAC.IPGR = ENET_IPGR_P2_DEF;&lt;BR /&gt; pENET-&amp;gt;MAC.SUPP = ENET_SUPP_100Mbps_SPEED;&lt;BR /&gt; pENET-&amp;gt;MAC.MAXF = ENET_ETH_MAX_FLEN;&lt;BR /&gt; pENET-&amp;gt;MAC.CLRT = ENET_CLRT_DEF;&lt;/P&gt;&lt;P&gt;/* Setup default filter */&lt;BR /&gt; pENET-&amp;gt;CONTROL.COMMAND |= ENET_COMMAND_PASSRXFILTER;&lt;/P&gt;&lt;P&gt;/* Clear all MAC interrupts */&lt;BR /&gt; pENET-&amp;gt;MODULE_CONTROL.INTCLEAR = 0xFFFF;&lt;/P&gt;&lt;P&gt;/* Disable MAC interrupts */&lt;BR /&gt; pENET-&amp;gt;MODULE_CONTROL.INTENABLE = 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100358i6EBDA165213B659B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&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/100359iE0ABF2B69FD0B49D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100360i2F4A96E159F1AA3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100361i16D563DAD7776516/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 13:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1028502#M3188</guid>
      <dc:creator>ramazan_kurban3</dc:creator>
      <dc:date>2019-12-31T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet init problem with LPCopen and CMSIS</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1028503#M3189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramazan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you're using CMSIS in the LPCOpen Library you should eliminate the preprocessor declaration&amp;nbsp;&lt;/P&gt;&lt;P&gt;__USE_LPCOPEN, this due to the discrepancy in the IRQ name, in the CMSIS library is called differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101451i3A026B376141EEBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1028503#M3189</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-02T22:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet init problem with LPCopen and CMSIS</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1183452#M4019</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I finally found someone that has my same problem. My mbed NXP LPC1768 &lt;SPAN&gt;halted in&amp;nbsp;Chip_ENET_Init() function, but it didn't always halt in&amp;nbsp;pENET-&amp;gt;MAC.MAC1 = ENET_MAC1_PARF line, but could also stop inside the&amp;nbsp;resetENET(pENET) call in a indeterministic way.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;The debug error showed is the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata 2020-11-15 alle 18.35.00.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130063i4608452843549969/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata 2020-11-15 alle 18.35.00.png" alt="Schermata 2020-11-15 alle 18.35.00.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and than, if I try to rerun the project a “Cannot halt processor” console error appears and after this error I become no longer able to test any project on the LPC1768 with MCUXpresso, because if I try to run any project, the error always return.&lt;/P&gt;&lt;P&gt;The only way to recover the LPC platform is to use MBED Studio to build a .bin execution file, and load it in the device driver of LPC1768. After power-cycle the board by disconnecting and reconnecting the cable, I can still use MCUXpresso to run projects.&lt;/P&gt;&lt;P&gt;Moreover I found that the&amp;nbsp;&lt;SPAN&gt;0x50000000 address, showed in the debug console error, is the ethernet peripherals base address. Why should an access on the ethernet peripherals base address give this error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Trying to&amp;nbsp;eliminate the preprocessor declaration&amp;nbsp;&lt;EM&gt;__USE_LPCOPEN&lt;/EM&gt; as suggested by&amp;nbsp;&lt;SPAN&gt;Alexis nothing changed, the&amp;nbsp;problem remains and the behavior is the same.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata 2020-11-15 alle 18.35.57.png" style="width: 446px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130064i1AC710348B85FAD4/image-dimensions/446x466?v=v2" width="446" height="466" role="button" title="Schermata 2020-11-15 alle 18.35.57.png" alt="Schermata 2020-11-15 alle 18.35.57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What can I do to solve this problem? Every demo project with an ethernet communication stop with this error on&amp;nbsp;Chip_ENET_Init() function, while a freertos demo project&amp;nbsp;without an ethernet communication works well (for example the&amp;nbsp;&lt;EM&gt;freertos_blinky&amp;nbsp;&lt;/EM&gt;project). I think that the problem is on the&amp;nbsp;ethernet peripherals base address. Could it be?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 19:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1183452#M4019</guid>
      <dc:creator>mircodemarchi</dc:creator>
      <dc:date>2020-11-15T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet init problem with LPCopen and CMSIS</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1183463#M4020</link>
      <description>&lt;P&gt;Check that the peripheral is enabled. It sound exactly like it is disabled. I think this is changed in the PCONP register, but it’s been a while since I used this chip, so could have the register name wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 21:21:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1183463#M4020</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-11-15T21:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ethernet init problem with LPCopen and CMSIS</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1314089#M4264</link>
      <description>&lt;P&gt;same problem with LPC1758 board. How did you solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 20:26:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Ethernet-init-problem-with-LPCopen-and-CMSIS/m-p/1314089#M4264</guid>
      <dc:creator>dvednere</dc:creator>
      <dc:date>2021-07-27T20:26:48Z</dc:date>
    </item>
  </channel>
</rss>

