File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
ports/stm32/boards/ARDUINO_GIGA Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ typedef unsigned int mp_uint_t; // must be pointer size
3131#define MICROPY_HW_ENABLE_MMCARD (0)
3232#define MICROPY_HW_ENTER_BOOTLOADER_VIA_RESET (0)
3333#define MICROPY_HW_TIM_IS_RESERVED (id ) (id == 1)
34+ #define MICROPY_GC_SPLIT_HEAP (1)
3435
3536// ROMFS config
3637#define MICROPY_HW_ROMFS_ENABLE_EXTERNAL_QSPI (1)
Original file line number Diff line number Diff line change 1212 SRAM2 (xrw) : ORIGIN = 0x30020000 , LENGTH = 128K /* SRAM2 D2 */
1313 SRAM3 (xrw) : ORIGIN = 0x30040000 , LENGTH = 32K /* SRAM3 D2 */
1414 SRAM4 (xrw) : ORIGIN = 0x38000000 , LENGTH = 64K /* SRAM4 D3 */
15+ SDRAM (xrw) : ORIGIN = 0x60000000 , LENGTH = 8M /* SDRAM */
1516 FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 2048K /* Total available flash */
1617 FLASH_BL (rx) : ORIGIN = 0x08000000 , LENGTH = 128K /* Arduino bootloader */
1718 FLASH_FS (r) : ORIGIN = 0x08020000 , LENGTH = 128K /* filesystem */
@@ -53,3 +54,27 @@ _openamp_shm_region_start = ORIGIN(SRAM4);
5354_openamp_shm_region_end = ORIGIN (SRAM4) + LENGTH (SRAM4);
5455
5556INCLUDE common_blifs.ld
57+
58+ SECTIONS
59+ {
60+ /* GC blocks addresses and sizes */
61+ .gc .blocks .table (READONLY) : {
62+ . = ALIGN (4 );
63+ _gc_blocks_table_start = .;
64+
65+ LONG (ORIGIN (SRAM1));
66+ LONG (128K);
67+
68+ LONG (ORIGIN (SDRAM) + 0M);
69+ LONG (2M);
70+
71+ LONG (ORIGIN (SDRAM) + 2M);
72+ LONG (2M);
73+
74+ LONG (ORIGIN (SDRAM) + 4M);
75+ LONG (4M);
76+
77+ _gc_blocks_table_end = .;
78+ . = ALIGN (4 );
79+ } > FLASH_TEXT
80+ }
You can’t perform that action at this time.
0 commit comments