From 5b82d6ab26e320d9a0e1f2017c81780e585337bd Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 22 Feb 2026 05:21:05 +0100 Subject: [PATCH 1/4] variants/arduino_portenta_h7: Increase llext heap. Merge SRAM1 and SRAM2 to increase llext heap to 256KBs. Signed-off-by: iabdalkader --- .../arduino_portenta_h7_stm32h747xx_m7.conf | 4 ++-- .../arduino_portenta_h7_stm32h747xx_m7.overlay | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) 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 7c11eda25..ac2d93cd2 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 @@ -34,11 +34,11 @@ CONFIG_CAN=y CONFIG_CAN_FD_MODE=y CONFIG_MAIN_STACK_SIZE=32768 -CONFIG_LLEXT_HEAP_SIZE=128 +CONFIG_LLEXT_HEAP_SIZE=256 CONFIG_CODE_DATA_RELOCATION=y CONFIG_MAIN_STACK_REGION="DTCM" -CONFIG_LLEXT_HEAP_REGION="SRAM2" +CONFIG_LLEXT_HEAP_REGION="SRAM1" CONFIG_ADC=y CONFIG_PWM=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 3e7714420..2d5ca995c 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 @@ -331,18 +331,18 @@ #size-cells = <1>; boot_partition: partition@0 { - label = "mcuboot"; - reg = <0x00000000 0x00040000>; - read-only; + label = "mcuboot"; + reg = <0x00000000 0x00040000>; + read-only; }; slot0_partition: partition@40000 { - label = "image-0"; - reg = <0x00040000 0x000A0000>; + label = "image-0"; + reg = <0x00040000 0x000A0000>; }; user_sketch: partition@e0000 { - reg = <0x0E0000 0x20000>; + reg = <0x000E0000 0x00040000>; }; }; }; @@ -442,3 +442,9 @@ qspi_flash: &mx25l12833f {}; <&adc1 13>; /* Hack for D20 */ }; }; + +&sram1 { + reg = <0x30000000 DT_SIZE_K(256)>; +}; + +/delete-node/ &sram2; From d636bcbc270e145b22d083472df787488e1a3ba9 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Tue, 31 Mar 2026 18:22:20 +0200 Subject: [PATCH 2/4] variants/arduino_giga_r1: Increase llext heap Merge SRAM1 and SRAM2 to increase llext heap to 256KBs. --- .../arduino_giga_r1_stm32h747xx_m7.conf | 4 ++-- .../arduino_giga_r1_stm32h747xx_m7.overlay | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf b/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf index 904aa1b33..6d82a337d 100644 --- a/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf +++ b/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf @@ -17,11 +17,11 @@ CONFIG_LLEXT_STORAGE_WRITABLE=n CONFIG_SHARED_MULTI_HEAP=y CONFIG_HEAP_MEM_POOL_SIZE=32768 CONFIG_MAIN_STACK_SIZE=32768 -CONFIG_LLEXT_HEAP_SIZE=128 +CONFIG_LLEXT_HEAP_SIZE=256 CONFIG_CODE_DATA_RELOCATION=y CONFIG_MAIN_STACK_REGION="DTCM" -CONFIG_LLEXT_HEAP_REGION="SRAM2" +CONFIG_LLEXT_HEAP_REGION="SRAM1" CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_BACKEND_UART_AUTOSTART=n diff --git a/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay b/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay index 8deef0026..013e1a561 100644 --- a/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay +++ b/variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay @@ -410,7 +410,7 @@ }; user_sketch: partition@e0000 { - reg = <0x0E0000 0x20000>; + reg = <0x000E0000 0x00040000>; }; }; }; @@ -605,6 +605,12 @@ }; }; +&sram1 { + reg = <0x30000000 DT_SIZE_K(256)>; +}; + +/delete-node/ &sram2; + /* Include common flash filesystem configuration */ qspi_flash: &n25q128a1 {}; #include "../common/arduino_flash_fs.dtsi" From e0ff03c5a43614672ddcd5c2e4f2ffa4305bceb0 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 7 May 2026 11:45:12 +0200 Subject: [PATCH 3/4] variants/arduino_nicla_vision: Increase llext heap Merge SRAM1 and SRAM2 to increase llext heap to 256KBs. --- .../arduino_nicla_vision_stm32h747xx_m7.conf | 4 ++-- .../arduino_nicla_vision_stm32h747xx_m7.overlay | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.conf b/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.conf index 97cbe058a..55728da6f 100644 --- a/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.conf +++ b/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.conf @@ -33,11 +33,11 @@ CONFIG_ARM_MPU=y CONFIG_MAX_THREAD_BYTES=4 CONFIG_MAIN_STACK_SIZE=32768 -CONFIG_LLEXT_HEAP_SIZE=128 +CONFIG_LLEXT_HEAP_SIZE=256 CONFIG_CODE_DATA_RELOCATION=y CONFIG_MAIN_STACK_REGION="DTCM" -CONFIG_LLEXT_HEAP_REGION="SRAM2" +CONFIG_LLEXT_HEAP_REGION="SRAM1" CONFIG_ADC=y CONFIG_PWM=y diff --git a/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.overlay b/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.overlay index 41954a198..2c4add9bd 100644 --- a/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.overlay +++ b/variants/arduino_nicla_vision_stm32h747xx_m7/arduino_nicla_vision_stm32h747xx_m7.overlay @@ -232,7 +232,7 @@ }; user_sketch: partition@e0000 { - reg = <0x0E0000 0x20000>; + reg = <0x000E0000 0x00040000>; }; }; }; @@ -290,6 +290,12 @@ }; }; +&sram1 { + reg = <0x30000000 DT_SIZE_K(256)>; +}; + +/delete-node/ &sram2; + /* Include common flash filesystem configuration */ qspi_flash: &n25q128a1 {}; #include "../common/arduino_flash_fs.dtsi" From 96bb17f8b69407edc2cfd5132a221a33d8481ed6 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 7 May 2026 11:47:55 +0200 Subject: [PATCH 4/4] variants/arduino_opta: Increase llext heap Merge SRAM1 and SRAM2 to increase llext heap to 256KBs. --- .../arduino_opta_stm32h747xx_m7.conf | 4 ++-- .../arduino_opta_stm32h747xx_m7.overlay | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf b/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf index 5aeef0c6e..88923274a 100644 --- a/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf +++ b/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf @@ -16,11 +16,11 @@ CONFIG_LLEXT_STORAGE_WRITABLE=n CONFIG_HEAP_MEM_POOL_SIZE=32768 CONFIG_MAIN_STACK_SIZE=32768 -CONFIG_LLEXT_HEAP_SIZE=128 +CONFIG_LLEXT_HEAP_SIZE=256 CONFIG_CODE_DATA_RELOCATION=y CONFIG_MAIN_STACK_REGION="DTCM" -CONFIG_LLEXT_HEAP_REGION="SRAM2" +CONFIG_LLEXT_HEAP_REGION="SRAM1" CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_BACKEND_UART_AUTOSTART=n diff --git a/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay b/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay index b73d69cc9..3c8118a10 100644 --- a/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay +++ b/variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay @@ -74,7 +74,7 @@ &flash0 { partitions { user_sketch: partition@e0000 { - reg = <0x0E0000 0x20000>; + reg = <0x000E0000 0x00040000>; }; }; }; @@ -134,5 +134,11 @@ }; }; +&sram1 { + reg = <0x30000000 DT_SIZE_K(256)>; +}; + +/delete-node/ &sram2; + /* Include common flash filesystem configuration */ #include "../common/arduino_flash_fs.dtsi"