<?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>Kinetis Software Development Kit中的主题 KSDK2.0  phyAddr hardcoded in ethernetif.c</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487088#M4309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we use KSDK2.0 with K64 and LWIP.&lt;/P&gt;&lt;P&gt;In file "ethernetif.c" the address of the external Ethernet Phy is hardcoded to 0 in serveral functions.&lt;/P&gt;&lt;P&gt;We use the switching Phy KSZ8863MLL. To get access to the complete Phy information I have to use "phyAddr" = 1 and "phyAddr" = 2.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; The address of external Phy should be managed globally for the whole Ethernet IF.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 08:42:36 GMT</pubDate>
    <dc:creator>manfredschnell</dc:creator>
    <dc:date>2016-03-18T08:42:36Z</dc:date>
    <item>
      <title>KSDK2.0  phyAddr hardcoded in ethernetif.c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487088#M4309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we use KSDK2.0 with K64 and LWIP.&lt;/P&gt;&lt;P&gt;In file "ethernetif.c" the address of the external Ethernet Phy is hardcoded to 0 in serveral functions.&lt;/P&gt;&lt;P&gt;We use the switching Phy KSZ8863MLL. To get access to the complete Phy information I have to use "phyAddr" = 1 and "phyAddr" = 2.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; The address of external Phy should be managed globally for the whole Ethernet IF.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 08:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487088#M4309</guid>
      <dc:creator>manfredschnell</dc:creator>
      <dc:date>2016-03-18T08:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.0  phyAddr hardcoded in ethernetif.c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487089#M4310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, in ethernetif.c file, only &lt;EM&gt;&lt;STRONG&gt;low_level_init&lt;/STRONG&gt;&lt;/EM&gt; and &lt;STRONG&gt;&lt;EM&gt;low_level_output&lt;/EM&gt;&lt;/STRONG&gt; functions are using &lt;STRONG&gt;&lt;EM&gt;PHY_xxx&lt;/EM&gt; &lt;/STRONG&gt;functions in which it is necessary to specify phy address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case that phy address should not be always set to zero, you can use MACROs for both adresses and then, use any of these values to select the correct address:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14586833525276025 jive_text_macro" data-renderedposition="138_8_1192_16" jivemacro_uid="_14586833525276025" modifiedtitle="true"&gt;&lt;P&gt;uint32_t phyAddr = PHY_ADDRESS_ONE;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and everything should be working well, except for PHY_Init function that is not using this phyAddr variable and instead of it, it is using a hardcoded 0 value in its initialization, so you can replace it for:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14586835704363866" data-renderedposition="232_8_1192_16" jivemacro_uid="_14586835704363866" modifiedtitle="true"&gt;&lt;P&gt;PHY_Init(ENET, phyAddr, sysClock);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And all functions should be using phyAddr according to this macro definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 21:56:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487089#M4310</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-03-22T21:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.0  phyAddr hardcoded in ethernetif.c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487090#M4311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;I changed the sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be changed in the KSDK files, too.&lt;/P&gt;&lt;P&gt;The underlying hardware has the ability to submit the phy address, so the "Phy"-Drivers should have a parameter phyAddr. Then user can choose phy-address according to the phy in application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Manfed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 07:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487090#M4311</guid>
      <dc:creator>manfredschnell</dc:creator>
      <dc:date>2016-03-23T07:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK2.0  phyAddr hardcoded in ethernetif.c</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487091#M4312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manfred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already reported this issue to development team, this is the reference for this improvement: KPSDK-9990.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as any feedback is provided, I will let you know it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 01:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK2-0-phyAddr-hardcoded-in-ethernetif-c/m-p/487091#M4312</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-03-29T01:24:16Z</dc:date>
    </item>
  </channel>
</rss>

