SLUUDO2 September 2026 AM2611 , AM2612 , AM2612-Q1 , AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
The LwIP stack also provides statistics for the packets received by the stack. The statistics can be viewed by entering the lwip_stats expression in the CCS.
Figure 4-22 LwIP Statistics Screen
ShotFigure 4-22 provides crucial information about the packets generated by the stack and the packets received by the stack for application (for example, UDP packets or HTTP packets).
The LwIP statistics can be used in conjunction with CPSW_STATS to understand the behavior of the traffic. For example, if the developer suspects that the application cannot receive packets from an external source, but is able to generate and send packets, the debug flow is to:
Transmission:
Reception:
If the statistics are not incrementing as expected, this result points to packet drop behavior. At the CPSW level, the packet is either dropped when the packet is malformed, has incorrect headers, or if the ALE is configured to not forward the packet to other MAC port or host port (refer to CPSW Statistics section for more details). If the CPSW receives the packet and the LwIP statistics do not show the packet, this result indicates an issue on the side of the lwIP. Check the memory pools and failures at the LwIP level.
If the packets do not show up at the CPSW statistics or LwIP statistics, revisit the Hardware Debug section and make sure the Ethernet hardware, links, PHY, and setup is flawless.
When debugging a LwIP based on a TCP or UDP application on the DUT, verify the link partner is properly running the TCP or UDP client or server. Start the server application before running the client application. Use packet sniffing tools, such as Wireshark®, to see if the packet flow is as expected. Since the LwIP is an open source software stack, not maintained by TI, direct questions specific to the functions and support of the LwIP stack to the LwIP support forum.