Browse Source

Add _extram_start & _extram_end for Teensy 4.1

teensy4-core
PaulStoffregen 4 years ago
parent
commit
ea276ee57a
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      teensy4/imxrt1062_t41.ld

+ 4
- 0
teensy4/imxrt1062_t41.ld View File



.bss.extram (NOLOAD) : { .bss.extram (NOLOAD) : {
*(.externalram) *(.externalram)
. = ALIGN(32);
} > ERAM } > ERAM


.text.csf : { .text.csf : {
_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);


_extram_start = ADDR(.bss.extram);
_extram_end = ADDR(.bss.extram) + SIZEOF(.bss.extram);

_itcm_block_count = (SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + 0x7FFF) >> 15; _itcm_block_count = (SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + 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