Skip to content

Commit fcee061

Browse files
committed
Reduce RAM_D1 to 128K (some H7 MCUs have reduced size of flash)
1 parent 76bda12 commit fcee061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Linker/STM32H7xx.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
ENTRY(Reset_Handler)
5454

5555
/* Highest address of the user mode stack */
56-
_estack = 0x20020000; /* end of RAM */
56+
_estack = ORIGIN(DTCMRAM) + LENGTH(DTCMRAM); /* end of RAM */
5757
/* Generate a link error if heap and stack don't fit into RAM */
5858
_Min_Heap_Size = 0x200; /* required amount of heap */
5959
_Min_Stack_Size = 0x400; /* required amount of stack */
@@ -62,7 +62,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
6262
MEMORY
6363
{
6464
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
65-
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512K
65+
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 128K
6666
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
6767
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
6868
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K

0 commit comments

Comments
 (0)