Skip to content

Commit c557842

Browse files
committed
[NUC472] Reduce (interrupt) stack size from 12 KB to 4 KB
1 parent 2922de8 commit c557842

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_MICRO/NUC472.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ LR_IROM1 0x00000000 {
1010
; uvisor-lib.a (+RW +ZI)
1111
;}
1212

13-
ARM_LIB_STACK 0x20000000 EMPTY 0x3000 {
13+
ARM_LIB_STACK 0x20000000 EMPTY 0x1000 {
1414
}
1515

16-
ER_IRAMVEC 0x20003000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
16+
ER_IRAMVEC 0x20001000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
1717
}
1818

1919
RW_IRAM1 AlignExpr(+0, 16) { ; 16 byte-aligned

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_STD/NUC472.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ LR_IROM1 0x00000000 {
1010
; uvisor-lib.a (+RW +ZI)
1111
;}
1212

13-
ARM_LIB_STACK 0x20000000 EMPTY 0x3000 {
13+
ARM_LIB_STACK 0x20000000 EMPTY 0x1000 {
1414
}
1515

16-
ER_IRAMVEC 0x20003000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
16+
ER_IRAMVEC 0x20001000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
1717
}
1818

1919
RW_IRAM1 AlignExpr(+0, 16) { ; 16 byte-aligned

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_GCC_ARM/NUC472.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Nuvoton NUC472 GCC linker script file
33
*/
44

5-
StackSize = 0x3000;
5+
StackSize = 0x1000;
66

77
MEMORY
88
{

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_IAR/NUC472_442.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define symbol __ICFEDIT_region_IRAM_end__ = 0x20010000;
1111
define symbol __ICFEDIT_region_XRAM_start__ = 0x60000000;
1212
define symbol __ICFEDIT_region_XRAM_end__ = 0x60100000;
1313
/*-Sizes-*/
14-
define symbol __ICFEDIT_size_cstack__ = 0x2000;
14+
define symbol __ICFEDIT_size_cstack__ = 0x1000;
1515
define symbol __ICFEDIT_size_heap__ = 0xC0000;
1616
/**** End of ICF editor section. ###ICF###*/
1717

0 commit comments

Comments
 (0)