Skip to content

Commit 0d54284

Browse files
giga r1: fix memory map for lvgl
1 parent 7dbd415 commit 0d54284

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ CONFIG_LLEXT_STORAGE_WRITABLE=n
1717
CONFIG_SHARED_MULTI_HEAP=y
1818
CONFIG_HEAP_MEM_POOL_SIZE=32768
1919
CONFIG_MAIN_STACK_SIZE=32768
20-
CONFIG_LLEXT_HEAP_SIZE=128
20+
CONFIG_LLEXT_HEAP_SIZE=256
2121

2222
CONFIG_CODE_DATA_RELOCATION=y
2323
CONFIG_MAIN_STACK_REGION="DTCM"
24-
CONFIG_LLEXT_HEAP_REGION="SRAM2"
24+
CONFIG_LLEXT_HEAP_REGION="SRAM1"
2525

2626
CONFIG_LOG_BACKEND_UART=y
2727
CONFIG_LOG_BACKEND_UART_AUTOSTART=n

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@
356356
};
357357

358358
user_sketch: partition@e0000 {
359-
reg = <0x0E0000 0x20000>;
359+
reg = <0x000E0000 0x00040000>;
360360
};
361361
};
362362
};
@@ -550,6 +550,17 @@
550550
};
551551
};
552552

553+
&sram1 {
554+
reg = <0x30000000 DT_SIZE_K(256)>;
555+
};
556+
557+
/delete-node/ &sram2;
558+
559+
&sdram1 {
560+
/* Frame buffer memory cache will cause screen flickering. */
561+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) )>;
562+
};
563+
553564
/* Include common flash filesystem configuration */
554565
qspi_flash: &n25q128a1 {};
555566
#include "../common/arduino_flash_fs.dtsi"

0 commit comments

Comments
 (0)