diff --git a/cpu/cc2538/cc2538_linkerscript.ld b/cpu/cc2538/cc2538_linkerscript.ld index ecede7373..c4155cc13 100644 --- a/cpu/cc2538/cc2538_linkerscript.ld +++ b/cpu/cc2538/cc2538_linkerscript.ld @@ -31,8 +31,10 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) SEARCH_DIR(.) -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 2K ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/sam3x8e/sam3x8e_linkerscript.ld b/cpu/sam3x8e/sam3x8e_linkerscript.ld index e5cbb3cdc..e14b1e39b 100644 --- a/cpu/sam3x8e/sam3x8e_linkerscript.ld +++ b/cpu/sam3x8e/sam3x8e_linkerscript.ld @@ -40,8 +40,10 @@ MEMORY ram (rwx) : ORIGIN = 0x20070000, LENGTH = 0x00018000 /* sram, 96K */ } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/samd21/samd21_linkerscript.ld b/cpu/samd21/samd21_linkerscript.ld index 8d99e82af..c8ea41505 100644 --- a/cpu/samd21/samd21_linkerscript.ld +++ b/cpu/samd21/samd21_linkerscript.ld @@ -38,8 +38,10 @@ MEMORY ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 /* RAM, 32K */ } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/stm32f0/stm32f051r8_linkerscript.ld b/cpu/stm32f0/stm32f051r8_linkerscript.ld index 2ddc74344..8ffee40c2 100644 --- a/cpu/stm32f0/stm32f051r8_linkerscript.ld +++ b/cpu/stm32f0/stm32f051r8_linkerscript.ld @@ -38,8 +38,10 @@ MEMORY ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0xa00 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/stm32f1/stm32f103cb_linkerscript.ld b/cpu/stm32f1/stm32f103cb_linkerscript.ld index b4cf5bd9b..998ea14eb 100644 --- a/cpu/stm32f1/stm32f103cb_linkerscript.ld +++ b/cpu/stm32f1/stm32f103cb_linkerscript.ld @@ -38,8 +38,10 @@ MEMORY ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/stm32f1/stm32f103re_linkerscript.ld b/cpu/stm32f1/stm32f103re_linkerscript.ld index a35f74230..c82e3f11f 100644 --- a/cpu/stm32f1/stm32f103re_linkerscript.ld +++ b/cpu/stm32f1/stm32f103re_linkerscript.ld @@ -38,8 +38,10 @@ MEMORY ram (xrw) : ORIGIN = 0x20000000, LENGTH = 64K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/stm32f3/stm32f303vc_linkerscript.ld b/cpu/stm32f3/stm32f303vc_linkerscript.ld index 3b7de69c2..81373bab6 100644 --- a/cpu/stm32f3/stm32f303vc_linkerscript.ld +++ b/cpu/stm32f3/stm32f303vc_linkerscript.ld @@ -39,8 +39,10 @@ MEMORY ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 8K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0xa00; /* 2.5K */ +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ SECTIONS diff --git a/cpu/stm32f4/stm32f407vg_linkerscript.ld b/cpu/stm32f4/stm32f407vg_linkerscript.ld index 857d99db6..a1320e4a4 100644 --- a/cpu/stm32f4/stm32f407vg_linkerscript.ld +++ b/cpu/stm32f4/stm32f407vg_linkerscript.ld @@ -39,8 +39,10 @@ MEMORY ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */ diff --git a/cpu/stm32f4/stm32f415rg_linkerscript.ld b/cpu/stm32f4/stm32f415rg_linkerscript.ld index 857d99db6..a1320e4a4 100644 --- a/cpu/stm32f4/stm32f415rg_linkerscript.ld +++ b/cpu/stm32f4/stm32f415rg_linkerscript.ld @@ -39,8 +39,10 @@ MEMORY ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K } -/* The stack size used by the application. NOTE: you need to adjust */ -STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ; +/* Define the default stack size for interrupt mode. As no context is + saved on this stack and ISRs are supposed to be short, it can be fairly + small. 512 byte should be a save assumption here */ +STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */ /* Section Definitions */