From 742b773c1cf95a50136986c8391e7e6e0eb6540e Mon Sep 17 00:00:00 2001 From: Lizongdi <1210855344@qq.com> Date: Wed, 1 Jul 2026 13:37:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=8B=E5=BA=8F=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Src/system_stm32h7xx.c | 4 ++-- STM32H743XG_FLASH.ld | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Src/system_stm32h7xx.c b/Core/Src/system_stm32h7xx.c index a508367..ab771f1 100644 --- a/Core/Src/system_stm32h7xx.c +++ b/Core/Src/system_stm32h7xx.c @@ -90,7 +90,7 @@ /*!< Uncomment the following line if you need to relocate the vector table anywhere in FLASH BANK1 or AXI SRAM, else the vector table is kept at the automatic remap of boot address selected */ -/* #define USER_VECT_TAB_ADDRESS */ +#define USER_VECT_TAB_ADDRESS #if defined(USER_VECT_TAB_ADDRESS) #if defined(DUAL_CORE) && defined(CORE_CM4) @@ -118,7 +118,7 @@ #endif /* DUAL_CORE && CORE_CM4 */ #if !defined(VECT_TAB_OFFSET) -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. +#define VECT_TAB_OFFSET 0x00020000U /*!< Vector Table base offset field. This value must be a multiple of 0x400. */ #endif /* VECT_TAB_OFFSET */ diff --git a/STM32H743XG_FLASH.ld b/STM32H743XG_FLASH.ld index 228a3af..ea43882 100644 --- a/STM32H743XG_FLASH.ld +++ b/STM32H743XG_FLASH.ld @@ -60,7 +60,7 @@ RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 512K RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K -FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K +FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 512K FLASH2 (rx) : ORIGIN = 0x8100000, LENGTH = 512K }