同时使用两个网口的话,MDC和MDIO应该何如复用管脚?我给引脚复用成对应的ENET,只能初始化对应的ENET,不可以两者同时使用。两个ENET同时使用的话,应该何如使用呢?
Hi @BaiShiCola,
I hope you are doing well.
One can share the same management interface (MDIO & MDC) between the two ethernet interfaces (ENET1 & ENET2). However, please note that you need to configure a different address on the PHY chip.
Thanks & Regards,
Ritesh M Patel
您好,我现在是这个做的,PHY的地址是不同的,但是MDC和MDIO的PIN脚复用成ENET1的时候,ENET2就会读取不到ID寄存器,值一直会是0。复用成ENET2的时候,ENET1就会出现上述的情况,这个是什么原因呢?我MDIO和MDC复用的问题还是其他需要配置?
Hi @BaiShiCola,
Please share the source code of pin muxing for ENET1 and ENET2 in MCUExpressoSDK.
Additionally, Please make sure that you have configured the GPR1 register for the ENET2.
Please refer to Section 32.4.2 GPR1 General Purpose Register (IOMUXC_GPR_GPR1) in RM.
Thanks & Regards,
Ritesh M Patel