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.

TMS570LS3137: RMII interface query

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

Hi,

I am working on RMII for TMS570LS3137 . Right now i am using halcogen generated RMII driver for the initial verification. And I am using a different PHY where the format of data is different . So if anyone can share bare metal RMII driver which can send directly the RAW data without doing any encapsulation or formatting. It would be very helpful in debugging.

Thank you,

Vivekananda

  • Part Number: TMS570LS3137

    Hi,

    Further to the above query, I am using HALCOGEN example EMAC LOOPBACK. In which I have unchecked the Enable Loopback option , configured the pinMUX for RMII and unchecked the enable MII and then generated the code . i am using a different PHY . Since my MAC is not DP83640 i have commented all the MDIO sections and also sections related to DP83640 in the generated code. Then i have run the code but nothing is being appeared on the RMII data lines and also the memory buffer there is only one data word i.e. the data[0] is available at memory location 0xFC520000 . We need to resolve this issue as soon as possible . Can anyone suggest solution for this issue.

    thank you 

    Vivekananda

  • Hello Vivekananda,

    If the MDIO sections are commented out, how does MCU configure the PHY? MDIO provides a bidirectional management interface for the PHY and MAC to communicate with each other. Many of the functions of the PHY are performed autonomously. So MDIO is needed to exchange
    information in parallel to the PHY/MAC data interface.

    For MII, the TX and RX clock is 2.5Mhz or 25MHz, but the shared clock for RX and TX in RMII is 50MHz.

    Please check value of the PHY registers:
    1. basic control register
    2. basic status register: ensure the link is up, check if auto-negotiation is successful
    3. if the link speed is correct: 100Mbps, 100mbps
  • Hello QJ Wang,

    Thanks for the reply,

    Actually we are doing MAC to MAC communication. So, I think there will be no need for MDIO and MDCLK..

    Thank you,

    Vivekananda

  • Hi Vivekananda,

    I have a loopback code for MII. Do you think it is useful for you?
  • My code is not based on HALCoGen driver.