This example is a TCP/UDP IP application using the LwIP networking stack, coupled with ethernet driver (ENET)
On AM273X, we can do ethernet based communication using CPSW as HW mechanism
The examples do below
Parameter | Value |
---|---|
CPU + OS | r5fss0-0_freertos |
Toolchain | ti-arm-clang |
Boards | am273x-evm |
Example folder | examples/networking/lwip/enet_lwip_cpsw |
Feature | Description | Remarks/Default Setting |
---|---|---|
Pkt Pool Enable Flag | Flag to enable packet allocation from enet utils library. It should be disabled to avoid utils memory wastage, in case application allots packet via other mechanism. (Ex- Lwip pools) | Default is true. It is disabled for lwip based examples. If enabled size of pkt pool size depends on Number of Tx Packet and Number of Rx Packet. |
Number of Tx Packet | No of Tx packets required for DMA channel | Default is 16. It contributes to the size of Pkt Mem Pool, DMA ring buffer and accessories. |
Number of Rx Packet | No of Rx packets required for DMA channel | Default is 32. It contributes to the size of Pkt Mem Pool, DMA ring buffer and accessories size. |
Argument | Meaning |
---|---|
-s | Run server |
-c | Run Client [Ex: -c 192.168.1.102] |
-u | UDP |
-b | Bandwidth [Used in UDP, Ex: 100M M->Mbits] |
-i | Output interval in Sec [Ex: -i1 1sec interval] |
-t | Time in sec [Ex: -t60 60sec] |
-p | Port number [Ex: -p 5555] |
-w | Windows size [Ex: -w 1M M->Mbits] |
-d | Bi-directional traffic |
-l | Length [Ex: -l 1046 1046bytes] |
-V | Used when IPv6 address is used instead of IPv4 |
> ping 192.168.1.100
iperf
tests as shown below. Below steps have been tried with a Linux Ubuntu 18.04 host PC running bash shelliperf
if not installed by doing below > sudo apt install iperf
0.0.0.0
thenlink_callback==UP
message, if not check the ethernet cable