Skip to content

Commit

Permalink
Add _extram_start & _extram_end for Teensy 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Oct 23, 2020
1 parent f908f0b commit ea276ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teensy4/imxrt1062_t41.ld
Expand Up @@ -68,6 +68,7 @@ SECTIONS

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

.text.csf : {
Expand All @@ -90,6 +91,9 @@ SECTIONS
_heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
_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;
_flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
_estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);
Expand Down

0 comments on commit ea276ee

Please sign in to comment.