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-EP: EMAC internal loopback issue

Part Number: TMS570LS3137-EP
Other Parts Discussed in Thread: HALCOGEN

Hi,

I enabled EMAC internal loopback and configured Tx packet of 142 bytes with broadcast enabled. Though I could observe the Transmission status in EMAC registers, I am not able to receive the packets. The packet is getting filtered.

On the Tx side after transmitting one packet frame:

TXGOODFRAMES - 0x00000001

TXBCASTFRAMES - 0x00000000

TXOCTETS - 0x00000092

FRAME128T255 - 0x00000001

NETOCTETS - 0x00000124

On the Rx Side:

RXFILTERED - 0x00000001

RXGOODFRAMES - 0x00000000

RXBCASTFRAMES - 0x00000000

RXOCTETS - 0x00000000

Could you please help to resolve this issue?

Also, I couldn't see register contents of following registers even with debugger HALTED. I am seeing the message "Error: Unable to read"

Starting from 

500h MACADDRLO MAC Address Low Bytes Register

....

....

 67Ch RX7CP Receive Channel 7 Completion Pointer Register

I am using CCS 10.1.1. Please help to resolve this issue.

This is sample code

//Destination address
for(i=0;i<6;i++)
EthernetTestData[i]=0xFF;

//Source address
EthernetTestData[6]=0xFF;
EthernetTestData[7]=0xFF;
EthernetTestData[8]=0xFF;
EthernetTestData[9]=0xFF;
EthernetTestData[10]=0xFF;
EthernetTestData[11]=0xFF;

// LEN = 128 bytes
EthernetTestData[12]=0x00;
EthernetTestData[13]=0x80;

//Data bytes
for(i=14;i<142;i++)
{
EthernetTestData[i]=i;
}

MyPacket.next = NULL_PTR;
MyPacket.payload = &EthernetTestData[0];
MyPacket.tot_len = 142;
MyPacket.len = 142;

EMACTransmit(hdkif, &MyPacket);

Thanks,

Jai