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.

TMS320F28388D: C2000Ware Ethernet driver initialization

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

In my system i', running the Ethernet driver from C2000Ware_2_00_00_03.

After a HW redesign the system moved from a PHY only connected to the MCU, to a Switch and a PHY connected to the MCU. The MDIO interface is connected to the PHY and the MII interface is connected to the switch.

Now i'm having problems in Ethernet_init() in the driver. Ethernet_resetModule() is called and hangs in the while loop since SWR bit of DMA_mode register is never cleared.

The TRM states that all active clock domains must be Active for SW-reset completion. Exactly what does this mean?

Does the Ethernet peripheral communicate with the attached PHY and/or switch and wait for a reset done signal?

Does the Ethernet peripheral check any pins that must be toggled?

What exactly is needed for a SW reset to complete?

kind regards

Henrik OMberg

  • Hi,

    Henrik Omberg1 said:
    Now i'm having problems in Ethernet_init() in the driver. Ethernet_resetModule() is called and hangs in the while loop since SWR bit of DMA_mode register is never cleared

    Sounds like some problem with clocks. 

    Henrik Omberg1 said:
    The TRM states that all active clock domains must be Active for SW-reset completion. Exactly what does this mean?

    Please refer section titled "Clocks for Ethernet module" for description of applicable internal clocks. Since you mentioned you are operating on MII mode the PHY is required to provide the 25Mhz/2.5 Mhz clock apart from the ones mentioned. 

    Henrik Omberg1 said:
    Does the Ethernet peripheral communicate with the attached PHY and/or switch and wait for a reset done signal?

    For the Ethernet_resetModule() the module expects the functional clocks to be turned ON and the clocks supplied from external PHY for the MII Tx and Rx clocks. 

    Henrik Omberg1 said:
    Does the Ethernet peripheral check any pins that must be toggled?

    For reset it only needs the clocks to be configured properly.

    Henrik Omberg1 said:
    What exactly is needed for a SW reset to complete?

    Proper functional clocks and external clocks on Tx and Rx clocks in MII mode.

    Henrik Omberg1 said:
    After a HW redesign the system moved from a PHY only connected to the MCU, to a Switch and a PHY connected to the MCU. The MDIO interface is connected to the PHY and the MII interface is connected to the switch.

    Please make sure that clocks are properly routed to the F2838x device after your hardware redesign from the PHY. 

    Regards,

    Sudharsanan

  • Thank you for the quick answer. It gave me a few ideas, i have to check the switch configuration and see why there are no clocks provided on the MII interface.

    /henrik