Skip to content

Commit e522c46

Browse files
author
Deepika
committed
Target_STM:_sbrk updated to use limits from linker files no need to set defines
_sbrk uses the exports from linker file __end and __HeapLimit to allocate memory in heap. Linker scripts were updated accordingly to set the limits.
1 parent 1f57568 commit e522c46

File tree

55 files changed

+51
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+51
-194
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/TOOLCHAIN_GCC_ARM/STM32F0xx.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ SECTIONS
138138
__end__ = .;
139139
end = __end__;
140140
*(.heap*)
141+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
141142
__HeapLimit = .;
142143
} > RAM
143144

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/TOOLCHAIN_GCC_ARM/STM32F030X8.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ SECTIONS
137137
__end__ = .;
138138
end = __end__;
139139
*(.heap*)
140+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
140141
__HeapLimit = .;
141142
} > RAM
142143

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/TOOLCHAIN_GCC_ARM/STM32F031X6.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ SECTIONS
137137
__end__ = .;
138138
end = __end__;
139139
*(.heap*)
140+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
140141
__HeapLimit = .;
141142
} > RAM
142143

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/TOOLCHAIN_GCC_ARM/STM32F042X6.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ SECTIONS
137137
__end__ = .;
138138
end = __end__;
139139
*(.heap*)
140+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
140141
__HeapLimit = .;
141142
} > RAM
142143

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/TOOLCHAIN_GCC_ARM/STM32F0xxx_retarget.c

Lines changed: 0 additions & 54 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/TOOLCHAIN_GCC_ARM/STM32F0xxx_retarget.c

Lines changed: 0 additions & 54 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/TOOLCHAIN_GCC_ARM/STM32F091XC.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ SECTIONS
137137
__end__ = .;
138138
end = __end__;
139139
*(.heap*)
140+
. = ORIGIN(RAM) + LENGTH(RAM) - StackSize;
140141
__HeapLimit = .;
141142
} > RAM
142143

targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/TOOLCHAIN_GCC_ARM/STM32F103XB.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ SECTIONS
138138
__end__ = .;
139139
end = __end__;
140140
*(.heap*)
141+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
141142
__HeapLimit = .;
142143
} > RAM
143144

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/TOOLCHAIN_GCC_ARM/STM32F100.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ SECTIONS
138138
__end__ = .;
139139
end = __end__;
140140
*(.heap*)
141+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
141142
__HeapLimit = .;
142143
} > RAM
143144

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/TOOLCHAIN_GCC_ARM/STM32F103XB.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ SECTIONS
138138
__end__ = .;
139139
end = __end__;
140140
*(.heap*)
141+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
141142
__HeapLimit = .;
142143
} > RAM
143144

0 commit comments

Comments
 (0)