Skip to content

Commit c30cb01

Browse files
committed
Update ARM_MICRO startup files
Fix issue #1348 with stack/heap and with many ST shields.
1 parent a4cf478 commit c30cb01

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.s

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,28 @@
3939
;
4040
;*******************************************************************************
4141

42-
; Amount of memory (in bytes) allocated for Stack
43-
; Tailor this value to your application needs
44-
; <h> Stack Configuration
45-
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
46-
; </h>
47-
48-
Stack_Size EQU 0x00000400
49-
5042
AREA STACK, NOINIT, READWRITE, ALIGN=3
5143
EXPORT __initial_sp
52-
53-
Stack_Mem SPACE Stack_Size
5444

5545
__initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby
5646

5747
; <h> Heap Configuration
5848
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
5949
; </h>
6050

61-
Heap_Size EQU 0x00000400
51+
Heap_Size EQU 0x8000 ; 32KB
6252

6353
AREA HEAP, NOINIT, READWRITE, ALIGN=3
6454
EXPORT __heap_base
6555
EXPORT __heap_limit
6656
6757
__heap_base
6858
Heap_Mem SPACE Heap_Size
69-
__heap_limit EQU (__initial_sp - Stack_Size)
59+
__heap_limit
7060

7161
PRESERVE8
7262
THUMB
7363

74-
7564
; Vector Table Mapped to Address 0 at Reset
7665
AREA RESET, DATA, READONLY
7766
EXPORT __Vectors
@@ -415,3 +404,4 @@ FPU_IRQHandler
415404
END
416405

417406
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
407+

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.s

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,28 @@
3939
;
4040
;*******************************************************************************
4141

42-
; Amount of memory (in bytes) allocated for Stack
43-
; Tailor this value to your application needs
44-
; <h> Stack Configuration
45-
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
46-
; </h>
47-
48-
Stack_Size EQU 0x00000400
49-
5042
AREA STACK, NOINIT, READWRITE, ALIGN=3
5143
EXPORT __initial_sp
52-
53-
Stack_Mem SPACE Stack_Size
5444

5545
__initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby
5646

5747
; <h> Heap Configuration
5848
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
5949
; </h>
6050

61-
Heap_Size EQU 0x00000400
51+
Heap_Size EQU 0x8000 ; 32KB
6252

6353
AREA HEAP, NOINIT, READWRITE, ALIGN=3
6454
EXPORT __heap_base
6555
EXPORT __heap_limit
6656
6757
__heap_base
6858
Heap_Mem SPACE Heap_Size
69-
__heap_limit EQU (__initial_sp - Stack_Size)
59+
__heap_limit
7060

7161
PRESERVE8
7262
THUMB
7363

74-
7564
; Vector Table Mapped to Address 0 at Reset
7665
AREA RESET, DATA, READONLY
7766
EXPORT __Vectors
@@ -415,3 +404,4 @@ FPU_IRQHandler
415404
END
416405

417406
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
407+

0 commit comments

Comments
 (0)