<?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: Powering down Ethernet PHY breaks debugging [LPC4088] in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758442#M30516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;jeremyzhou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the new issue you talked about, I can replicate the issue you describle, the debugger will lost its behavior during initializing the Ehternet module and PHY chip.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You have not understood the new issue. I don't just lose debugging connection. The microcontroller hangs. That is, following&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN)&lt;/SPAN&gt;&amp;nbsp;to power down the PHY, and then &lt;SPAN style="color: #51626f; background-color: #ffffff; font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;NVIC_SystemReset()&lt;/SPAN&gt;, the micro never gets past&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;LPC_EMAC-&amp;gt;MAC1 = MAC1_PASS_ALL&lt;/SPAN&gt; in the PHY initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;And the Eva board is &lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.embeddedartists.com%2Fproducts%2Foem%2Flpc4088_oem.php" rel="nofollow" target="_blank"&gt;LPC4088 OEM board&lt;/A&gt; and debug tool is LPC-Link 2.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As I said, I'm using the &lt;A href="https://www.embeddedartists.com/products/boards/lpc4088_qsb.php"&gt;LPC4088 QuickStart board&lt;/A&gt;, not the OEM board. Does the OEM board use the same PHY as the QSB, and are all the connections between the PHY and the micro the same as the QSB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have an OEM board, so EA won't let me download the schematic to check for myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 13:45:14 GMT</pubDate>
    <dc:creator>bmcdonnell_ionx</dc:creator>
    <dc:date>2018-05-14T13:45:14Z</dc:date>
    <item>
      <title>Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758433#M30507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to power down the Ethernet PHY on my&amp;nbsp;&lt;A href="https://www.embeddedartists.com/products/boards/lpc4088_qsb.php"&gt;Embedded Artists' LPC4088QSB&lt;/A&gt; (QuickStart Board), in order to reduce the current draw. I've got some code which seems to do it, and reduces the current draw by (very) roughly 40 mA. But executing this code breaks debugging in a very strange way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Mbed OS 5.7.5 in MCUXpresso. I describe further below how to check out and setup the project. But first I detail the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my test code where I demonstrate the issue:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/bmcdonnell-ionx/eth-dbg-issue" title="https://github.com/bmcdonnell-ionx/eth-dbg-issue"&gt;GitHub - bmcdonnell-ionx/eth-dbg-issue&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is this the right way to power down the PHY? Why is it breaking debugging, and how can I fix it?&lt;/STRONG&gt; Details follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;Problem Description&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem goes like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Once&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN);&lt;/SPAN&gt; is called in main.cpp, and then&amp;nbsp;&lt;EM&gt;after&amp;nbsp;&lt;/EM&gt;a reset or power-cycle,&amp;nbsp;&lt;EM&gt;and after&amp;nbsp;&lt;/EM&gt;the code gets past the first for loop in &lt;A href="https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ethernet_init()&lt;/SPAN&gt;&lt;/A&gt;, you will no longer be able to debug. (i.e. The debugger can't halt the micro anymore, so you can't single step, "run to", or the like.)&lt;UL&gt;&lt;LI&gt;This issue persists even after reset or power cycle. (Meaning you lose the ability to halt the micro once you pass that place inside ethernet_init().)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The only way I've found to fix the issue is as follows:&lt;UL&gt;&lt;LI&gt;Power cycle the board so that you'll be able to halt the micro again (initially).&lt;/LI&gt;&lt;LI&gt;Erase the micro flash.&lt;/LI&gt;&lt;LI&gt;Power cycle the board again.&lt;/LI&gt;&lt;LI&gt;Now you'll be able to debug normally - until you pass that&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;phy_write()&lt;/SPAN&gt; call again.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried debugging with the on-board debugger, and with a separate LPC-Link2; results were the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue presents itself in all three of the commits in the repository now. (If you use the most recent, you may need to change the place to "Stop on startup" in Run -&amp;gt; Debug Configurations... -&amp;gt; Debugger tab.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;Project Setup&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://git-scm.com/downloads"&gt;Git&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Python&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/ARMmbed/mbed-cli#installing-mbed-cli"&gt;Mbed CLI&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;MCUXpresso IDE&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the command prompt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbed import&amp;nbsp;&lt;A class="unlinked"&gt;https://github.com/bmcdonnell-ionx/eth-dbg-issue.git&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd eth-dbg-issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbed export -m LPC4088 -i mcuxpresso&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;git clone&amp;nbsp;&lt;A style="color: #606060;"&gt;https://github.com/bmcdonnell-ionx/eth-dbg-issue.git&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;cd eth-dbg-issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbed deploy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbed export -m LPC4088 -i mcuxpresso&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in MCUXpresso, import the project from the filesystem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 00:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758433#M30507</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-02-20T00:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758434#M30508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx" rel="nofollow noopener noreferrer" target="_blank"&gt;Brendan McDonnell&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;Two suggestions:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;1) You can force the PWR_DOWN/INT pin to low to put the device in power down mode instead of setting bit 11 (power down) in the basic mode control register, BMCR (0x00h).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;SPAN style="font-family: 'Microsoft YaHei', STXihei; background-color: #ffffff;"&gt;2) Please give the following code a try.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/*****************************************************/&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; 
