<?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: Changes required for converting from RMII to MII</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204838#M4778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I know the issues when using MII with TWRK60N512. I just wanted to know what steps are required in order to use it on my custom board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the following changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Added the port initialisation in init_gpio.c file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Changes&amp;nbsp;ENET_OPTION_RMII to&amp;nbsp;ENET_OPTION_MII in&amp;nbsp;ENET_default_params initialisation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Changed the MII register defines as the were a bit different but still using similar function as in phy_ksz8041.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other changes required ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 07:42:46 GMT</pubDate>
    <dc:creator>Mohsin455</dc:creator>
    <dc:date>2012-03-05T07:42:46Z</dc:date>
    <item>
      <title>Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204835#M4775</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;&amp;nbsp;&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; I am using TWRK60N512 and MQX 3.8. I am using KSZ8895MQ with MII Interface on my custom board. I know there are issues, such that TWRK60N512 cannot be used in MII mode (as some of the pins are use for JTAG)&amp;nbsp; but I will be trying this on custom board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know what are the &lt;STRONG&gt;changes required in the MQX&lt;/STRONG&gt; &lt;STRONG&gt;code&lt;/STRONG&gt; for TWRK60N512 in order to convert from &lt;STRONG&gt;RMII to MII Interface&lt;/STRONG&gt;. Do we &lt;STRONG&gt;only&lt;/STRONG&gt; require seting the required pins within init_gpio.c and selecting ENET_OPTION_MII option or are there any other modifications needed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 19:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204835#M4775</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-02-09T19:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204836#M4776</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please provide the steps required to change from RMII to MII?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 17:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204836#M4776</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-02-22T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204837#M4777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="102212" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/102212" jivemacro="thread" title="https://community.freescale.com/thread/102212"&gt;https://community.freescale.com/thread/102212&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This thread covers some of the difficulties in detail. I hope it helps. In short, it sounds like it is not possible using the TWR peripherals unless I'm missing something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 02:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204837#M4777</guid>
      <dc:creator>Jeinstei</dc:creator>
      <dc:date>2012-03-03T02:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204838#M4778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I know the issues when using MII with TWRK60N512. I just wanted to know what steps are required in order to use it on my custom board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made the following changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Added the port initialisation in init_gpio.c file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Changes&amp;nbsp;ENET_OPTION_RMII to&amp;nbsp;ENET_OPTION_MII in&amp;nbsp;ENET_default_params initialisation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Changed the MII register defines as the were a bit different but still using similar function as in phy_ksz8041.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other changes required ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 07:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204838#M4778</guid>
      <dc:creator>Mohsin455</dc:creator>
      <dc:date>2012-03-05T07:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204839#M4779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, these steps should work ! &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe some hardware problems? My problem was i connected the MII0_RXER pin to the PHY ..&lt;/P&gt;&lt;P&gt;Disconnected this pin .. its not requiered &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;&lt;LI-EMOJI id="lia_grinning-face-with-big-eyes" title=":grinning_face_with_big_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; .. and all was fine!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just edit the init_gpio.c ..&lt;/P&gt;&lt;P&gt;should look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#if 0 // tower ..    pctl-&amp;gt;PCR[12] = 0x00000400;     /* PTA12, RMII0_RXD1/MII0_RXD1      */    pctl-&amp;gt;PCR[13] = 0x00000400;     /* PTA13, RMII0_RXD0/MII0_RXD0      */    pctl-&amp;gt;PCR[14] = 0x00000400;     /* PTA14, RMII0_CRS_DV/MII0_RXDV    */    pctl-&amp;gt;PCR[15] = 0x00000400;     /* PTA15, RMII0_TXEN/MII0_TXEN      */    pctl-&amp;gt;PCR[16] = 0x00000400;     /* PTA16, RMII0_TXD0/MII0_TXD0      */    pctl-&amp;gt;PCR[17] = 0x00000400;     /* PTA17, RMII0_TXD1/MII0_TXD1      */#else    pctl-&amp;gt;PCR[14] = PORT_PCR_MUX(4);//RMII0_CRS_DV/MII0_RXDV    // disconnect this pin if you have connected it to the PHY .. !    //pctl-&amp;gt;PCR[5]  = PORT_PCR_MUX(4);//RMII0_RXER/MII0_RXER    pctl-&amp;gt;PCR[12] = PORT_PCR_MUX(4);//RMII0_RXD1/MII0_RXD1    pctl-&amp;gt;PCR[13] = PORT_PCR_MUX(4);//RMII0_RXD0/MII0_RXD0    pctl-&amp;gt;PCR[15] = PORT_PCR_MUX(4);//RMII0_TXEN/MII0_TXEN    pctl-&amp;gt;PCR[16] = PORT_PCR_MUX(4);//RMII0_TXD0/MII0_TXD0    pctl-&amp;gt;PCR[17] = PORT_PCR_MUX(4);//RMII0_TXD1/MII0_TXD1    pctl-&amp;gt;PCR[11] = PORT_PCR_MUX(4);//MII0_RXCLK    pctl-&amp;gt;PCR[25] = PORT_PCR_MUX(4);//MII0_TXCLK    pctl-&amp;gt;PCR[9]  = PORT_PCR_MUX(4);//MII0_RXD3    pctl-&amp;gt;PCR[10] = PORT_PCR_MUX(4);//MII0_RXD2        pctl-&amp;gt;PCR[28] = PORT_PCR_MUX(4);//MII0_TXER    pctl-&amp;gt;PCR[24] = PORT_PCR_MUX(4);//MII0_TXD2    pctl-&amp;gt;PCR[26] = PORT_PCR_MUX(4);//MII0_TXD3    pctl-&amp;gt;PCR[27] = PORT_PCR_MUX(4);//MII0_CRS    pctl-&amp;gt;PCR[29] = PORT_PCR_MUX(4);//MII0_COL#endif    pctl = (PORT_MemMapPtr)PORTB_BASE_PTR;    pctl-&amp;gt;PCR[0] = PORT_PCR_MUX(4) | PORT_PCR_ODE_MASK; /* PTB0, RMII0_MDIO/MII0_MDIO   */    pctl-&amp;gt;PCR[1] = PORT_PCR_MUX(4);                     /* PTB1, RMII0_MDC/MII0_MDC     */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And edit the init_enet.c&lt;/P&gt;&lt;P&gt;shoud look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const ENET_PARAM_STRUCT ENET_default_params[BSP_ENET_DEVICE_COUNT] = {    {        &amp;amp;ENET_0,        Auto_Negotiate,#if 0 // tower ..        ENET_OPTION_RMII |#endif        ENET_OPTION_PTP_MASTER_CLK,        BSPCFG_TX_RING_LEN,   // # tx ring entries        BSPCFG_TX_RING_LEN,   // # large tx packets        ENET_FRAMESIZE,       // tx packet size             BSPCFG_RX_RING_LEN,   // # rx ring entries        BSPCFG_RX_RING_LEN,   // # normal rx packets - must be &amp;gt;= rx ring entries        ENET_FRAMESIZE,       // ENET_FRAMESIZE,   // rx packet size        BSPCFG_RX_RING_LEN,   // # rx PCBs - should be &amp;gt;= large rx packets.             0,             0         },};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's all for me &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 19:57:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204839#M4779</guid>
      <dc:creator>monXii</dc:creator>
      <dc:date>2012-04-02T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changes required for converting from RMII to MII</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204840#M4780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using TWRK60F and MQX 4.0 besides KSZ8041NL with RMII Interface on my custom board. I discovered a problem because RMII_MDC does not show any signal.&lt;/P&gt;&lt;P&gt;I am using original driver, I saw a detail about your problem, interesting for me, maybe your answer could helpme to resolve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you do here?&lt;/P&gt;&lt;P&gt;1) Added the port initialisation in init_gpio.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditional question: Do you have idea about what is the source of RMII_MDC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 06:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Changes-required-for-converting-from-RMII-to-MII/m-p/204840#M4780</guid>
      <dc:creator>uabc_mac</dc:creator>
      <dc:date>2014-02-20T06:22:41Z</dc:date>
    </item>
  </channel>
</rss>

