Hi,
I have an evm omap l137 and I want use It's ethernet but when i run emac_loopback example it print the following in stdout:
"01 Testing Ethernet RMII loopback...
Waiting for link...
Link Detected
PHY1[0] = 3120
PHY1[1] = 782c
PHY2[0] = 3120
PHY2[1] = 782c
FAIL... error code 3... quitting"
this errors com from this codes:
" if ( ( status = EMAC_FRAME64 ) != 2 ) // Check # of 64 byte frames
errors++;
EMAC_FRAME64 = status;
if ( ( status = EMAC_FRAME128T255 ) != 2 ) // Check # of 128-255 byte frames
errors++;
EMAC_FRAME128T255 = status;
if ( ( status = EMAC_RXGOODFRAMES ) != 2 ) // Check # of Good RX frames
errors++;"
what should I do now? why in this example (specially in above codes) you check some registers with 2?
Tahereh Vaezi.