&lt;SPAN class="comment token"&gt;//&amp;nbsp; Private functions&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/*****************************************************/&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; write_PHY &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; PhyReg&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; Value&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; tout&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_EMAC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;MADR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;PHY_ADDRESS&lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; PhyReg&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_EMAC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;MWTD &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Value&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Wait utill operation completed */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tout &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tout &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; tout &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; MII_WR_TOUT&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; tout&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LPC_EMAC&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;MIND &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; MIND_BUSY&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp; 
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;DIV style="white-space: pre-wrap; text-align: left; line-height: 1.75; font-size: 14px;"&gt;Have a great day,&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIC&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>Mon, 26 Feb 2018 03:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758434#M30508</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-02-26T03:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758435#M30509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I understand correctly that your "two suggestions" are "either-or", meaning I would expect to use one or the other but not both?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I do not see any pins by the name "PWR_DOWN/INT" in the&amp;nbsp;&lt;A href="http://ww1.microchip.com/downloads/en/DeviceDoc/00002165B.pdf"&gt;PHY (LAN8720) datasheet&lt;/A&gt;. Please specify which pin you're referring to by the name used there. Keep in mind not all the&amp;nbsp;PHY pins are connected to GPIOs on the micro; refer to the LPC4088QSB schematic, page 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're referring to the Configuration Straps (section 3.7 of the datasheet), wouldn't I be creating a race condition if I try to use them? The reset pin on the PHY is tied to the reset pin on the micro, so I can't set the configuration straps and then reboot the PHY. I'd have to race to set the micro GPIOs ASAP on its startup before the PHY reads the config straps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;In your code, does&amp;nbsp;PHY_ADDRESS == 1? If so, then I don't see any difference between your code&amp;nbsp;and my code, except that mine returns a value indicating success/failure, and yours doesn't. Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 15:34:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758435#M30509</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-02-26T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758436#M30510</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Sorry, I made a mistake, as I refered to the PHY device: DP83848's datasheet.&lt;/P&gt;&lt;P&gt;To dig much deeper, I'll give a try to replicate the phenomenon later.&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: 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, 27 Feb 2018 06:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758436#M30510</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-02-27T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758437#M30511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/people/jeremyzhou"&gt;‌&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What have you found on this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please remove the "assumed answered" tag on this post. It is not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a new problem now, too. When I power down the PHY with software&amp;nbsp;/ register writes (&lt;A href="https://github.com/bmcdonnell-ionx/eth-dbg-issue/blob/master/main.cpp#L103"&gt;like this&lt;/A&gt;), then call Mbed OS's&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;system_reset()&lt;/SPAN&gt; (which calls &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NVIC_SystemReset()&lt;/SPAN&gt;), the system hangs at the same place (&lt;A href="https://github.com/ARMmbed/mbed-os/blob/ae6c7c60f91c89cbf755a2f3c8ec9c66635849fd/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c#L470"&gt;here&lt;/A&gt;) as described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have a work-around for this issue like I do for the one above (debugging), so this has become more pressing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 23:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758437#M30511</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-09T23:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758438#M30512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may not be related, but this reminds me of a problem we had with our first LPC2468 design (long ago!).&lt;/P&gt;&lt;P&gt;The LPC2468 could be a beast when it dîdn't get the Ethernet clock. The debugger session crashed on the first attempt to access the Ethernet registers when the 50mhz clock was off. Perhaps your powering down the Phy also switches this clock off? But I must say this was with the Keil debugger, not mbed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 03:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758438#M30512</guid>
      <dc:creator>gerhardk</dc:creator>
      <dc:date>2018-05-10T03:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758439#M30513</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;After several rounds of testing, I suspect that this issue is relative to the IDE, as the issue donesn't exist in IAR or KEIL.&lt;/P&gt;&lt;P&gt;I follow your describtion, reset the MCU after the MCU execute &lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN);&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The MCU can stop at the breakpoints successful after the MCU is initialized.&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: 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>Fri, 11 May 2018 08:41:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758439#M30513</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-11T08:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758440#M30514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy, thanks for the follow-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the new issue I described?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;bmcdonnell_ionx wrote:&lt;/P&gt;&lt;P&gt;...&lt;SPAN&gt;I have a new problem now, too. When I power down the PHY with software&amp;nbsp;/ register writes (&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fbmcdonnell-ionx%2Feth-dbg-issue%2Fblob%2Fmaster%2Fmain.cpp%23L103" rel="nofollow" style="color: #2989c5; text-decoration: none; padding-right: calc(12px + 0.35ex);" target="_blank"&gt;like this&lt;/A&gt;), then call Mbed OS's&amp;nbsp;system_reset()&amp;nbsp;(which calls&amp;nbsp;NVIC_SystemReset()), the system hangs at the same place (&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FARMmbed%2Fmbed-os%2Fblob%2Fae6c7c60f91c89cbf755a2f3c8ec9c66635849fd%2Ftargets%2FTARGET_NXP%2FTARGET_LPC408X%2FTARGET_LPC4088%2Fethernet_api.c%23L470" rel="nofollow" style="color: #2989c5; text-decoration: none; padding-right: calc(12px + 0.35ex);" target="_blank"&gt;here&lt;/A&gt;) as described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;-----&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;jeremyzhou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&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="306394" data-objecttype="3" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I suspect that this issue is relative to the IDE, as the issue donesn't exist in IAR or KEIL.&lt;/P&gt;&lt;P&gt;I follow your describtion, reset the MCU after the MCU execute &lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN);&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The MCU can stop at the breakpoints successful after the MCU is initialized.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To reset the micro, were you using the reset button on the IDE debug mode toolbar, like I did?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to reproduce the issue in MCUXpresso? Did you use my Mbed project and export to IAR and Keil? Or did you use LPCOpen-based code of your own?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is an IDE problem, then&amp;nbsp;that is still NXP's responsibility, as MCUXpresso is your product - right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 13:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758440#M30514</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-11T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758441#M30515</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I've done the more testing with IAR and LPCXpresso IDE and let me demonstrate the testing result.&lt;/P&gt;&lt;P&gt;The demo code is periph_ethernet demo which is from the LPCOpen library, as I can test with different IDE and I'm not family with the Mbed OS 5.7.5. And the Eva board is &lt;A href="https://www.embeddedartists.com/products/oem/lpc4088_oem.php"&gt;LPC4088 OEM board&lt;/A&gt; and debug tool is LPC-Link 2.&lt;/P&gt;&lt;P&gt;In both of LPCXpresso and IAR IDE, the debug behavior will be lost when click restart button after executing the power down the PHY: LAN8720, as the Fig 1and Fig 2 show.&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/32550i678337BDA49806F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Fig 1&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/32552iF862589ADC06EE5C/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 style="text-align: center;"&gt;Fig 2&lt;/P&gt;&lt;P&gt;To recover the debug behavior, I should repower the board and external debugger, then breakpoint feature will become available, in another word, I've not encountered the issue like yours.&lt;/P&gt;&lt;P&gt;About the new issue you talked about, I can replicate the issue you describle, the debugger will lost its behavior during initializing the Ehternet module and PHY chip.&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/33160i782E49EF2DF1E1BF/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 style="text-align: center;"&gt;Fig 3&lt;/P&gt;&lt;P&gt;To recomever it, clicking terminate all debug sessions button to stop the current debug behavior, then start a new round of debugg.&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: 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>Mon, 14 May 2018 07:03:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758441#M30515</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-14T07:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758442#M30516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;jeremyzhou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the new issue you talked about, I can replicate the issue you describle, the debugger will lost its behavior during initializing the Ehternet module and PHY chip.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You have not understood the new issue. I don't just lose debugging connection. The microcontroller hangs. That is, following&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN)&lt;/SPAN&gt;&amp;nbsp;to power down the PHY, and then &lt;SPAN style="color: #51626f; background-color: #ffffff; font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;NVIC_SystemReset()&lt;/SPAN&gt;, the micro never gets past&amp;nbsp;&lt;SPAN style="font-size: 13px;"&gt;LPC_EMAC-&amp;gt;MAC1 = MAC1_PASS_ALL&lt;/SPAN&gt; in the PHY initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;And the Eva board is &lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.embeddedartists.com%2Fproducts%2Foem%2Flpc4088_oem.php" rel="nofollow" target="_blank"&gt;LPC4088 OEM board&lt;/A&gt; and debug tool is LPC-Link 2.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As I said, I'm using the &lt;A href="https://www.embeddedartists.com/products/boards/lpc4088_qsb.php"&gt;LPC4088 QuickStart board&lt;/A&gt;, not the OEM board. Does the OEM board use the same PHY as the QSB, and are all the connections between the PHY and the micro the same as the QSB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have an OEM board, so EA won't let me download the schematic to check for myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 13:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758442#M30516</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-14T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758443#M30517</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your clarification.&lt;/P&gt;&lt;P&gt;I don't have the &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.embeddedartists.com%2Fproducts%2Fboards%2Flpc4088_qsb.php" rel="nofollow" target="_blank"&gt;LPC4088 QuickStart board&lt;/A&gt; on hand, and in the OEM board, the PHY chip is LAN8720 (please checking the attachment),so I believe it's Okay to test with this board and I'd highly recommend you to do some testing with LPCOpen library on &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.embeddedartists.com%2Fproducts%2Fboards%2Flpc4088_qsb.php" rel="nofollow" target="_blank"&gt;LPC4088 QuickStart board&lt;/A&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: 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, 15 May 2018 01:45:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758443#M30517</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-15T01:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758444#M30518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the schematic. The PHY circuits and connections to the micro look about the same, except for a few resistor values, and the diode network between the PHY and the Ethernet port on the QSB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try &lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 13px;"&gt;phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN)&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;to power down the PHY, and then&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 13px;"&gt;NVIC_SystemReset()&lt;/SPAN&gt;? What was the result? Were you able to get through PHY initialization after the reset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 13:48:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758444#M30518</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-15T13:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758445#M30519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brendan McDonnell&lt;BR /&gt;The code running can't stop or be halted after executing the phy_write(PHY_REG_BMCR, PHY_BMCR_PWR_DOWN)&amp;nbsp; and NVIC_SystemReset(), it needs to click terminate all debug sessions button to recover(Fig 1).&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/21215i0C0F7948C17F12D9/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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fig 1&lt;BR /&gt;Then enter the debug model again, the code running can stop at breakpoints and be halted after initializing the external PHY.&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: 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>Wed, 16 May 2018 08:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758445#M30519</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-16T08:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758446#M30520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you still don't understand my second/new issue, which has nothing to do with debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share your test code with me so I can try to reproduce the issue with it. Please make a zip file including&amp;nbsp;the whole projects, so I can import directly into MCUXpresso and build.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 16:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758446#M30520</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-16T16:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758447#M30521</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" class="" data-content-finding="Community" data-userid="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Please checking the attachment.&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: 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>Thu, 17 May 2018 02:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758447#M30521</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-17T02:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758448#M30522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code. I've modified it to demonstrate the "new problem" noted above. Please download my code (link below), build, program your target, and press the reset button on your board to let it run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DO NOT DEBUG.&lt;/STRONG&gt; Just program and run. If your OEM board behaves the same as my QSB, you will see that it executes everything through the&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NVIC_SystemReset()&lt;/SPAN&gt; once, then resets, and gets stuck (hangs) inside&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Chip_ENET_Init()&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/bmcdonnell-ionx/eth-power-down-issue-lpcopen" title="https://github.com/bmcdonnell-ionx/eth-power-down-issue-lpcopen"&gt;GitHub - bmcdonnell-ionx/eth-power-down-issue-lpcopen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to revert commit&amp;nbsp;1b3fb3f, in which I modified the board files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I think this is closer to the root cause of why we lost the debug connection. The whole system actually hangs.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the&amp;nbsp;problem has to do with running the&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Chip_ENET_Init()&lt;/SPAN&gt;&amp;nbsp;after &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Powerdown_PHY().&lt;/SPAN&gt;&amp;nbsp;I don't think&amp;nbsp;it's&amp;nbsp;actually&amp;nbsp;related to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NVIC_SystemReset()&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 17:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758448#M30522</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-17T17:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758449#M30523</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I'm able to replicate the phenomenon, the code will stuck in Chip_ENET_Init() after calling &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;NVIC_SystemReset().&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;We'd like to recommend you use the WDT reset instead of software reset, and give a try.&lt;/SPAN&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: 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>Fri, 18 May 2018 08:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758449#M30523</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-18T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758450#M30524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy, replacing NVIC_SystemReset() with WDT reset makes no difference, as&amp;nbsp;demonstrated by the new&amp;nbsp;&lt;A href="https://github.com/bmcdonnell-ionx/eth-power-down-issue-lpcopen/tree/wdt-reset"&gt;wdt-reset branch&lt;/A&gt;&amp;nbsp;of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;reset&lt;/EM&gt; is the reason I need to reinitialize the PHY, but it is apparently&amp;nbsp;&lt;EM&gt;not the cause&lt;/EM&gt; of the issue, as demonstrated by the new&amp;nbsp;&lt;A href="https://github.com/bmcdonnell-ionx/eth-power-down-issue-lpcopen/tree/no-reset"&gt;no-reset branch&lt;/A&gt;&amp;nbsp;of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please advise on how I can power down and then safely re-initialize the PHY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2018 20:27:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758450#M30524</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-18T20:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758451#M30525</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="306394" data-username="bmcdonnell_ionx" href="https://community.nxp.com/people/bmcdonnell_ionx"&gt;Brendan McDonnell&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;To implement it, in addition to the reset button, you need to add a hard reset trigger for LAN8720, as the Figure 1 illustrates.&lt;BR /&gt;As we know, the MCU will re-enter main.c after calling NVIC_SystemReset(), it's available to use a GPIO pin to emulate a Reset button to reset the LAN8702 before initializing it, as software reset doesn't pull know the reset pin.&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/900i659CC2EFD2231993/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Fig 1&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;BR /&gt;And on page 59 in the datasheet, it demonstrates the boot process of LAN8720, it would help you to emulate the hardware reset.&lt;/P&gt;&lt;P style="text-align: left;"&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/4706iFBC61C8854641070/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 style="text-align: center;"&gt;Fig 2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps.&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: 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>Mon, 21 May 2018 09:14:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758451#M30525</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-05-21T09:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Powering down Ethernet PHY breaks debugging [LPC4088]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758452#M30526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;jeremyzhou wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To implement it, in addition to the reset button, you need to add a hard reset trigger for LAN8720, as the Figure 1 illustrates.&lt;BR /&gt;...use a GPIO pin to emulate a Reset button to reset the LAN8702 before initializing it&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So it can't be done with this board?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC4088QSB_Eth_PHY.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8442i54149041381F9362/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC4088QSB_Eth_PHY.png" alt="LPC4088QSB_Eth_PHY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC4088QSB_HDK_MBED_RESET.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8465iBD5FF82886607E37/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC4088QSB_HDK_MBED_RESET.png" alt="LPC4088QSB_HDK_MBED_RESET.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 14:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Powering-down-Ethernet-PHY-breaks-debugging-LPC4088/m-p/758452#M30526</guid>
      <dc:creator>bmcdonnell_ionx</dc:creator>
      <dc:date>2018-05-21T14:20:24Z</dc:date>
    </item>
  </channel>
</rss>

