<?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: Use ENET_SetMII() function without disabling Ethernet MAC in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1479766#M20264</link>
    <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply. &lt;BR /&gt;1) So what is the best suggested way to manage ENET MAC after PHY re-link?&lt;BR /&gt;-- It seems like that it needs to reInitialize the ENET module.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 09:40:57 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2022-06-24T09:40:57Z</dc:date>
    <item>
      <title>Use ENET_SetMII() function without disabling Ethernet MAC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1474320#M20127</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to dynamically change MAC controller speed and duplex, based on values auto-negotiated by PHY at each link up.&lt;/P&gt;&lt;P&gt;In iMXRT1176 SDK there is a function named ENET_SetMII(), created exactly with that purpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*!
 * brief Sets the ENET MII speed and duplex.
 *
 * This API is provided to dynamically change the speed and dulpex for MAC.
 *
 * param base  ENET peripheral base address.
 * param speed The speed of the RMII mode.
 * param duplex The duplex of the RMII mode.
 */
void ENET_SetMII(ENET_Type *base, enet_mii_speed_t speed, enet_mii_duplex_t duplex)
{&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried it on my code, and it works like a charm!&lt;/P&gt;&lt;P&gt;But iMXRT1170 Reference Manual states that TCR-&amp;gt;FDEN register (changed by ENET_SetMII() function) can be modified only with ECR-&amp;gt;ETHEREN = 0 (Ethernet MAC disabled).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mac2.PNG" style="width: 684px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/183452iD8026FF509F7A2D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="mac2.PNG" alt="mac2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, now the question is: is really safe to use ENET_SetMII() function to dynamically change speed and duplex of MAC controller, without disabling it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:07:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1474320#M20127</guid>
      <dc:creator>ombra32</dc:creator>
      <dc:date>2022-06-15T09:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use ENET_SetMII() function without disabling Ethernet MAC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1475774#M20162</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is really safe to use ENET_SetMII() function to dynamically change speed and duplex of MAC controller, without disabling it?&lt;BR /&gt;-- No, I'm afraid not, it's a risk to do it.&lt;BR /&gt;Have a great day,t&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 06:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1475774#M20162</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-17T06:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use ENET_SetMII() function without disabling Ethernet MAC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1478847#M20246</link>
      <description>&lt;P&gt;Ok, so what is the best suggested way to manage ENET MAC after PHY re-link?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1478847#M20246</guid>
      <dc:creator>ombra32</dc:creator>
      <dc:date>2022-06-23T07:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use ENET_SetMII() function without disabling Ethernet MAC</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1479766#M20264</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply. &lt;BR /&gt;1) So what is the best suggested way to manage ENET MAC after PHY re-link?&lt;BR /&gt;-- It seems like that it needs to reInitialize the ENET module.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 09:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Use-ENET-SetMII-function-without-disabling-Ethernet-MAC/m-p/1479766#M20264</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-06-24T09:40:57Z</dc:date>
    </item>
  </channel>
</rss>

