From 48175f6cf22d58a4145f200ce1661af8afc73e8f Mon Sep 17 00:00:00 2001 From: tianjialong Date: Sat, 18 Feb 2023 21:33:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=AF=E5=8A=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A0=86=E6=A0=88=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s b/app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s index 541a5e8..c017e72 100644 --- a/app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s +++ b/app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s @@ -30,7 +30,7 @@ ; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> ; -Stack_Size EQU 0x00000400 +Stack_Size EQU 0x00000800 AREA STACK, NOINIT, READWRITE, ALIGN=3 Stack_Mem SPACE Stack_Size @@ -41,8 +41,9 @@ __initial_sp ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; -;未用到编译器自带的内存管理(malloc,free等),设置Heap_Szie为0 -Heap_Size EQU 0x00000000 +;鏈敤鍒扮紪璇戝櫒鑷甫鐨勫唴瀛樼鐞(malloc,free绛)锛岃缃瓾eap_Szie涓0 (DEMO) +;sizeof(g_eth_dma_rx_dscr_tab)+sizeof(g_eth_dma_tx_dscr_tab)+sizeof(g_eth_rx_buf)+sizeof(g_eth_tx_buf)=12448byte,Because of the hexadecimal,12448byte*2=0x6140 +Heap_Size EQU 0x00007200 AREA HEAP, NOINIT, READWRITE, ALIGN=3 __heap_base @@ -172,7 +173,7 @@ Reset_Handler PROC EXPORT Reset_Handler [WEAK] IMPORT SystemInit IMPORT __main - LDR R0, =0xE000ED88 ; 使能浮点运算 CP10,CP11 + LDR R0, =0xE000ED88 ; 使锟杰革拷锟斤拷锟斤拷锟斤拷 CP10,CP11 LDR R1,[R0] ORR R1,R1,#(0xF << 20) STR R1,[R0]