<?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: K66 RMII clocked on EXTAL0 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477712#M29151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not coming out any thing ,TXEN,TXD0,TXD1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 13:24:10 GMT</pubDate>
    <dc:creator>maheshwarreddy</dc:creator>
    <dc:date>2016-09-02T13:24:10Z</dc:date>
    <item>
      <title>K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477694#M29133</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;&lt;/P&gt;&lt;P&gt;We are tearing our hair (what is left of it) out with a issue on a K66 - the RMII port is not pushing data to our PHY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a K60 on a custom board that is loosely based on the TWR-K60F120M - same RMII pin allocation, same clocking (50MHz external oscillator on EXTAL0 and 12 MHz crystal on EXTAL) and same phy (Micrel KSZ8041NL). We decided we needed more RAM so have done a careful due diligence on pin function compatibility. Now we have removed some K60 and replaced with K66.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we are working on porting the code.&amp;nbsp; From our detailed comparison of the user manuals we were not expecting a big issue. And most was easy.&amp;nbsp; Ethernet is not working though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to operate the RMII from the external 50 MHz signal on EXTAL0 (pin 72).&amp;nbsp; We have set SIM_SOPT2[RMIISRC]&amp;nbsp; to 0. The ENET module clock is enabled.&amp;nbsp; The ENET register settings are the same as our K60 build. Yet we see nothing on the RMII_TXEN signal on the K66 (we do see the expected pulse on the K60).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MQX RTCS_init goes through just fine (no error) and when we trace through the code the initial ARP_send function does not return any error. Reading back the phy registers through the MDIO channel shows all as expected (and this wouldn't stop the RMII_TXEN signal from behaving anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is as though we are not clocking the RMII peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any useful thought?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477694#M29133</guid>
      <dc:creator>ianwilson</dc:creator>
      <dc:date>2016-05-17T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477695#M29134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer could check and download the MQX V4.2 from &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/nxp-mqx-software-solutions/mqx-real-time-operating-system-rtos/mqx-classic-software-solutions:MQX"&gt;here,&lt;/A&gt;​which provide RTCS example based on TWR-K65F180M board.&lt;/P&gt;&lt;P&gt;The TWR-K65F180M board is using PTE26 (ENET_1588_CLKIN) pin to input 50MHz RMII clock from TWR-SER board.&lt;/P&gt;&lt;P&gt;While, customer could get 50MHz RMII clock from PTA18 (EXTAL0) pin, customer need to config related ENET module pins as their ENET function with Pin Control Register (PORTx_PCRn). And customer also could refer MQX V4.2 RTCS example to check if there with any other register difference setting about ENET modules.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 18 May 2016 02:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477695#M29134</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-05-18T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477696#M29135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever resolve this problem?&amp;nbsp; We are having exactly the same problem (same basic design - 50Mhz EXTAL0, &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Micrel KSZ8041NL, s&lt;/SPAN&gt;witched from K60 to K66, because we needed more RAM).&amp;nbsp; Aside from vector numbers changing, did not see much difference in the K66 setup from K60, yet cannot seem to get ENET to work (xmit or receive).&amp;nbsp; IRQ handlers are not getting called.&amp;nbsp; NOTE - we are not using MQX. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477696#M29135</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-07-20T13:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477697#M29136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLVED! (Many thanks to Ian Wilson and his team!!)&lt;/P&gt;&lt;P&gt;For anyone else who has this ENET issue on a K66:&amp;nbsp; The solution (for us anyway) is to ensure that the "&lt;STRONG&gt;EREFS&lt;/STRONG&gt;" bit in &lt;STRONG&gt;MCG_C2&lt;/STRONG&gt; is cleared to "&lt;STRONG&gt;0&lt;/STRONG&gt;" (select external reference clock).&amp;nbsp; By default, this bit was set to "1" in "system_MK66F18.h".&amp;nbsp;&amp;nbsp; I had overlooked this, because while EREFS set to "1" works OK on a K60, it doesn't work on a K66.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 12:53:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477697#M29136</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-08-15T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477698#M29137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the sharing this point about K66 MCG_C2 register EREFS bit issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 02:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477698#M29137</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-08-16T02:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477699#M29138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had done all the changes which are mentioned above but same problem iam facing .But iam using only 50Mhz on PTA18(pin 72),but still iam not getting any interrupt .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 07:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477699#M29138</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-08-31T07:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477700#M29139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Can you please send the Ethernet code to me&amp;nbsp; for k66 controller(mk66fn2m0vlq18) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 10:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477700#M29139</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-08-31T10:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477701#M29140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;Hi Maheshwar,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;The problem for us was in the early startup initialization code that enables the clocks and PLLs and all.&amp;nbsp; We used the standard Freescale “&lt;STRONG&gt;system_MK66F18.h&lt;/STRONG&gt;” file, and we use &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;CLOCK_SETUP == 5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;We made two modifications to this file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1) We changed the external system clock frequency constant “&lt;STRONG&gt;CPU_XTAL_CLK_HZ&lt;/STRONG&gt;” from 16Mhz to 50Mhz (we use 50Mhz on pin 72) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2) We changed the "&lt;/SPAN&gt;&lt;STRONG&gt;EREFS&lt;/STRONG&gt;" bit in &lt;STRONG&gt;MCG_C2&lt;/STRONG&gt;from "&lt;STRONG&gt;1&lt;/STRONG&gt;" to "&lt;STRONG&gt;0&lt;/STRONG&gt;" by changing the value of “&lt;STRONG&gt;SYSTEM_MCG_C2_VALUE&lt;/STRONG&gt;” from 0x24 to &lt;STRONG&gt;0x20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;Also keep in mind that the interrupt vector numbers for ethernet interrupts are different on the K66 than they were on the K60.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;-bill&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477701#M29140</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-08-31T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477702#M29141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had made the above mentioned all the changes and we selected the&amp;nbsp; CLOCK_SETUP == 1,even though it is not working sir send your Ethernet code once I will try .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 12:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477702#M29141</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-08-31T12:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477703#M29142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maheshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve attached some example files to hopefully help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve attached our modified version of the Freescale “system MK66F18.h” file (again, we use CLOCK_SETUP==5, so I can’t vouch for other modes). I’ve also extracted and copied our low-level Ethernet initialization routine into an example file. It will not compile in and of itself (you would need all our other include files and infrastructure) but hopefully it will help point you in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 13:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477703#M29142</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-08-31T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477704#M29143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it&amp;nbsp;is not downloading &amp;nbsp;, It is going tosome other site&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477704#M29143</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-08-31T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477705#M29144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to enable the interrupt I don't know , I used the code warrior generated code for k60 , I ported to keil for k66 I copied all the function but I don't know how to enable the interrupt in that ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 05:16:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477705#M29144</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-01T05:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477706#M29145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But same thing is copied to k60 it is working in keil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477706#M29145</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-01T09:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477707#M29146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had done as given in the fine but not getting the interrupt &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477707#M29146</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-01T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477708#M29147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry - I can't comment on Code Warrior generated code - I don't use Code Warrior or Keil (I use Rowley Crossworks). &amp;nbsp;But I can tell you that the code I used on my K60 did NOT work on the K66 until I changed the EREFS bit in the MCG_C2 register, and changed the interrupt vector numbers. Other than that, I needed no other changes to the K60 Ethernet code to get it to work on the K66. &amp;nbsp;Not sure if it's relevant, but I am not running the K66 at the full 180Mhz speed - I backed it off to 120Mhz until I can get all the other peripherals working properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:53:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477708#M29147</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-09-01T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477709#M29148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.send your full ethernet application functions(init,send, receive)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:25:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477709#M29148</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-01T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477710#M29149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing changed in the send/receive code between the K60 and the K66. &amp;nbsp;Only the initialization changed, and I've already sent you that initialization code. &amp;nbsp; So if your K60 send/receive code worked OK, then your K66 code should work as well, assuming that you've initialized the ethernet system properly. &amp;nbsp;I still suspect that you might not be setting up MCG_C2 properly, or perhaps your interrupt vectors are wrong and you don;t have the correct IRQs enabled.&lt;/P&gt;&lt;P&gt;Try putting a scope on whatever pin you are using for TXEN on your PHY chip, and try to send a packet. &amp;nbsp;If you don't see that pin change state, then your MCG_C2 setting is probably still wrong (indicating that your're not clocking the ethernet section of the chip).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477710#M29149</guid>
      <dc:creator>cfgmgr</dc:creator>
      <dc:date>2016-09-01T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477711#M29150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;send ethernet full application ,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 13:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477711#M29150</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-02T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477712#M29151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not coming out any thing ,TXEN,TXD0,TXD1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 13:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477712#M29151</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2016-09-02T13:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: K66 RMII clocked on EXTAL0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477713#M29152</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;Just wanted to share my Experience regarding the problem.&lt;/P&gt;&lt;P&gt;The solution proposed by Bill worked for me (&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;We changed the "&lt;/SPAN&gt;&lt;STRONG&gt;EREFS&lt;/STRONG&gt;" bit in &lt;STRONG&gt;MCG_C2&lt;/STRONG&gt;from "&lt;STRONG&gt;1&lt;/STRONG&gt;" to "&lt;STRONG&gt;0&lt;/STRONG&gt;" by changing the value of “&lt;STRONG&gt;SYSTEM_MCG_C2_VALUE&lt;/STRONG&gt;” from 0x24 to &lt;STRONG&gt;0x20&lt;/STRONG&gt;). Thanks Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Scenario is as follows:&lt;/P&gt;&lt;P&gt;1. Moved From MK60 to MK66 due to RAM limitation.&lt;/P&gt;&lt;P&gt;2. 50MHz external Oscillator connected to MCU (PTA18) as well as connected to Phy (KSZ8081RNA from Freedom Board).&lt;/P&gt;&lt;P&gt;3. First it didn't work because the 50MHz RMII clock could reach the EnetMac.&lt;/P&gt;&lt;P&gt;4. To check that rest of the hardware is fine, I just sent the OSCERCLK0 out (e.g to pin PTA6) and then looped it back to PTE26 as RMII clock to EnetMac module. This worked fine and confirmed that rest of the hardware is fine.&lt;/P&gt;&lt;P&gt;5. Finally tried the solution proposed by Bill (&lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;We changed the "&lt;/SPAN&gt;&lt;STRONG&gt;EREFS&lt;/STRONG&gt;" bit in &lt;STRONG&gt;MCG_C2&lt;/STRONG&gt;from "&lt;STRONG&gt;1&lt;/STRONG&gt;" to "&lt;STRONG&gt;0&lt;/STRONG&gt;" by changing the value of “&lt;STRONG&gt;SYSTEM_MCG_C2_VALUE&lt;/STRONG&gt;” from 0x24 to &lt;STRONG&gt;0x20&lt;/STRONG&gt;), and it worked which mean the RMII clock is routed internally and need not to be routed externally.&lt;/P&gt;&lt;P&gt;6. I am using the default &lt;SPAN style="font-size: 11.0pt; color: #1f4e79;"&gt;“&lt;STRONG&gt;system_MK66F18.h&lt;/STRONG&gt;”&lt;/SPAN&gt; provided by NXP with following options/changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CLOCK_SETUP&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; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Value of the external crystal in Hz */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define CPU_XTAL_CLK_HZ&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;50000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; /* MCG_C2: LOCRE0=0,FCFTRIM=0,RANGE=2,HGO=0,EREFS=0,LP=0,IRCS=0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; #define SYSTEM_MCG_C2_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x20U&amp;nbsp;&amp;nbsp; /* MCG_C2 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; /* MCG_C5: PLLCLKEN=0,PLLSTEN=0,PRDIV=4 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; #define SYSTEM_MCG_C5_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0x04U&amp;nbsp;&amp;nbsp; /* MCG_C5 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; /* MCG_C6: LOLIE0=0,PLLS=1,CME0=0,VDIV=0x14 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; #define SYSTEM_MCG_C6_VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0x54U&amp;nbsp;&amp;nbsp; /* MCG_C6 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps others.&lt;/P&gt;&lt;P&gt;lal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 16:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K66-RMII-clocked-on-EXTAL0/m-p/477713#M29152</guid>
      <dc:creator>ishwarlal</dc:creator>
      <dc:date>2017-02-27T16:28:57Z</dc:date>
    </item>
  </channel>
</rss>

