refactor: IWDG driver and EM trigger (#3846)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
PROVIDE(_heap_start = _eram);
|
||||
|
||||
/* Reserve stack and heap space in RAM */
|
||||
.stack(NOLOAD) :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
. = . + MIN_HEAP_SIZE;
|
||||
. = . + MAIN_STACK_SIZE;
|
||||
. = ALIGN(4);
|
||||
} > REGION_RAM
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
/* Highest address of the user mode stack */
|
||||
STACK_ADDRESS = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
|
||||
|
||||
/* Required amount of stack for interrupt stack (Main stack) */
|
||||
MAIN_STACK_SIZE = 1024;
|
||||
|
||||
/* Maximum bootloader code size */
|
||||
BOOTLOADER_SIZE = 0x8000;
|
||||
|
||||
/* Minimum Heap Size (indicative) */
|
||||
MIN_HEAP_SIZE = 0;
|
||||
|
||||
/* Highest heap address */
|
||||
HEAP_ADDRESS = STACK_ADDRESS - MAIN_STACK_SIZE;
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
{
|
||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
|
||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
|
||||
}
|
||||
|
||||
REGION_ALIAS("REGION_DATA", RAM);
|
||||
REGION_ALIAS("REGION_BSS", RAM);
|
||||
REGION_ALIAS("REGION_RAM", RAM);
|
||||
Reference in New Issue
Block a user