This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: MDIO can’t detect PHY

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN, DP83640

Tool/software:

Hello,

I’m trying to get the HALCoGen EMAC_Loopback_TxRx example running on a TMS570LC43HDK. (Note: I also tried the lwIP example. Both fail at the same point.)

The MDIO module doesn’t seem to detect the PHY (DP83640): both MDIO_ALIVE and MDIO_LINK remain at 0x00000000. The program runs, but the PHY is never found.

My HALCoGen configuration:

I enabled only the EMAC-Driver.

Pinmux / IOMM

  • In Pin Muxing I enabled MII and the following signals:

    • RX: MII_RXD[0] (P1),  MII_RXD[1] (A14),  MII_RXD[2] (G19),  MII_RXD[3] (H18),  MII_RXCLK (K19),  MII_RX_DV (B11),  MII_RX_ER (N19),  MII_CRS (B4),  MII_COL (F3)

    • TX: MII_TXD[0] (J18),  MII_TXD[1] (J19),  MII_TXD[2] (R2),  MII_TXD[3] (E18),   MII_TX_CLK (D19),  MII_TXEN (H19)

    • MDIO: MDIO_D (G3), MDCLK (V5)

  • In Input Pin Muxing I switched these from Default Terminal to Alternate Terminal:

    • MDIO, MII_COL, MII_CRS, MII_RX_ER, MII_RXD[0..3], MII_TX_CLK

  • In Special Pin Muxing, MII is selected (not RMII).

Clocks / GCM

  • External clock source: 16.0 MHz (default).

  • PLL1 and PLL2 enabled at 300.00 MHz.

  • GCM mostly default: VCLK3 = 75.0 MHz. I set VCLKA4 divider = 2, so VCLK4_DIV = 37.5 MHz and VCLKA4_S = 75.0 MHz.

EMAC / MDIO

  • In the EMAC tab I set the MAC address.

  • PHY address = 1, Channel = 0, Loopback enabled.

Board switches / LEDs

  • S2 switch set to Ethernet ON.

  • The PHY appears powered (green LED on the RJ45 is on).

I'm using the default code created by HALCoGen and the given example Code "example_EMAC_Loopback_TxRx.c" (unchanged) for the TMS570LC43x.

Does anyone have ideas what I’m missing or what I could try next to find out why MDIO never reports a live PHY?

Best regards,
Kilian