<?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>MQX Software SolutionsのトピックRe: Detect Ethernet connection fails</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397268#M13337</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;the problem is not right setting of the PHY address with pull-up and pull-down in my hardware. After correcting this the detecting of the link is working well.&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 07:42:21 GMT</pubDate>
    <dc:creator>kappa74</dc:creator>
    <dc:date>2015-04-22T07:42:21Z</dc:date>
    <item>
      <title>Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397260#M13329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I use K60 with MQX4.1 and KDS2.0 and I have a problem with detecting Ethernet link. I have the layer KSZ8721BL and the communication works fine only with the MQX lybraries phy_83xxx.c.&lt;/P&gt;&lt;P&gt;But the function "static boolean phy_dp83xxx_get_link_status" doesn't work properly: I have always connection actived even if the Ethernet cable is disconnected.&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;Do you have any suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:16:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397260#M13329</guid>
      <dc:creator>kappa74</dc:creator>
      <dc:date>2015-04-10T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397261#M13330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mirko,&lt;/P&gt;&lt;P&gt;Have you successfully been able to read the PHY so you know you have the correct PHY Address?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397261#M13330</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-04-10T15:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397262#M13331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I read the first three registers but all their values was 0xFF.&lt;/P&gt;&lt;P&gt;There is something of strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397262#M13331</guid>
      <dc:creator>kappa74</dc:creator>
      <dc:date>2015-04-10T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397263#M13332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use ksz8041 instead of dp83xxx, ksz8041 and KSZ8721BL are the same manufacturer - Micrel. Some registers may shared the same features. Also, make sure you have pull up on MDIO - either by external (resistor) or internal (GPIO setting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TsiChung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397263#M13332</guid>
      <dc:creator>tsi-chung_liew</dc:creator>
      <dc:date>2015-04-10T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397264#M13333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good information Tsi-Chung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also once ksz code implemented ...&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14286830649359788 jive_text_macro jive_macro_code" jivemacro_uid="_14286830649359788"&gt;
&lt;P&gt;rtcs.c in the web_hvac example in the MQX_4.1.1/demos folder you can test following on twr-k60d100m tower kit:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.ip = ENET_IPADDR;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.mask = ENET_IPMASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ip_data.gateway = ENET_IPGATEWAY;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENET_get_mac_address (DEMOCFG_DEFAULT_DEVICE, ENET_IPADDR, enet_address);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = ipcfg_init_device (DEMOCFG_DEFAULT_DEVICE, enet_address);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//New code to test Ethernet cable connection.&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int tries = 10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; bool found = false;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // Ethernet is device 0.&amp;nbsp; Check for ethernet cable&lt;/P&gt;
&lt;P&gt;&amp;nbsp; while(tries-- &amp;amp;&amp;amp; !found)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(ipcfg_get_link_active(BSP_DEFAULT_ENET_DEVICE)) found = true;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; else _time_delay(400);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(!found)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printf("No Ethernet cable found.\n");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14286831778175554" jivemacro_uid="_14286831778175554"&gt;
&lt;/PRE&gt;&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN style="color: #000000;"&gt;printf("No Ethernet cable found.\n");&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry...cut-n-paste messed up the "{}" but you get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397264#M13333</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-04-10T16:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397265#M13334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;- I tried the ksz8041 but the problem is not solved&lt;/P&gt;&lt;P&gt;- it is present an external pullup of 4.7kohm on MDIO&lt;/P&gt;&lt;P&gt;- I tried the function of David but I don't solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ping function from DOS shell is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noted that reading the first three registers of the Ethernet driver, I always read the value 0xFF: this is very strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 09:57:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397265#M13334</guid>
      <dc:creator>kappa74</dc:creator>
      <dc:date>2015-04-13T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397266#M13335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mirko,&lt;/P&gt;&lt;P&gt;I think you need to look at your hardware configuration (schematics) to determine why you are not able to read PHY registers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 13:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397266#M13335</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-04-13T13:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397267#M13336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mirko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David is right. You may need to check your hardware configuration.&lt;/P&gt;&lt;P&gt;1. RMII or MII - whether you need 50MHz reference clock when RMII is used.&lt;/P&gt;&lt;P&gt;2. MDIO uses bus clock to divide down to 2.5 MHz. If the MDIO clock is not within 2.5MHz you will have issue communicating the PHY.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49950iB0526CBDD2ED84A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Is PHY held in reset? check the PHY reset_in, is there GPIO/jumper put the PHY in reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TsiChung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 18:19:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397267#M13336</guid>
      <dc:creator>tsi-chung_liew</dc:creator>
      <dc:date>2015-04-14T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Detect Ethernet connection fails</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397268#M13337</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;the problem is not right setting of the PHY address with pull-up and pull-down in my hardware. After correcting this the detecting of the link is working well.&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 07:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Detect-Ethernet-connection-fails/m-p/397268#M13337</guid>
      <dc:creator>kappa74</dc:creator>
      <dc:date>2015-04-22T07:42:21Z</dc:date>
    </item>
  </channel>
</rss>

