stack: armc: Workaround config passing bug

Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
pull/13452/head
Jaeden Amero 2020-08-21 16:39:53 +01:00
parent 2ed7403e3e
commit 612b148fd4
154 changed files with 827 additions and 211 deletions

View File

@ -39,8 +39,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define STACK_SIZE __stack_size__ #define STACK_SIZE __stack_size__

View File

@ -39,8 +39,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define STACK_SIZE __stack_size__ #define STACK_SIZE __stack_size__

View File

@ -39,8 +39,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define STACK_SIZE __stack_size__ #define STACK_SIZE __stack_size__

View File

@ -39,8 +39,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define STACK_SIZE __stack_size__ #define STACK_SIZE __stack_size__

View File

@ -39,8 +39,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define STACK_SIZE __stack_size__ #define STACK_SIZE __stack_size__

View File

@ -30,8 +30,12 @@
#include "../cmsis_nvic.h" #include "../cmsis_nvic.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -35,8 +35,12 @@
; ************************************************************* ; *************************************************************
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -35,8 +35,12 @@
; ************************************************************* ; *************************************************************
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -35,8 +35,12 @@
; ************************************************************* ; *************************************************************
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -36,8 +36,12 @@
; ************************************************************* ; *************************************************************
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -36,8 +36,12 @@
; ************************************************************* ; *************************************************************
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -40,8 +40,12 @@
#define VECTOR_SIZE NVIC_RAM_VECTOR_SIZE #define VECTOR_SIZE NVIC_RAM_VECTOR_SIZE
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE+VECTOR_SIZE) #define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE+VECTOR_SIZE)

View File

@ -46,8 +46,12 @@
#define ADUCM_VECTOR_SIZE 0x1A0 #define ADUCM_VECTOR_SIZE 0x1A0
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -43,8 +43,12 @@
#define ADUCM_VECTOR_SIZE 0x1A0 #define ADUCM_VECTOR_SIZE 0x1A0
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -85,8 +85,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -85,8 +85,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE NS_MSP_STACK_SIZE # define MBED_CONF_TARGET_BOOT_STACK_SIZE NS_MSP_STACK_SIZE
# endif # endif
#endif
; Shared memory area between Non-secure and Secure ; Shared memory area between Non-secure and Secure
#define MBED_DATA_SHARED_SIZE NS_DATA_SHARED_SIZE #define MBED_DATA_SHARED_SIZE NS_DATA_SHARED_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -80,8 +80,12 @@
; The size of the stack section at the end of CM0+ SRAM ; The size of the stack section at the end of CM0+ SRAM
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; The size of the stack section at the end of CM4 SRAM ; The size of the stack section at the end of CM4 SRAM
#define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE #define STACK_SIZE MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -18,8 +18,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0 ; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0
#define VECTOR_SIZE 0xC0 #define VECTOR_SIZE 0xC0

View File

@ -1,8 +1,12 @@
#! armcc -E #! armcc -E
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -1,8 +1,12 @@
#! armcc -E #! armcc -E
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -82,8 +82,12 @@
#define m_data_2_size 0x00030000 #define m_data_2_size 0x00030000
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Sizes */ /* Sizes */
#if (defined(__stack_size__)) #if (defined(__stack_size__))

View File

@ -78,8 +78,12 @@
#define m_data_2_size 0x00030000 #define m_data_2_size 0x00030000
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Sizes */ /* Sizes */
#if (defined(__stack_size__)) #if (defined(__stack_size__))

View File

@ -72,8 +72,12 @@
#define m_data_size (0x00004000 - m_interrupts_ram_size) #define m_data_size (0x00004000 - m_interrupts_ram_size)
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Sizes */ /* Sizes */
#if (defined(__stack_size__)) #if (defined(__stack_size__))

View File

@ -70,8 +70,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Sizes */ /* Sizes */
#if (defined(__stack_size__)) #if (defined(__stack_size__))

View File

@ -60,8 +60,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define m_interrupts_start MBED_APP_START #define m_interrupts_start MBED_APP_START
#define m_interrupts_size 0x00000200 #define m_interrupts_size 0x00000200

