From f36439cdcaf13cd2ecc33fbf1c344dac2ecbdb6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Thu, 26 Feb 2026 18:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=AF=E5=8A=A8=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- software/Power_Pico/startup_stm32f411xe.s | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/software/Power_Pico/startup_stm32f411xe.s b/software/Power_Pico/startup_stm32f411xe.s index f2ebe11..f0c20ee 100644 --- a/software/Power_Pico/startup_stm32f411xe.s +++ b/software/Power_Pico/startup_stm32f411xe.s @@ -58,17 +58,14 @@ defined in linker script */ .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: - ldr sp, =_estack /* set stack pointer */ + ldr sp, =_estack /* set stack pointer */ -/* Call the clock system initialization function.*/ + /* 强行挪到这里:先执行 SystemInit 重定向中断向量表 */ bl SystemInit /* Copy the data segment initializers from flash to SRAM */ - ldr r0, =_sdata - ldr r1, =_edata - ldr r2, =_sidata - movs r3, #0 - b LoopCopyDataInit + movs r1, #0 + b LoopCopyDataInit CopyDataInit: ldr r4, [r2, r3]