summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-11-11 17:34:23 +1100
committerDamien George <damien@micropython.org>2025-11-20 13:01:35 +1100
commit6c4b05d8325b518ec620208e3d1fec72a53b86cb (patch)
tree9f413ef58ee84b67fbf66004094d0fe007110a9f
parentc8a818cf13747252349ffdee9cf1cb9ad6b3408a (diff)
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 <damien@micropython.org>
-rw-r--r--ports/stm32/lwip_inc/lwipopts.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ports/stm32/lwip_inc/lwipopts.h b/ports/stm32/lwip_inc/lwipopts.h
index aa6cf8587..5711ba894 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.