From e1aff431c0cb123d81fc0775d6c1e4f7df2bd796 Mon Sep 17 00:00:00 2001 From: zhji Date: Wed, 11 Dec 2024 14:47:44 +0800 Subject: [PATCH] [feat] update stach description in ld --- bootloader/flash.ld | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bootloader/flash.ld b/bootloader/flash.ld index 80bf4a2..8ce0539 100644 --- a/bootloader/flash.ld +++ b/bootloader/flash.ld @@ -1,15 +1,16 @@ ENTRY(Reset_Handler) +StackSize = 0x4000; /* 16KB */ + MEMORY { /*FLASH (rx) :ORIGIN = 0x08000000, LENGTH = 128K*/ /*ITCM (xrw) :ORIGIN = 0x00000000, LENGTH = 64K*/ FLASH (xr) :ORIGIN = 0x00000000, LENGTH = 64K - DTCM (xrw) :ORIGIN = 0x20000000, LENGTH = 112K - STACK (rw) :ORIGIN = 0x2001C000, LENGTH = 16K + DTCM (xrw) :ORIGIN = 0x20000000, LENGTH = 128K - StackSize } -_stack_top = ORIGIN(STACK) + LENGTH(STACK); +_stack_top = ORIGIN(DTCM) + LENGTH(DTCM) + StackSize; SECTIONS {