linker: Make stack size configurable.
Need to work on the EFM32 linker scripts still.
This commit is contained in:
parent
35ed954034
commit
74f10ec5d7
|
@ -1,6 +1,8 @@
|
|||
#ifndef __EFM32G_HW_H
|
||||
#define __EFM32G_HW_H
|
||||
|
||||
/* XXX Note that none of this is used at the moment */
|
||||
|
||||
/* Configuration */
|
||||
#define MCU_SRAM_SIZE (64*1024)
|
||||
#define MCU_SRAM_BASE (0x20000000)
|
||||
|
@ -10,5 +12,6 @@
|
|||
#define MCU_FLASH_SIZE (512*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (510*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (64*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (62*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (512*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (510*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (1024*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (1022*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (256*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (254*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (256*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (254*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (2048*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (2046*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (384*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (382*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,5 +10,6 @@
|
|||
#define MCU_FLASH_SIZE (256*1024)
|
||||
#define MCU_FLASH_PAGE_SIZE 2048
|
||||
#define MCU_FLASH_IMAGE_SIZE (254*1024)
|
||||
#define MCU_STACK_SIZE 0x200
|
||||
|
||||
#endif
|
||||
|
|
|
@ -9,7 +9,7 @@ MEMORY {
|
|||
|
||||
_estack = ORIGIN(SRAM)+LENGTH(SRAM); /* end of the stack */
|
||||
_seemul = ORIGIN(EEMUL); /* start of the eeprom emulation area */
|
||||
_min_stack = 0x200; /* minimum stack space to reserve for the user app */
|
||||
_min_stack = MCU_STACK_SIZE; /* minimum stack space to reserve for the user app */
|
||||
|
||||
/* check valid alignment for the vector table */
|
||||
ASSERT(ORIGIN(FLASH) == ALIGN(ORIGIN(FLASH), 0x80), "Start of memory region flash not aligned for startup vector table");
|
||||
|
|
Loading…
Reference in New Issue