Browse Source

Add dummy ITCM padding linker section, improves memory summary

teensy4-core
PaulStoffregen 5 years ago
parent
commit
f606ad9efb
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      teensy4/imxrt1062.ld

+ 5
- 1
teensy4/imxrt1062.ld View File

. = ALIGN(16); . = ALIGN(16);
} > ITCM AT> FLASH } > ITCM AT> FLASH


.text.itcm.padding (NOLOAD) : {
. = ALIGN(32768);
} > ITCM

.data : { .data : {
*(.rodata*) *(.rodata*)
*(.data*) *(.data*)
_heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma); _heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
_heap_end = ORIGIN(RAM) + LENGTH(RAM); _heap_end = ORIGIN(RAM) + LENGTH(RAM);


_itcm_block_count = (SIZEOF(.text.itcm) + 0x7FFE) >> 15;
_itcm_block_count = (SIZEOF(.text.itcm) + 0x7FFF) >> 15;
_flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1); _flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
_estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15); _estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);



Loading…
Cancel
Save