SPRADH8 September   2024 AM6442

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. Introduction
    1. 1.1 AM64x and AM243x EVMs
    2. 1.2 SoC Architecture
      1. 1.2.1 AM64x
      2. 1.2.2 AM243x
    3. 1.3 Peripherals
      1. 1.3.1 CPSW3G
      2. 1.3.2 PRU-ICSSG
    4. 1.4 Ethernet Software Architecture
    5. 1.5 Prerequisite
      1. 1.5.1 HW Prerequisite
      2. 1.5.2 SW Prerequisite
        1. 1.5.2.1 Resource Allocation - AM64x
        2. 1.5.2.2 SBL update
  5. Multicore 5-Ethernet Ports Realization
  6. Supported Configurations on PRU-ICSSG
  7. Implementation
    1. 4.1 System Example
      1. 4.1.1 Software Architecture
      2. 4.1.2 5-Ethernet Port Example
  8. Debug Steps
  9. Reference Logs
  10. Testing for the ICSSG0 and ICSSG1 Functionality
  11. ICSSG and CPSW
  12. Summary
  13. 10References

Reference Logs

Main Core:

==========================
ICSSG LWIP TCP ECHO SERVER
==========================
EXT PHY Reset
Enabling clocks!
Enabling clocks!
Enabling clocks!
Enabling clocks!

Init  configs EnetType:1, InstId :2
----------------------------------------------
PHY 3 is alive

Init  configs EnetType:1, InstId :3
----------------------------------------------
EnetPhy_bindDriver: PHY 3: OUI:080028 Model:0f Ver:01 <-> 'dp83869' : OK
PHY 3 is alive
PHY 15 is alive

Init  configs EnetType:1, InstId :0
----------------------------------------------
EnetPhy_bindDriver: PHY 15: OUI:080028 Model:0f Ver:01 <-> 'dp83869' : OK
PHY 1 is alive
PHY 3 is alive

Init  configs EnetType:1, InstId :1
----------------------------------------------
EnetPhy_bindDriver: PHY 3: OUI:080028 Model:11 Ver:01 <-> 'generic' : OK
PHY 1 is alive
PHY 3 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 34:08:e1:80:a9:36
[LWIPIF_LWIP] Enet has been started successfully
[0]Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-1 : 70:ff:76:1e:9c:4e
[1]Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-2 : 70:ff:76:1e:9c:4f
[2]Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-3 : 70:ff:76:1e:9c:50
[3]Enet IF UP Event. Local interface IP:0.0.0.0
[0]Waiting for network UP ...
EnetPhy_bindDriver: PHY 1: OUI:080028 Model:11 Ver:01 <-> 'generic' : OK
Icssg_handleLinkUp: icssg0-1: Port 1: Link up: 100-Mbps Full-Duplex
[2]Network Link UP Event
[1]Waiting for network UP ...
Icssg_handleLinkUp: icssg1-1: Port 1: Link up: 1-Gbps Full-Duplex
[0]Network Link UP Event
[2]Waiting for network UP ...
[3]Waiting for network UP ...
[0]Waiting for network UP ...
[1]Waiting for network UP ...
[2]Enet IF UP Event. Local interface IP:10.24.68.135
[0]Enet IF UP Event. Local interface IP:10.24.68.74
[3]Waiting for network UP ...
[1]Waiting for network UP ...
[3]Waiting for network UP ...
[1]Waiting for network UP ...
[3]Waiting for network UP ...
Network is UP ...
[IPC RPMSG ECHO] Main core start !!!
[IPC RPMSG ECHO] Message exchange started by main core !!!
[IPC RPMSG ECHO] All echoed messages received by main core from 1 remote cores !!!
[IPC RPMSG ECHO] Messages sent to each core = 100 
[IPC RPMSG ECHO] Number of remote cores = 1 
[IPC RPMSG ECHO] Total execution time = 3332 usecs
[IPC RPMSG ECHO] One way message latency = 16660 nsec
All tests have passed!!
[IPC txn]Remote Server interface IP:10.24.68.74
     30. 59s : CPU load =   8.08 %
     35. 60s : CPU load =   8.41 %
     40. 61s : CPU load =   8.30 %
accepted new connection 810C4280
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
     45. 62s : CPU load =   8.54 %
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
accepted new connection 810C4280
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
[IPC_ECHO_BACK] Sent Packet number 0
     50. 63s : CPU load =   8.54 %
     55. 64s : CPU load =   8.40 %
     60. 65s : CPU load =   8.40 %
     65. 66s : CPU load =   8.31 %
     70. 67s : CPU load =   8.39 %
 

Remote Core:

Remote Core:
[IPC RPMSG ECHO] Remote core start !!!
[IPC RPMSG ECHO] Remote Core Sending sync messages to main core ... !!!
[IPC RPMSG ECHO] Remote Core waiting for messages from main core ... !!!
Closing Remote Core!!
[IPC txn]Remote Server interface IP:10.24.68.74
==========================
  CPSW LWIP TCP ECHO SERVER 
==========================
Enabling clocks!
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:2 From 4 To 1 
Mdio_open: MDIO Manual_Mode enabled

EnetPhy_bindDriver: PHY 0: OUI:080028 Model:23 Ver:01 <-> 'dp83867' : OK

PHY 0 is alive
Starting lwIP, local interface IP is dhcp-enabled
[LWIPIF_LWIP] NETIF INIT SUCCESS
Host MAC address-0 : 70:ff:76:1e:9c:51

[0]Enet IF UP Event. Local interface IP:0.0.0.0
[LWIPIF_LWIP] Enet has been started successfully
[0]Waiting for network UP ...
[0]Waiting for network UP ...
Cpsw_handleLinkUp: Port 1: Link up: 1-Gbps Full-Duplex

MAC Port 1: link up
[0]Network Link UP Event
[0]Waiting for network UP ...
[0]Waiting for network UP ...
[0]Waiting for network UP ...
[0]Waiting for network UP ...
[0]Enet IF UP Event. Local interface IP:10.24.69.120
Network is UP ...
 IP eneterd is: 10.24.68.74 
<<<< ITERATION 1 >>>>
 Connecting to: :8888 
Connection with the server is established
"Hello over TCP 1" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 1" was received from the Server: Packet num 1
Successfully received the packet 1
"Hello over TCP 2" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 2" was received from the Server: Packet num 2
Successfully received the packet 2
"Hello over TCP 3" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 3" was received from the Server: Packet num 3
Successfully received the packet 3
"Hello over TCP 4" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 4" was received from the Server: Packet num 4
Successfully received the packet 4
"Hello over TCP 5" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 5" was received from the Server: Packet num 5
Successfully received the packet 5
Connection closed
<<<< ITERATION 2 >>>>
 Connecting to: :8888 
Connection with the server is established
"Hello over TCP 1" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 1" was received from the Server: Packet num 1
Successfully received the packet 1
"Hello over TCP 2" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 2" was received from the Server: Packet num 2
Successfully received the packet 2
"Hello over TCP 3" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 3" was received from the Server: Packet num 3
Successfully received the packet 3
"Hello over TCP 4" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 4" was received from the Server: Packet num 4
Successfully received the packet 4
"Hello over TCP 5" was sent to the Server
[IPC_ECHO_BACK]"Hello over TCP 5" was received from the Server: Packet num 5
Successfully received the packet 5
Connection closed