Browse Source

更新启动文件堆栈大小

zdyz_demo_no_sram
tianjialong 3 years ago
parent
commit
48175f6cf2
  1. 9
      app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s

9
app/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s

@ -30,7 +30,7 @@
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
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
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
; </h>
;(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]

Loading…
Cancel
Save