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.
Hi,
I have two TLK110 PHY's connected to an AM3359 CPGMAC0 (CPSW) with RMII connection and I'm kind of new to the Ethernet topic. MDIO communication has been tested and works as it should. Now I want to test the RMII connection. Can someone tell me how to test this connection without having to implement a TCP/IP stack in the AM3359?
Is there any mechanism to test this connection (like a loopback test)?
Thanks for the support.
Best regards,
Patrick
Hi Biser,
Thanks for the input. I have already had a look a those two examples in Starterware. They both base on the lwip TCP/IP Stack. I was wondering if there is an easier solution to test a PHY connection with maybe an internal CPSW mechanism that needs only some register accesses.
Thanks.
BR,
Patrick
As Biser mentioned, Starterware is ideal for what you are trying to do.
The TLK110 supports several loopback modes as well as a BIST feature that may also be useful here.
You may also want to take a look at the CPSW STATS register set...connecting the DUT to an active network should increment the relevant Rx statistics if the PHY-MAC interface is correctly connected. This solution wouldn't help you verify Tx though...I can't think of a way to do so without driver involvement.
RMII: As above...many (most) PHYs support loopback or some other BIST method.
MDIO: If you'd like to create your own test, you could use the MDIOUSERACCESSn register to R/W directly to the attached PHY. Since the MDIO engine is autonomous on AM335x, you could also just check the status of MACCONTROL for the relevant port. If the values make sense, MDIO is working.