feat(make): add "iram_bss" to link some global varible from DRAM to IRAM

This commit is contained in:
dongheng
2019-09-26 17:20:03 +08:00
parent 63ba83f119
commit 3e6c6696ef
12 changed files with 48 additions and 3 deletions

View File

@ -81,10 +81,22 @@ SECTIONS
mapping[iram0_text]
_iram_text_end = ABSOLUTE(.);
} > iram0_0_seg
.iram0.bss :
{
. = ALIGN (4);
/* Code marked as runnning out of IRAM */
_iram_bss_start = ABSOLUTE(.);
mapping[iram0_bss]
. = ALIGN (4);
_iram_bss_end = ABSOLUTE(.);
_iram_end = ABSOLUTE(.);
} > iram0_0_seg
ASSERT(((_iram_text_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
ASSERT(((_iram_end - ORIGIN(iram0_0_seg)) <= LENGTH(iram0_0_seg)),
"IRAM0 segment data does not fit.")
.dram0.data :

View File

@ -0,0 +1,5 @@
[scheme:iram_bss]
entries:
bss -> iram0_bss
common -> iram0_bss