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" 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" 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" 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;