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.

TMS570LS1227: lwIP library: RMII/MII question

Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN,

hi, TI expert

 I try to connect to ethernet using TMS570LS1227 and lwip demo.The technical document I mainly refer to is "HALCoGen Ethernet Driver With lwIP Integration Demo and Active Webserver Demo". When I use MII,everything is fine,i can ping PC or start a udp communication. But when i use RMII, ping test or udp test is always failing. I have completed the hardware modification to use RMII. Please tell me where is my setup wrong, any help with this would be appreciated.

Although the ping test fails, the function LwIPInit() returns success.The information printed by the serial port is as follows

Regards,

Hao Liang

  • Hi Hao,

    To use RMII, the RX_DV (pin 39( should be pulled high, and 50MHz clock should be provided to X1.

    In MII mode, the RX_DV is pulled down (default), and 25MHz is supplied to X1 pin. 

    The RX_DV is NC and LOW by default, this means the MII is selected by your HW setup.

  • Hi QJ

    I have pulled RX_DV high and provided X1 with a 50MHz clock. But ping test or udp test is still failing, do you have any clue?

    Regards,

    Hao Liang

  • Hi,

    Please enable the MDIO and MCLK in pinmux window:

    The MDIO and MCLK are not selected when enabling MII and RMII in PINMUX window. You have to select them manually.