Part Number: XTCIEVMK2LX
Hi all,
I am using the C:\ti\pdk_keystone2_3_01_04_07\packages\exampleProjects\PA_emacExample_K2L_exampleProject for sending and receiving UDP packets between EVM and PC. I am able to send the packets form EVM to PC and seeing it in Wireshark on PC . But I am unable to receive the UDP packets from PC , I am getting prints in the console as , in that always received packets are showing as 0.
[C66xx_0] 2 Resource entries at 0x800000
**************************************************
******* Ethernet Single Core Example Start *******
**************************************************
QMSS successfully initialized
CPPI successfully initialized
PASS successfully initialized
Ethernet subsystem successfully initialized
Tx setup successfully done
Rx setup successfully done
PASS setup successfully done
CSL_CPSW_getStats before Packet Transmission ...
Stats for block number: 0
********************************************
Good Frames Received 18
Good Broadcast Frames Received 10
Good Multicast Frames Received 8
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 4140
Good Frames Sent 4530
Good Broadcast Frames Sent 53
Good Multicast Frames Sent 75
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 581281
Total Tx&Rx with Octet Size of 64 12
Total Tx&Rx with Octet Size of 65 to 127 4484
Total Tx&Rx with Octet Size of 128 to 255 26
Total Tx&Rx with Octet Size of 256 to 511 10
Total Tx&Rx with Octet Size of 512 to 1023 8
Total Tx&Rx with Octet Size of >=1024 8
Sum of all Octets Tx or Rx on the Network 585421
********************************************
Stats for block number: 1
********************************************
Good Frames Received 4530
Good Broadcast Frames Received 53
Good Multicast Frames Received 75
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 581281
Good Frames Sent 18
Good Broadcast Frames Sent 10
Good Multicast Frames Sent 8
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 4140
Total Tx&Rx with Octet Size of 64 12
Total Tx&Rx with Octet Size of 65 to 127 4484
Total Tx&Rx with Octet Size of 128 to 255 26
Total Tx&Rx with Octet Size of 256 to 511 10
Total Tx&Rx with Octet Size of 512 to 1023 8
Total Tx&Rx with Octet Size of >=1024 8
Sum of all Octets Tx or Rx on the Network 585421
********************************************
Stats for block number: 2
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 0
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 0
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 0
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 0
********************************************
Stats for block number: 3
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 0
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 0
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 0
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 0
********************************************
Stats for block number: 4
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 0
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 0
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 0
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 0
********************************************
Packet Transmission Start ...
Packet Transmission Done.
Wait for all packets to be Received from EMAC port 0...
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Packets Sent = 10
Packets Received = 0
Packet Transmission Done.
Wait for all packets to be Received from EMAC port 1...
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Packets Sent = 10
Packets Received = 0
Packet Transmission Done.
Wait for all packets to be Received from EMAC port 2...
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Packets Sent = 10
Packets Received = 0
Packet Transmission Done.
Wait for all packets to be Received from EMAC port 3...
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Port = 0, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 1, MAC address = 3c:97:0e:05:8c:de, unicast_type = 0
Port = 2, MAC address = 20:21:22:23:24:25, unicast_type = 0
Port = 3, MAC address = 30:31:32:33:34:35, unicast_type = 0
Port = 4, MAC address = 40:41:42:43:44:45, unicast_type = 0
Packets Sent = 10
Packets Received = 0
Example Done!
PA Stats After Packet Transmission BEGIN ********* ...
--- PA STATS ---
C1 number of packets: 305
C1 number IPv4 packets: 88
C1 number IPv6 packets: 0
C1 number custom packets: 0
C1 number SRIO packets: 0
C1 number llc/snap fail: 0
C1 number table matched: 88
C1 number failed table matched: 88
C1 number Ingress IP frags: 0
C1 number IP depth overflow: 0
C1 number vlan depth overflow: 0
C1 number gre depth overflow: 0
C1 number mpls packets: 0
C1 number of parse fail: 0
C1 number invalid IPv6 opts: 0
C1 number of Egress IP frags: 0
C1 number of silent discard: 0
C1 number of invalid control: 0
C1 number of invalid states: 0
C1 number of system fails: 0
C2 number of packets: 0
C2 number of UDP packets: 0
C2 number of TCP packets: 0
C2 number of custom packets: 0
C2 number of silent discard: 0
C2 number of invalid control: 0
Modify number of command file: 0
CSL_CPSW_getStats after Packet Transmission ...
Stats for block number: 0
********************************************
Good Frames Received 58
Good Broadcast Frames Received 10
Good Multicast Frames Received 8
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 9180
Good Frames Sent 4616
Good Broadcast Frames Sent 53
Good Multicast Frames Sent 75
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 592117
Total Tx&Rx with Octet Size of 64 12
Total Tx&Rx with Octet Size of 65 to 127 4610
Total Tx&Rx with Octet Size of 128 to 255 26
Total Tx&Rx with Octet Size of 256 to 511 10
Total Tx&Rx with Octet Size of 512 to 1023 8
Total Tx&Rx with Octet Size of >=1024 8
Sum of all Octets Tx or Rx on the Network 601297
********************************************
Stats for block number: 1
********************************************
Good Frames Received 4616
Good Broadcast Frames Received 53
Good Multicast Frames Received 75
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 592117
Good Frames Sent 28
Good Broadcast Frames Sent 10
Good Multicast Frames Sent 8
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 5400
Total Tx&Rx with Octet Size of 64 12
Total Tx&Rx with Octet Size of 65 to 127 4580
Total Tx&Rx with Octet Size of 128 to 255 26
Total Tx&Rx with Octet Size of 256 to 511 10
Total Tx&Rx with Octet Size of 512 to 1023 8
Total Tx&Rx with Octet Size of >=1024 8
Sum of all Octets Tx or Rx on the Network 597517
********************************************
Stats for block number: 2
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 10
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 1260
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 10
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 1260
********************************************
Stats for block number: 3
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 0
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 0
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 0
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 0
********************************************
Stats for block number: 4
********************************************
Good Frames Received 0
Good Broadcast Frames Received 0
Good Multicast Frames Received 0
PauseRx Frames Received 0
Frames Received with CRC Errors 0
Frames Received with Alignment/Code Errors0
Oversized Frames Received 0
Jabber Frames Received 0
Undersized Frames Received 0
Rx Frame Fragments Received 0
Total Received Bytes in Good Frames 0
Good Frames Sent 0
Good Broadcast Frames Sent 0
Good Multicast Frames Sent 0
PauseTx Frames Sent 0
Frames Where Transmission was Deferred 0
Total Frames Sent With Collision 0
Frames Sent with Exactly One Collision 0
Frames Sent with Multiple Colisions 0
Tx Frames Lost Due to Excessive Collisions0
Tx Frames Lost Due to a Late Collision 0
Tx Frames Lost Due to Carrier Sense Loss 0
Total Transmitted Bytes in Good Frames 0
Total Tx&Rx with Octet Size of 64 0
Total Tx&Rx with Octet Size of 65 to 127 0
Total Tx&Rx with Octet Size of 128 to 255 0
Total Tx&Rx with Octet Size of 256 to 511 0
Total Tx&Rx with Octet Size of 512 to 1023 0
Total Tx&Rx with Octet Size of >=1024 0
Sum of all Octets Tx or Rx on the Network 0
********************************************
**************************************************
******** Ethernet Single Core Example End ********
**************************************************
Pa_addPort returned error -18
Failed to clean up the MAC address
Pa_addIp returned error -18
Failed to clean up the MAC address
Core 0 : CPPI CPDMA closed successfully
Core 0 : CPPI exit successful
Instance name: RM_Server
Handle: 0x00802108
Type: Server
Resource Status:
All resources freed successfully
I did the some changes in the code
cpswLpbkMode = CPSW_LOOPBACK_NONE ;
and change the destination and source mac address.
if anybody have already tried this example , plz help me.
Raiman