2021-12-18 20:16:07 +00:00
|
|
|
/* Memory configuration */
|
|
|
|
#if defined MICROPY_HW_FLASH_RESERVED
|
|
|
|
reserved_size = MICROPY_HW_FLASH_RESERVED;
|
|
|
|
#endif
|
|
|
|
|
2022-06-22 20:26:54 +01:00
|
|
|
#if MICROPY_HW_FLASH_TYPE == qspi_nor_flash
|
2021-12-18 20:16:07 +00:00
|
|
|
flash_start = 0x60000000;
|
|
|
|
#else
|
|
|
|
#error Unknown MICROPY_HW_FLASH_TYPE
|
|
|
|
#endif
|
|
|
|
flash_size = MICROPY_HW_FLASH_SIZE;
|
|
|
|
flash_end = DEFINED(reserved_size) ? ((flash_start) + (flash_size - reserved_size)) : ((flash_start) + (flash_size));
|
|
|
|
flash_config_start = flash_start;
|
|
|
|
flash_config_size = 0x00001000;
|
|
|
|
ivt_start = flash_start + 0x00001000;
|
|
|
|
ivt_size = 0x00001000;
|
|
|
|
interrupts_start = flash_start + 0x00002000;
|
|
|
|
interrupts_size = 0x00000400;
|
|
|
|
text_start = flash_start + 0x00002400;
|
|
|
|
vfs_start = flash_start + 0x00100000;
|
|
|
|
text_size = ((vfs_start) - (text_start));
|
|
|
|
vfs_size = ((flash_end) - (vfs_start));
|
|
|
|
itcm_start = 0x00000000;
|
|
|
|
itcm_size = 0x00008000;
|
|
|
|
dtcm_start = 0x20000000;
|
|
|
|
dtcm_size = 0x00008000;
|
|
|
|
ocrm_start = 0x20200000;
|
|
|
|
ocrm_size = 0x00010000;
|
|
|
|
|
|
|
|
/* 24kiB stack. */
|
|
|
|
__stack_size__ = 0x5000;
|
|
|
|
_estack = __StackTop;
|
|
|
|
_sstack = __StackLimit;
|
|
|
|
|
|
|
|
/* Use second OCRAM bank for GC heap. */
|
|
|
|
/* Use all OCRAM for the GC heap. */
|
|
|
|
_gc_heap_start = ORIGIN(m_ocrm);
|
|
|
|
_gc_heap_end = ORIGIN(m_ocrm) + LENGTH(m_ocrm);
|