2021-05-07 09:21:09 -04:00
|
|
|
/* Memory configuration */
|
2021-08-20 15:41:58 -04:00
|
|
|
#if BOARD_FLASH_RESERVED
|
|
|
|
reserved_size = BOARD_FLASH_RESERVED;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if BOARD_FLASH_TYPE==qspi_nor
|
2021-05-07 09:21:09 -04:00
|
|
|
flash_start = 0x60000000;
|
2021-08-20 15:41:58 -04:00
|
|
|
#else
|
|
|
|
#error Unknown BOARD_FLASH_TYPE
|
|
|
|
#endif
|
|
|
|
flash_size = BOARD_FLASH_SIZE;
|
2021-05-07 09:21:09 -04:00
|
|
|
flash_end = DEFINED(reserved_size) ? ((flash_start) + (flash_size - reserved_size)) : ((flash_start) + (flash_size));
|
2021-08-20 15:41:58 -04:00
|
|
|
flash_config_start = flash_start + 0x00000400;
|
2021-05-07 09:21:09 -04:00
|
|
|
flash_config_size = 0x00000C00;
|
2021-08-20 15:41:58 -04:00
|
|
|
ivt_start = flash_start + 0x00001000;
|
2021-05-07 09:21:09 -04:00
|
|
|
ivt_size = 0x00001000;
|
2021-08-20 15:41:58 -04:00
|
|
|
interrupts_start = flash_start + 0x00002000;
|
2021-05-07 09:21:09 -04:00
|
|
|
interrupts_size = 0x00000400;
|
2021-08-20 15:41:58 -04:00
|
|
|
text_start = flash_start + 0x00002400;
|
|
|
|
vfs_start = flash_start + 0x00100000;
|
|
|
|
text_size = ((vfs_start) - (text_start));
|
2021-05-07 09:21:09 -04:00
|
|
|
vfs_size = ((flash_end) - (vfs_start));
|
|
|
|
itcm_start = 0x00000000;
|
|
|
|
itcm_size = 0x00008000;
|
|
|
|
dtcm_start = 0x20000000;
|
|
|
|
dtcm_size = 0x00008000;
|
|
|
|
ocrm_start = 0x20200000;
|
|
|
|
ocrm_size = 0x00010000;
|
|
|
|
|
|
|
|
/* 20kiB stack. */
|
|
|
|
__stack_size__ = 0x5000;
|
2020-01-29 22:40:34 -05:00
|
|
|
_estack = __StackTop;
|
|
|
|
_sstack = __StackLimit;
|
|
|
|
|
2020-06-10 05:11:30 -04:00
|
|
|
/* Do not use the traditional C heap. */
|
|
|
|
__heap_size__ = 0;
|
|
|
|
|
2020-01-29 22:40:34 -05:00
|
|
|
/* Use second OCRAM bank for GC heap. */
|
2021-05-07 09:21:09 -04:00
|
|
|
_gc_heap_start = ORIGIN(m_ocrm);
|
|
|
|
_gc_heap_end = ORIGIN(m_ocrm) + LENGTH(m_ocrm);
|