CMSIS-Core(M): Reworked Stack/Heap configuration for ARM startup files.
; * @file startup_<Device>.s
; * @brief CMSIS Cortex-M ARMv7-M based Core Device Startup File for
; * Device <Device>
-; * @version V5.3.1
-; * @date 09. July 2018
+; * @version V5.4.0
+; * @date 12. December 2018
; ******************************************************************************/
;/*
; * Copyright (c) 2009-2018 Arm Limited. All rights reserved.
@@ -80,7 +80,7 @@ __Vectors DCD __initial_sp ; Top of Stack
DCD PendSV_Handler ; -2 PendSV Handler
DCD SysTick_Handler ; -1 SysTick Handler
- ; External Interrupts
+ ; Interrupts
; ToDo: Add here the vectors for the device specific external interrupts handler
DCD Interrupt0_Handler ; 0 Interrupt 0
DCD Interrupt1_Handler ; 1 Interrupt 1
@@ -154,6 +154,10 @@ $Handler_Name PROC
; User setup Stack & Heap
+ IF :LNOT::DEF:__MICROLIB
+ IMPORT __use_two_region_memory
+ ENDIF
+
EXPORT __stack_limit
EXPORT __initial_sp
IF Heap_Size != 0 ; Heap is provided
