From 6c4b05d8325b518ec620208e3d1fec72a53b86cb Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 11 Nov 2025 17:34:23 +1100 Subject: [PATCH] stm32/lwip_inc: Further increase N6 lwIP memory. This MCU has a lot of memory and gigabit ethernet, so it benefits from improved lwIP performance. Signed-off-by: Damien George --- ports/stm32/lwip_inc/lwipopts.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ports/stm32/lwip_inc/lwipopts.h b/ports/stm32/lwip_inc/lwipopts.h index aa6cf85874..5711ba8944 100644 --- a/ports/stm32/lwip_inc/lwipopts.h +++ b/ports/stm32/lwip_inc/lwipopts.h @@ -14,11 +14,12 @@ // Increase memory for lwIP to get better performance. #if defined(STM32N6) -#define MEM_SIZE (16 * 1024) +#define MEM_SIZE (64 * 1024) +#define PBUF_POOL_SIZE (32) #define TCP_MSS (1460) -#define TCP_WND (8 * TCP_MSS) -#define TCP_SND_BUF (8 * TCP_MSS) -#define MEMP_NUM_TCP_SEG (32) +#define TCP_WND (16 * TCP_MSS) +#define TCP_SND_BUF (16 * TCP_MSS) +#define MEMP_NUM_TCP_SEG (64) #endif // Include common lwIP configuration.