3333ENTRY (Reset_Handler)
3434
3535/* Highest address of the user mode stack */
36- _estack = 0x2000c000 ; /* end of RAM */
36+ _estack = 0x20010000 ; /* end of RAM */
3737/* Generate a link error if heap and stack don't fit into RAM */
3838_Min_Heap_Size = 0x200 ; /* required amount of heap */
3939_Min_Stack_Size = 0x400 ; /* required amount of stack */
4040
4141/* Specify the memory areas */
4242MEMORY
4343{
44- FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 256K
45- RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 48K
46- SRAM2 (rw) : ORIGIN = 0x10000000 , LENGTH = 16K
44+ RAM (xrw) : ORIGIN = 0x20000000 , LENGTH = 64K
45+ FLASH (rx) : ORIGIN = 0x8000000 , LENGTH = 256K
4746}
4847
4948/* Define output sections */
@@ -58,7 +57,7 @@ SECTIONS
5857 } >FLASH
5958
6059 /* The program code and other data goes into FLASH */
61- .text ALIGN ( 8 ) :
60+ .text :
6261 {
6362 . = ALIGN (8 );
6463 *(.text ) /* .text sections (code) */
@@ -140,25 +139,6 @@ SECTIONS
140139 _edata = .; /* define a global symbol at data end */
141140 } >RAM AT> FLASH
142141
143- _sisram2 = LOADADDR (.sram2 );
144-
145- /* CCM-RAM section
146- *
147- * IMPORTANT NOTE!
148- * If initialized variables will be placed in this section,
149- * the startup code needs to be modified to copy the init-values.
150- */
151- .sram2 :
152- {
153- . = ALIGN (8 );
154- _ssram2 = .; /* create a global symbol at sram2 start */
155- *(.sram2 )
156- *(.sram2 *)
157-
158- . = ALIGN (8 );
159- _esram2 = .; /* create a global symbol at sram2 end */
160- } >SRAM2 AT> FLASH
161-
162142
163143 /* Uninitialized data section */
164144 . = ALIGN (4 );
0 commit comments