From 05740fd665ccbbac99a6d3473b8a8f9897cee3cb Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Apr 2026 14:50:32 +1000 Subject: [PATCH] qemu/boards/NETDUINO2: Change heap size to 114k. This board has 128k RAM, and its heap was originally 120k but commit e84c9abfc21f57fe93b4d9a05c1d123e3f333880 changed that to 140k which will not fit. This commit reduces the heap down to 114k which allows enough room for the remaining data/bss, a 10k heap and about 3k spare. Signed-off-by: Damien George --- ports/qemu/boards/NETDUINO2/mpconfigboard.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/qemu/boards/NETDUINO2/mpconfigboard.mk b/ports/qemu/boards/NETDUINO2/mpconfigboard.mk index ffa781f339..6f8fa4c6b4 100644 --- a/ports/qemu/boards/NETDUINO2/mpconfigboard.mk +++ b/ports/qemu/boards/NETDUINO2/mpconfigboard.mk @@ -9,4 +9,7 @@ LDSCRIPT = mcu/arm/stm32.ld SRC_BOARD_O = shared/runtime/gchelper_native.o shared/runtime/gchelper_thumb2.o +# 114k heap, because this board only has 128k RAM and the stack needs 10k. +MICROPY_HEAP_SIZE ?= 116736 + MPY_CROSS_FLAGS += -march=armv7m