Hi,
I am trying to transfer UDP packets between PC and EVM. I have seen a few discussions on the forum but all my trials using information in them have failed.
I have done the following changes to the code:
- in cpsw_singlecore.c:
Int cpswLpbkMode = CPSW_LOOPBACK_EXTERNAL;
With this change, I see that UDP packets are received by the PC.
I create packets on the PC to be sent to the EVM with the following fields:
- Destination IP address: 192.168.1.10
- Destination MAC address: 00:01:02:03:04:05
- Port number: 22136
- ether type is 0x800
The ALE learns the MAC addresses on port 2 of switch correctly and the EMAC statistics on Port 0 (i.e. TXGOODFRAMES) matches the number on port 2 (i.e. RXGOODFRAMES). I gather this implies that the Gb switch receives packets from the PC on port 2 and forwards them to port 0. However, the interrupt associated with the PA doesn't fire (i.e. breakpoint in Cpsw_RxISR is not hit). Are there more parameters in the packets sent from the PC that I should consider (i.e. do the PA filters look for anything apart from Destination IP address, MAC address and port number, and ether type in the example project?)
Help on this will be greatly appreciated.
Godfrey