Skip to content

Commit a099a12

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

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ build.zsk_args.startup-mode-wait=
8080
build.zsk_args.startup-mode-immediate=-immediate
8181

8282
# These can be overridden in platform.local.txt
83-
compiler.c.extra_flags=
83+
compiler.c.extra_flags="-DARDUINO_LV_CONF_PATH={build.source.path}/lv_conf_user.h"
8484
compiler.c.elf.extra_flags=
8585
compiler.S.extra_flags=
86-
compiler.cpp.extra_flags=
86+
compiler.cpp.extra_flags="-DARDUINO_LV_CONF_PATH={build.source.path}/lv_conf_user.h"
8787
compiler.ar.extra_flags=
8888
compiler.objcopy.eep.extra_flags=
8989
compiler.elf2hex.extra_flags=

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)