Skip to content

Commit 85381a2

Browse files
committed
fixup ldscripts: no need for such a large stack
Signed-off-by: John Sanpe <[email protected]>
1 parent a04dd72 commit 85381a2

File tree

4 files changed

+16
-24
lines changed

4 files changed

+16
-24
lines changed

ldscripts/py32f003x6.ld

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
2323
Generate a link error if heap and stack don't fit into RAM.
2424
These numbers affect the USED size of RAM
2525
*/
26-
_Min_Heap_Size = 0x200; /* required amount of heap: 512 bytes */
27-
_Min_Stack_Size = 0x400; /* required amount of stack: 1024 bytes */
26+
_Min_Heap_Size = 0x100; /* required amount of heap: 256 bytes */
27+
_Min_Stack_Size = 0x200; /* required amount of stack: 512 bytes */
2828

2929
/* Specify the memory areas */
3030
MEMORY
@@ -108,7 +108,7 @@ SECTIONS
108108
_sidata = LOADADDR(.data);
109109

110110
/* Initialized data sections goes into RAM, load LMA copy after code */
111-
.data :
111+
.data :
112112
{
113113
. = ALIGN(4);
114114
_sdata = .; /* create a global symbol at data start */
@@ -119,7 +119,7 @@ SECTIONS
119119
_edata = .; /* define a global symbol at data end */
120120
} >RAM AT> FLASH
121121

122-
122+
123123
/* Uninitialized data section */
124124
. = ALIGN(4);
125125
.bss :
@@ -157,5 +157,3 @@ SECTIONS
157157

158158
.ARM.attributes 0 : { *(.ARM.attributes) }
159159
}
160-
161-

ldscripts/py32f003x8.ld

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
2323
Generate a link error if heap and stack don't fit into RAM.
2424
These numbers affect the USED size of RAM
2525
*/
26-
_Min_Heap_Size = 0x200; /* required amount of heap: 512 bytes */
27-
_Min_Stack_Size = 0x400; /* required amount of stack: 1024 bytes */
26+
_Min_Heap_Size = 0x100; /* required amount of heap: 256 bytes */
27+
_Min_Stack_Size = 0x200; /* required amount of stack: 512 bytes */
2828

2929
/* Specify the memory areas */
3030
MEMORY
@@ -108,7 +108,7 @@ SECTIONS
108108
_sidata = LOADADDR(.data);
109109

110110
/* Initialized data sections goes into RAM, load LMA copy after code */
111-
.data :
111+
.data :
112112
{
113113
. = ALIGN(4);
114114
_sdata = .; /* create a global symbol at data start */
@@ -119,7 +119,7 @@ SECTIONS
119119
_edata = .; /* define a global symbol at data end */
120120
} >RAM AT> FLASH
121121

122-
122+
123123
/* Uninitialized data section */
124124
. = ALIGN(4);
125125
.bss :
@@ -157,5 +157,3 @@ SECTIONS
157157

158158
.ARM.attributes 0 : { *(.ARM.attributes) }
159159
}
160-
161-

ldscripts/py32f030x6.ld

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
2323
Generate a link error if heap and stack don't fit into RAM.
2424
These numbers affect the USED size of RAM
2525
*/
26-
_Min_Heap_Size = 0x200; /* required amount of heap: 512 bytes */
27-
_Min_Stack_Size = 0x400; /* required amount of stack: 1024 bytes */
26+
_Min_Heap_Size = 0x100; /* required amount of heap: 256 bytes */
27+
_Min_Stack_Size = 0x200; /* required amount of stack: 512 bytes */
2828

2929
/* Specify the memory areas */
3030
MEMORY
@@ -108,7 +108,7 @@ SECTIONS
108108
_sidata = LOADADDR(.data);
109109

110110
/* Initialized data sections goes into RAM, load LMA copy after code */
111-
.data :
111+
.data :
112112
{
113113
. = ALIGN(4);
114114
_sdata = .; /* create a global symbol at data start */
@@ -119,7 +119,7 @@ SECTIONS
119119
_edata = .; /* define a global symbol at data end */
120120
} >RAM AT> FLASH
121121

122-
122+
123123
/* Uninitialized data section */
124124
. = ALIGN(4);
125125
.bss :
@@ -157,5 +157,3 @@ SECTIONS
157157

158158
.ARM.attributes 0 : { *(.ARM.attributes) }
159159
}
160-
161-

ldscripts/py32f030x8.ld

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
2323
Generate a link error if heap and stack don't fit into RAM.
2424
These numbers affect the USED size of RAM
2525
*/
26-
_Min_Heap_Size = 0x200; /* required amount of heap: 512 bytes */
27-
_Min_Stack_Size = 0x400; /* required amount of stack: 1024 bytes */
26+
_Min_Heap_Size = 0x100; /* required amount of heap: 256 bytes */
27+
_Min_Stack_Size = 0x200; /* required amount of stack: 512 bytes */
2828

2929
/* Specify the memory areas */
3030
MEMORY
@@ -108,7 +108,7 @@ SECTIONS
108108
_sidata = LOADADDR(.data);
109109

110110
/* Initialized data sections goes into RAM, load LMA copy after code */
111-
.data :
111+
.data :
112112
{
113113
. = ALIGN(4);
114114
_sdata = .; /* create a global symbol at data start */
@@ -119,7 +119,7 @@ SECTIONS
119119
_edata = .; /* define a global symbol at data end */
120120
} >RAM AT> FLASH
121121

122-
122+
123123
/* Uninitialized data section */
124124
. = ALIGN(4);
125125
.bss :
@@ -157,5 +157,3 @@ SECTIONS
157157

158158
.ARM.attributes 0 : { *(.ARM.attributes) }
159159
}
160-
161-

0 commit comments

Comments
 (0)