Part Number: AM5726
Other Parts Discussed in Thread: AM5728
Tool/software: Code Composer Studio
We are in the process of bringing up our custom board which is largely based off of the AM5728 IDK reference design. In particular I am trying to prove out the networking interface. On the IDK, SW0 and SW1 are configured as RGMII to support the Gigabit Ethernet PHYs. We changed this part of the design slightly by connecting these MACs to two 10/100 PHYs via MII (instead of RGMII). We are using the same PHYs as the PRU ICSS (basically just copied the design). I can confirm that the PRU ICSS interfaces work fine. I can run the EMAC and NIMU basic examples just fine on these interfaces, which validates the design. I cannot however successfully run the EMAC or NIMU apps on the SW0 or SW1 interfaces (previously Gigabit ethernet). Before running these apps, I changed the pinmux so that SW0 and SW1 are MII instead of RGMII. I have also updated the EMAC app by changing the GMIIx_SEL registers to GMII/MII mode as follows:
CSL_FINS (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->CONTROL_IO_1,
CONTROL_CORE_CONTROL_IO_1_GMII1_SEL, 0U);
CSL_FINS (((CSL_control_coreRegs *) CSL_MPU_CTRL_MODULE_CORE_CORE_REGISTERS_REGS)->CONTROL_IO_1,
CONTROL_CORE_CONTROL_IO_1_GMII2_SEL, 0U);
I rebuilt the board library and the EMAC/NIMU apps after making these changes. I have been focusing on getting the EMAC app to work first because that is the first step in bringing up the network. When running the EMAC app, I can see that the PHY gets link, but it times out trying to receive packets. This tells me that the MDIO interface is working correctly and that there may be an issue with the MII interface. Are there any other changes that I need to make to convert the interfaces from RGMII to MII? See the network interface design below:


