2021-10-05 05:14 AM
Calling LAN8742_GetLinkState(&LAN8742) from <ethernetif.c> returns LAN8742_STATUS_100MBITS_FULLDUPLEX
Settings from <lwipopts.h>
#define WITH_RTOS 1
#define CHECKSUM_BY_HARDWARE 1
#define ETH_RX_BUFFER_SIZE 1524
#define LWIP_UDP 0
#define MEM_ALIGNMENT 4
#define MEM_SIZE 2048
#define LWIP_RAM_HEAP_POINTER 0x30044000
#define MEMP_NUM_TCP_SEG 32
#define LWIP_SUPPORT_CUSTOM_PBUF 1
#define PBUF_POOL_BUFSIZE 2048
#define LWIP_ETHERNET 1
#define LWIP_DNS_SECURE 7
#define TCP_WND 4096
#define TCP_MSS 2048
#define TCP_SND_QUEUELEN 17
#define LWIP_NETIF_LINK_CALLBACK 1
#define TCPIP_THREAD_STACKSIZE 4096
#define TCPIP_THREAD_PRIO osPriorityNormal
#define TCPIP_MBOX_SIZE 6
#define SLIPIF_THREAD_STACKSIZE 4096
#define SLIPIF_THREAD_PRIO 3
#define DEFAULT_THREAD_STACKSIZE 4096
#define DEFAULT_THREAD_PRIO 3
#define DEFAULT_TCP_RECVMBOX_SIZE 6
#define DEFAULT_ACCEPTMBOX_SIZE 6
#define RECV_BUFSIZE_DEFAULT 2000000000
#define LWIP_STATS 0
#define CHECKSUM_GEN_IP 0
#define CHECKSUM_GEN_UDP 0
#define CHECKSUM_GEN_TCP 0
#define CHECKSUM_GEN_ICMP6 0
#define CHECKSUM_CHECK_IP 0
#define CHECKSUM_CHECK_UDP 0
#define CHECKSUM_CHECK_TCP 0
#define CHECKSUM_CHECK_ICMP6 0
2021-10-05 03:11 PM
https://community.st.com/s/question/0D50X0000C6eNNSSQ2/bug-fixes-stm32h7-ethernet for 90+Mbps ingress/egress.
https://lwip.fandom.com/wiki/Tuning_TCP some good info here.