View File

@ -52,8 +52,12 @@
#define __ram_vector_table__ 1 #define __ram_vector_table__ 1
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__ram_vector_table__)) #if (defined(__ram_vector_table__))
#define __ram_vector_table_size__ 0x00000400 #define __ram_vector_table_size__ 0x00000400

View File

@ -65,8 +65,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define m_interrupts_start MBED_APP_START #define m_interrupts_start MBED_APP_START
#define m_interrupts_size 0x00000400 #define m_interrupts_size 0x00000400

View File

@ -21,8 +21,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 84 vectors (16 core + 68 peripheral) * 4 bytes = 336 bytes to reserve (0x150) ; 84 vectors (16 core + 68 peripheral) * 4 bytes = 336 bytes to reserve (0x150)
#define VECTOR_SIZE 0x150 #define VECTOR_SIZE 0x150

View File

@ -12,8 +12,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -21,8 +21,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 107 vectors (16 core + 91 peripheral) * 4 bytes = 428 bytes to reserve (0x1B0, 8-byte aligned) ; 107 vectors (16 core + 91 peripheral) * 4 bytes = 428 bytes to reserve (0x1B0, 8-byte aligned)
#define VECTOR_SIZE 0x1B0 #define VECTOR_SIZE 0x1B0

View File

@ -12,8 +12,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -7,8 +7,12 @@
; MAX32600: 256KB FLASH (0x40000) + 32KB RAM (0x8000) ; MAX32600: 256KB FLASH (0x40000) + 32KB RAM (0x8000)
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -7,8 +7,12 @@
; MAX32610: 256KB FLASH (0x40000) + 32KB RAM (0x8000) ; MAX32610: 256KB FLASH (0x40000) + 32KB RAM (0x8000)
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -8,8 +8,12 @@
; MAX32620: 2MB FLASH (0x200000) + 256KB RAM (0x40000) ; MAX32620: 2MB FLASH (0x200000) + 256KB RAM (0x40000)
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -8,8 +8,12 @@
; MAX32620: 2MB FLASH (0x200000) + 256KB RAM (0x40000) ; MAX32620: 2MB FLASH (0x200000) + 256KB RAM (0x40000)
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -12,8 +12,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -4,8 +4,12 @@
; 160KB RAM (0x28000) @ 0x20000000 ; 160KB RAM (0x28000) @ 0x20000000
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -4,8 +4,12 @@
; 512KB RAM (0x80000) @ 0x20000000 ; 512KB RAM (0x80000) @ 0x20000000
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -15,8 +15,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -15,8 +15,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x800
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -21,8 +21,12 @@
#include "../../../device/partition_M2351_mem.h" #include "../../../device/partition_M2351_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
LR_IROM1 MBED_APP_START LR_IROM1 MBED_APP_START
{ {

View File

@ -21,8 +21,12 @@
#include "../../../device/partition_M2351_mem.h" #include "../../../device/partition_M2351_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
LR_IROM1 MBED_APP_START LR_IROM1 MBED_APP_START
{ {

View File

@ -21,8 +21,12 @@
#include "../M251_mem.h" #include "../M251_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 64)) #define VECTOR_SIZE (4*(16 + 64))

View File

@ -21,8 +21,12 @@
#include "../M261_mem.h" #include "../M261_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 102)) #define VECTOR_SIZE (4*(16 + 102))

View File

@ -21,8 +21,12 @@
#include "../M451_mem.h" #include "../M451_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 64)) #define VECTOR_SIZE (4*(16 + 64))

View File

@ -21,8 +21,12 @@
#include "../M480_mem.h" #include "../M480_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 96)) #define VECTOR_SIZE (4*(16 + 96))

View File

@ -21,8 +21,12 @@
#include "../M480_mem.h" #include "../M480_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 96)) #define VECTOR_SIZE (4*(16 + 96))

View File

@ -21,8 +21,12 @@
#include "../NANO100_mem.h" #include "../NANO100_mem.h"
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; Does not support vector table relocation ; Does not support vector table relocation

View File

@ -24,8 +24,12 @@
#define MBED_RAM1_SIZE 0x00100000 #define MBED_RAM1_SIZE 0x00100000
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 142)) #define VECTOR_SIZE (4*(16 + 142))

View File

@ -20,8 +20,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define VECTOR_SIZE (4*(16 + 142)) #define VECTOR_SIZE (4*(16 + 142))

View File

@ -9,8 +9,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
LR_IROM1 MBED_APP_START { LR_IROM1 MBED_APP_START {
ER_IROM1 MBED_APP_START { ; load address = execution address ER_IROM1 MBED_APP_START { ; load address = execution address

View File

@ -9,8 +9,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
LR_IROM1 MBED_APP_START { LR_IROM1 MBED_APP_START {
ER_IROM1 MBED_APP_START { ; load address = execution address ER_IROM1 MBED_APP_START { ; load address = execution address

View File

@ -20,8 +20,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 8_byte_aligned(16+47 vect * 4 bytes) = 0x100 ; 8_byte_aligned(16+47 vect * 4 bytes) = 0x100
#define VECTOR_SIZE 0x100 #define VECTOR_SIZE 0x100

View File

@ -1,8 +1,12 @@
#! armcc -E #! armcc -E
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -20,8 +20,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0 ; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0
#define VECTOR_SIZE 0xC0 #define VECTOR_SIZE 0xC0

View File

@ -20,8 +20,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0 ; 8_byte_aligned(48 vect * 4 bytes) = 8_byte_aligned(0xC0) = 0xC0
#define VECTOR_SIZE 0xC0 #define VECTOR_SIZE 0xC0

View File

@ -20,8 +20,12 @@
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
; 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8 ; 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8
#define VECTOR_SIZE 0xC8 #define VECTOR_SIZE 0xC8

View File

@ -77,8 +77,12 @@
/* Sizes */ /* Sizes */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define Stack_Size __stack_size__ #define Stack_Size __stack_size__

View File

@ -38,8 +38,12 @@
/* Sizes */ /* Sizes */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define Stack_Size __stack_size__ #define Stack_Size __stack_size__

View File

@ -69,8 +69,12 @@
#define usb_bdt_size 0x0 #define usb_bdt_size 0x0
/* Sizes */ /* Sizes */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define Stack_Size __stack_size__ #define Stack_Size __stack_size__

View File

@ -83,8 +83,12 @@
/* Sizes */ /* Sizes */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#if (defined(__stack_size__)) #if (defined(__stack_size__))
#define Stack_Size __stack_size__ #define Stack_Size __stack_size__

View File

@ -23,10 +23,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define NVIC_NUM_VECTORS 48 #define NVIC_NUM_VECTORS 48

View File

@ -23,10 +23,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define NVIC_NUM_VECTORS 48 #define NVIC_NUM_VECTORS 48

View File

@ -23,10 +23,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define NVIC_NUM_VECTORS 47 #define NVIC_NUM_VECTORS 47

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -29,8 +29,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -29,8 +29,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -29,8 +29,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -37,8 +37,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -37,8 +37,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -14,8 +14,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -14,8 +14,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -29,8 +29,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -39,8 +39,12 @@
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE) #if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE #define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

View File

@ -25,10 +25,14 @@
#define MBED_APP_SIZE MBED_ROM_SIZE #define MBED_APP_SIZE MBED_ROM_SIZE
#endif #endif
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
/* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */ /* This value is normally defined by the tools to 0x1000 for bare metal and 0x400 for RTOS */
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
# if defined(MBED_BOOT_STACK_SIZE)
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
# else
# define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400 # define MBED_CONF_TARGET_BOOT_STACK_SIZE 0x400
# endif # endif
#endif
/* Round up VECTORS_SIZE to 8 bytes */ /* Round up VECTORS_SIZE to 8 bytes */
#define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7) #define VECTORS_SIZE (((NVIC_NUM_VECTORS * 4) + 7) AND ~7)

Some files were not shown because too many files have changed in this diff Show More