File tree 26 files changed +92
-86
lines changed
26 files changed +92
-86
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ MEMORY
29
29
_minimum_stack_size = 2K;
30
30
_minimum_heap_size = 16K;
31
31
32
- /* Define tho top end of the stack. The stack is full descending so begins just
33
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
34
- aligned for a call. */
32
+ /* Define the stack. The stack is full descending so begins just above last byte
33
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
35
34
_estack = ORIGIN (RAM) + LENGTH (RAM);
35
+ _sstack = _estack - 16K;
36
36
37
37
/* RAM extents for the garbage collector */
38
38
_ram_start = ORIGIN (RAM);
39
39
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
40
40
_heap_start = _ebss; /* heap starts just after statically allocated memory */
41
- _heap_end = _ram_end - 16K; /* 16k stack */
41
+ _heap_end = _sstack;
42
42
43
43
ENTRY (Reset_Handler )
44
44
Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ MEMORY
28
28
_minimum_stack_size = 2K;
29
29
_minimum_heap_size = 16K;
30
30
31
- /* Define tho top end of the stack. The stack is full descending so begins just
32
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
33
- aligned for a call. */
31
+ /* Define the stack. The stack is full descending so begins just above last byte
32
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
34
33
_estack = ORIGIN (RAM) + LENGTH (RAM);
34
+ _sstack = _estack - 24K;
35
35
36
36
/* RAM extents for the garbage collector */
37
37
_ram_start = ORIGIN (RAM);
38
38
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
39
39
_heap_start = _ebss; /* heap starts just after statically allocated memory */
40
- _heap_end = _ram_end - 24K; /* 24k stack */
40
+ _heap_end = _sstack;
41
41
42
42
ENTRY (Reset_Handler )
43
43
Original file line number Diff line number Diff line change @@ -27,14 +27,16 @@ MEMORY
27
27
_minimum_stack_size = 2K;
28
28
_minimum_heap_size = 16K;
29
29
30
- /* Define tho top end of the stack */
30
+ /* Define the stack. The stack is full descending so begins just above last byte
31
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
31
32
_estack = ORIGIN (RAM) + LENGTH (RAM);
33
+ _sstack = _estack - 32K; /* tunable */
32
34
33
35
/* RAM extents for the garbage collector */
34
36
_ram_start = ORIGIN (RAM);
35
37
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
36
38
_heap_start = _ebss; /* heap starts just after statically allocated memory */
37
- _heap_end = 0x20078000; /* tunable */
39
+ _heap_end = _sstack;
38
40
39
41
ENTRY (Reset_Handler )
40
42
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ MEMORY
14
14
_minimum_stack_size = 2K;
15
15
_minimum_heap_size = 16K;
16
16
17
- /* Define tho top end of the stack. The stack is full descending so begins just
18
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
19
- aligned for a call. */
17
+ /* Define the stack. The stack is full descending so begins just above last byte above last byte
18
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
20
19
_estack = ORIGIN (RAM) + LENGTH (RAM);
20
+ _sstack = _estack - 6K; /* tunable */
21
21
22
22
/* RAM extents for the garbage collector */
23
23
_ram_start = ORIGIN (RAM);
24
24
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
25
25
_heap_start = _ebss; /* heap starts just after statically allocated memory */
26
- _heap_end = 0x20006800; /* room for a 6k stack */
26
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ MEMORY
14
14
15
15
/* produce a link error if there is not this amount of RAM for these sections */
16
16
_minimum_stack_size = 2K;
17
- _minimum_heap_size = 16K;
17
+ _minimum_heap_size = 16K; /* tunable */
18
18
19
- /* Define tho top end of the stack. The stack is full descending so begins just
20
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
21
- aligned for a call. */
19
+ /* Define the stack. The stack is full descending so begins just above last byte
20
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
22
21
_estack = ORIGIN (RAM) + LENGTH (RAM);
22
+ _sstack = _estack - 16K;
23
23
24
24
/* RAM extents for the garbage collector */
25
25
_ram_start = ORIGIN (RAM);
26
26
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
27
27
_heap_start = _ebss; /* heap starts just after statically allocated memory */
28
- _heap_end = 0x20014000; /* tunable */
28
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ MEMORY
16
16
_minimum_stack_size = 2K;
17
17
_minimum_heap_size = 16K;
18
18
19
- /* Define tho top end of the stack. The stack is full descending so begins just
20
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
21
- aligned for a call. */
19
+ /* Define the stack. The stack is full descending so begins just above last byte
20
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
22
21
_estack = ORIGIN (RAM) + LENGTH (RAM);
22
+ _sstack = _estack - 16K; /* tunable */
23
23
24
24
/* RAM extents for the garbage collector */
25
25
_ram_start = ORIGIN (RAM);
26
26
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
27
27
_heap_start = _ebss; /* heap starts just after statically allocated memory */
28
- _heap_end = 0x20014000; /* tunable */
28
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ MEMORY
17
17
_minimum_stack_size = 2K;
18
18
_minimum_heap_size = 16K;
19
19
20
- /* Define tho top end of the stack. The stack is full descending so begins just
21
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
22
- aligned for a call. */
20
+ /* Define the stack. The stack is full descending so begins just above last byte
21
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
23
22
_estack = ORIGIN (RAM) + LENGTH (RAM);
23
+ _sstack = _estack - 16K; /* tunable */
24
24
25
25
/* RAM extents for the garbage collector */
26
26
_ram_start = ORIGIN (RAM);
27
27
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
28
28
_heap_start = _ebss; /* heap starts just after statically allocated memory */
29
- _heap_end = 0x2001c000; /* tunable */
29
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ MEMORY
16
16
_minimum_stack_size = 2K;
17
17
_minimum_heap_size = 16K;
18
18
19
- /* Define tho top end of the stack. The stack is full descending so begins just
20
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
21
- aligned for a call. */
19
+ /* Define the stack. The stack is full descending so begins just above last byte
20
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
22
21
_estack = ORIGIN (RAM) + LENGTH (RAM);
22
+ _sstack = _estack - 16K; /* tunable */
23
23
24
24
/* RAM extents for the garbage collector */
25
25
_ram_start = ORIGIN (RAM);
26
26
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
27
27
_heap_start = _ebss; /* heap starts just after statically allocated memory */
28
- _heap_end = 0x2001c000; /* tunable */
28
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ MEMORY
19
19
_minimum_stack_size = 2K;
20
20
_minimum_heap_size = 16K;
21
21
22
- /* Define tho top end of the stack. The stack is full descending so begins just
23
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
24
- aligned for a call. */
22
+ /* Define the stack. The stack is full descending so begins just above last byte
23
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
25
24
_estack = ORIGIN (RAM) + LENGTH (RAM);
25
+ _sstack = _estack - 16K; /* tunable */
26
26
27
27
/* RAM extents for the garbage collector */
28
28
_ram_start = ORIGIN (RAM);
29
29
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
30
30
_heap_start = _ebss; /* heap starts just after statically allocated memory */
31
- _heap_end = _ram_end - 16K; /* 240K, tunable */
31
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ MEMORY
19
19
_minimum_stack_size = 2K;
20
20
_minimum_heap_size = 16K;
21
21
22
- /* Define tho top end of the stack. The stack is full descending so begins just
23
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
24
- aligned for a call. */
22
+ /* Define the stack. The stack is full descending so begins just above last byte
23
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
25
24
_estack = ORIGIN (RAM) + LENGTH (RAM);
25
+ _sstack = _estack - 16K; /* tunable */
26
26
27
27
/* RAM extents for the garbage collector */
28
28
_ram_start = ORIGIN (RAM);
29
29
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
30
30
_heap_start = _ebss; /* heap starts just after statically allocated memory */
31
- _heap_end = _ram_end - 16K; /* 240K, tunable */
31
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ MEMORY
17
17
_minimum_stack_size = 2K;
18
18
_minimum_heap_size = 16K;
19
19
20
- /* Define tho top end of the stack. The stack is full descending so begins just
21
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
22
- aligned for a call. */
20
+ /* Define the stack. The stack is full descending so begins just above last byte
21
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
23
22
_estack = ORIGIN (RAM) + LENGTH (RAM);
23
+ _sstack = _estack - 16K; /* tunable */
24
24
25
25
/* RAM extents for the garbage collector */
26
26
_ram_start = ORIGIN (RAM);
27
27
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
28
28
_heap_start = _ebss; /* heap starts just after statically allocated memory */
29
- _heap_end = 0x2002c000; /* tunable */
29
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ MEMORY
18
18
_minimum_stack_size = 2K;
19
19
_minimum_heap_size = 16K;
20
20
21
- /* top end of the stack */
21
+ /* Define the stack. The stack is full descending so begins just above last byte
22
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
22
23
_estack = ORIGIN (RAM) + LENGTH (RAM);
24
+ _sstack = _estack - 16K; /* tunable */
23
25
24
26
/* RAM extents for the garbage collector */
25
27
_ram_start = ORIGIN (RAM);
26
28
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
27
29
_heap_start = _ebss; /* heap starts just after statically allocated memory */
28
- _heap_end = 0x2002c000; /* tunable */
30
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ MEMORY
15
15
_minimum_stack_size = 2K;
16
16
_minimum_heap_size = 16K;
17
17
18
- /* Define tho top end of the stack. The stack is full descending so begins just
19
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
20
- aligned for a call. */
18
+ /* Define the stack. The stack is full descending so begins just above last byte
19
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
21
20
_estack = ORIGIN (RAM) + LENGTH (RAM);
21
+ _sstack = _estack - 32K; /* tunable */
22
22
23
23
/* RAM extents for the garbage collector */
24
24
_ram_start = ORIGIN (RAM);
25
25
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
26
26
_heap_start = _ebss; /* heap starts just after statically allocated memory */
27
- _heap_end = 0x20038000; /* tunable */
27
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change 1
1
/*
2
- GNU linker script for STM32F405
2
+ GNU linker script for STM32F746
3
3
*/
4
4
5
5
/* Specify the memory areas */
@@ -17,13 +17,13 @@ MEMORY
17
17
_minimum_stack_size = 2K;
18
18
_minimum_heap_size = 16K;
19
19
20
- /* Define tho top end of the stack. The stack is full descending so begins just
21
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
22
- aligned for a call. */
20
+ /* Define the stack. The stack is full descending so begins just above last byte
21
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
23
22
_estack = ORIGIN (RAM) + LENGTH (RAM);
23
+ _sstack = _estack - 16K; /* tunable */
24
24
25
25
/* RAM extents for the garbage collector */
26
26
_ram_start = ORIGIN (RAM);
27
27
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
28
28
_heap_start = _ebss; /* heap starts just after statically allocated memory */
29
- _heap_end = 0x2004c000; /* tunable */
29
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ MEMORY
18
18
_minimum_stack_size = 2K;
19
19
_minimum_heap_size = 16K;
20
20
21
- /* Define tho top end of the stack. The stack is full descending so begins just
22
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
23
- aligned for a call. */
21
+ /* Define the stack. The stack is full descending so begins just above last byte
22
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
24
23
_estack = ORIGIN (RAM) + LENGTH (RAM);
24
+ _sstack = _estack - 32K; /* tunable */
25
25
26
26
/* RAM extents for the garbage collector */
27
27
_ram_start = ORIGIN (RAM);
28
28
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
29
29
_heap_start = _ebss; /* heap starts just after statically allocated memory */
30
- _heap_end = 0x20078000; /* tunable */
30
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ MEMORY
17
17
_minimum_stack_size = 2K;
18
18
_minimum_heap_size = 16K;
19
19
20
- /* Define tho top end of the stack. The stack is full descending so begins just
21
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
22
- aligned for a call. */
20
+ /* Define the stack. The stack is full descending so begins just above last byte
21
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
23
22
_estack = ORIGIN (RAM) + LENGTH (RAM);
23
+ _sstack = _estack - 32K; /* tunable */
24
24
25
25
/* RAM extents for the garbage collector */
26
26
_ram_start = ORIGIN (RAM);
27
27
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
28
28
_heap_start = _ebss; /* heap starts just after statically allocated memory */
29
- _heap_end = 0x20078000; /* tunable */
29
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ MEMORY
17
17
_minimum_stack_size = 2K;
18
18
_minimum_heap_size = 16K;
19
19
20
- /* Define tho top end of the stack. The stack is full descending so begins just
21
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
22
- aligned for a call. */
20
+ /* Define the stack. The stack is full descending so begins just above last byte
21
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
23
22
_estack = ORIGIN (RAM) + LENGTH (RAM);
23
+ _sstack = _estack - 16K; /* tunable */
24
24
25
25
/* RAM extents for the garbage collector */
26
26
_ram_start = ORIGIN (RAM);
27
27
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
28
28
_heap_start = _ebss; /* heap starts just after statically allocated memory */
29
- _heap_end = 0x2407C000; /* tunable */
29
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ MEMORY
15
15
_minimum_stack_size = 2K;
16
16
_minimum_heap_size = 16K;
17
17
18
- /* Define the top end of the stack. The stack is full descending so begins just
19
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
20
- aligned for a call. */
18
+ /* Define the stack. The stack is full descending so begins just above last byte
19
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
21
20
_estack = ORIGIN (RAM) + LENGTH (RAM);
21
+ _sstack = _estack - 6K; /* tunable */
22
22
23
23
/* RAM extents for the garbage collector */
24
24
_ram_start = ORIGIN (RAM);
25
25
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
26
26
_heap_start = _ebss; /* heap starts just after statically allocated memory */
27
- _heap_end = 0x2000A800; /* room for a 6k stack */
27
+ _heap_end = _sstack;
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ MEMORY
18
18
_minimum_stack_size = 2K;
19
19
_minimum_heap_size = 16K;
20
20
21
- /* Define the top end of the stack. The stack is full descending so begins just
22
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
23
- aligned for a call. */
21
+ /* Define the stack. The stack is full descending so begins just above last byte
22
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
24
23
_estack = ORIGIN (RAM) + LENGTH (RAM);
24
+ _sstack = _estack - 16K; /* tunable */
25
25
26
26
/* RAM extents for the garbage collector */
27
27
_ram_fs_cache_start = ORIGIN (FS_CACHE);
28
28
_ram_fs_cache_end = ORIGIN (FS_CACHE) + LENGTH (FS_CACHE);
29
29
_ram_start = ORIGIN (RAM);
30
30
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
31
31
_heap_start = _ebss; /* heap starts just after statically allocated memory */
32
- _heap_end = 0x20014000; /* tunable */
32
+ _heap_end = _sstack;
33
33
34
34
_flash_fs_start = ORIGIN (FLASH_FS);
35
35
_flash_fs_end = ORIGIN (FLASH_FS) + LENGTH (FLASH_FS);
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ MEMORY
18
18
_minimum_stack_size = 2K;
19
19
_minimum_heap_size = 16K;
20
20
21
- /* Define the top end of the stack. The stack is full descending so begins just
22
- above last byte of RAM. Note that EABI requires the stack to be 8-byte
23
- aligned for a call. */
21
+ /* Define the stack. The stack is full descending so begins just above last byte
22
+ of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
24
23
_estack = ORIGIN (RAM) + LENGTH (RAM);
24
+ _sstack = _estack - 16K; /* tunable */
25
25
26
26
/* RAM extents for the garbage collector */
27
27
_ram_fs_cache_start = ORIGIN (FS_CACHE);
28
28
_ram_fs_cache_end = ORIGIN (FS_CACHE) + LENGTH (FS_CACHE);
29
29
_ram_start = ORIGIN (RAM);
30
30
_ram_end = ORIGIN (RAM) + LENGTH (RAM);
31
31
_heap_start = _ebss; /* heap starts just after statically allocated memory */
32
- _heap_end = 0x20014000; /* tunable */
32
+ _heap_end = _sstack;
33
33
34
34
_flash_fs_start = ORIGIN (FLASH_FS);
35
35
_flash_fs_end = ORIGIN (FLASH_FS) + LENGTH (FLASH_FS);
You can’t perform that action at this time.
0 commit comments