From 33e52f9bd9d97b7fadc34f5747aae024d0571104 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 23 Oct 2025 09:44:08 +0200 Subject: [PATCH] variants/arduino_portenta_h7_stm32h747xx_m7: Update board config. - Increase heap size. - Fix flash partitions. Signed-off-by: iabdalkader --- .../arduino_portenta_h7_stm32h747xx_m7.conf | 2 +- .../arduino_portenta_h7_stm32h747xx_m7.overlay | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf b/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf index 6c0b575eb..a9b62bfc6 100644 --- a/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf +++ b/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf @@ -12,7 +12,7 @@ CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y CONFIG_LLEXT_STORAGE_WRITABLE=n CONFIG_SHARED_MULTI_HEAP=y -CONFIG_HEAP_MEM_POOL_SIZE=2048 +CONFIG_HEAP_MEM_POOL_SIZE=65536 CONFIG_FPU=y CONFIG_ICACHE=y diff --git a/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay b/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay index 36643e3d9..9f760d762 100644 --- a/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay +++ b/variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay @@ -264,6 +264,7 @@ soc { flash-controller@52002000 { flash0: flash@8000000 { + /delete-node/ partitions; compatible = "st,stm32-nv-flash", "soc-nv-flash"; write-block-size = <32>; erase-block-size = ; @@ -278,6 +279,22 @@ #address-cells = <1>; #size-cells = <1>; + boot_partition: partition@0 { + label = "mcuboot"; + reg = <0x00000000 0x00020000>; + read-only; + }; + + scratch_partition: partition@20000 { + label = "image-scratch"; + reg = <0x00020000 0x00020000>; + }; + + slot0_partition: partition@40000 { + label = "image-0"; + reg = <0x00040000 0x000C0000>; + }; + user_sketch: partition@e0000 { reg = <0x0E0000 0x20000>; };