Update ARM_MICRO startup files

Fix issue #1348 with stack/heap  and with many ST shields.
pull/1554/head
bcostm 2016-02-19 16:51:31 +01:00
parent a4cf478240
commit c30cb0129e
2 changed files with 6 additions and 26 deletions

View File

@ -39,18 +39,8 @@
; ;
;******************************************************************************* ;*******************************************************************************
; Amount of memory (in bytes) allocated for Stack
; Tailor this value to your application needs
; <h> Stack Configuration
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Stack_Size EQU 0x00000400
AREA STACK, NOINIT, READWRITE, ALIGN=3 AREA STACK, NOINIT, READWRITE, ALIGN=3
EXPORT __initial_sp EXPORT __initial_sp
Stack_Mem SPACE Stack_Size
__initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby __initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby
@ -58,7 +48,7 @@ __initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standb
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h> ; </h>
Heap_Size EQU 0x00000400 Heap_Size EQU 0x8000 ; 32KB
AREA HEAP, NOINIT, READWRITE, ALIGN=3 AREA HEAP, NOINIT, READWRITE, ALIGN=3
EXPORT __heap_base EXPORT __heap_base
@ -66,12 +56,11 @@ Heap_Size EQU 0x00000400
__heap_base __heap_base
Heap_Mem SPACE Heap_Size Heap_Mem SPACE Heap_Size
__heap_limit EQU (__initial_sp - Stack_Size) __heap_limit
PRESERVE8 PRESERVE8
THUMB THUMB
; Vector Table Mapped to Address 0 at Reset ; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY AREA RESET, DATA, READONLY
EXPORT __Vectors EXPORT __Vectors
@ -415,3 +404,4 @@ FPU_IRQHandler
END END
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE***** ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****

View File

@ -39,18 +39,8 @@
; ;
;******************************************************************************* ;*******************************************************************************
; Amount of memory (in bytes) allocated for Stack
; Tailor this value to your application needs
; <h> Stack Configuration
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
Stack_Size EQU 0x00000400
AREA STACK, NOINIT, READWRITE, ALIGN=3 AREA STACK, NOINIT, READWRITE, ALIGN=3
EXPORT __initial_sp EXPORT __initial_sp
Stack_Mem SPACE Stack_Size
__initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby __initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standby
@ -58,7 +48,7 @@ __initial_sp EQU 0x10008000 ; Top of RAM, L4-ECC-SRAM2 retained in standb
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h> ; </h>
Heap_Size EQU 0x00000400 Heap_Size EQU 0x8000 ; 32KB
AREA HEAP, NOINIT, READWRITE, ALIGN=3 AREA HEAP, NOINIT, READWRITE, ALIGN=3
EXPORT __heap_base EXPORT __heap_base
@ -66,12 +56,11 @@ Heap_Size EQU 0x00000400
__heap_base __heap_base
Heap_Mem SPACE Heap_Size Heap_Mem SPACE Heap_Size
__heap_limit EQU (__initial_sp - Stack_Size) __heap_limit
PRESERVE8 PRESERVE8
THUMB THUMB
; Vector Table Mapped to Address 0 at Reset ; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY AREA RESET, DATA, READONLY
EXPORT __Vectors EXPORT __Vectors
@ -415,3 +404,4 @@ FPU_IRQHandler
END END
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE***** ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****