14
14
**
15
15
** Target : STMicroelectronics STM32
16
16
**
17
- **
18
- ** Distribution : The file is distributed as is, without any warranty
17
+ ** Distribution : The file is distributed “as is,” without any warranty
19
18
** of any kind.
20
19
**
21
20
*****************************************************************************
22
21
** @attention
23
22
**
24
- ** <h2><center>© COPYRIGHT(c) 2014 Ac6 </center></h2>
23
+ ** <h2><center>© COPYRIGHT(c) 2019 STMicroelectronics </center></h2>
25
24
**
26
25
** Redistribution and use in source and binary forms, with or without modification,
27
26
** are permitted provided that the following conditions are met :
30
29
** 2. Redistributions in binary form must reproduce the above copyright notice,
31
30
** this list of conditions and the following disclaimer in the documentation
32
31
** and/or other materials provided with the distribution.
33
- ** 3. Neither the name of Ac6 nor the names of its contributors
32
+ ** 3. Neither the name of STMicroelectronics nor the names of its contributors
34
33
** may be used to endorse or promote products derived from this software
35
34
** without specific prior written permission.
36
35
**
@@ -54,15 +53,15 @@ ENTRY(Reset_Handler)
54
53
/* Highest address of the user mode stack */
55
54
_estack = 0x20020000; /* end of RAM */
56
55
/* Generate a link error if heap and stack don't fit into RAM */
57
- _Min_Heap_Size = 0x200;; /* required amount of heap */
58
- _Min_Stack_Size = 0x400;; /* required amount of stack */
56
+ _Min_Heap_Size = 0x200; /* required amount of heap */
57
+ _Min_Stack_Size = 0x400; /* required amount of stack */
59
58
60
59
/* Specify the memory areas */
61
60
MEMORY
62
61
{
63
- FLASH (rx ) : ORIGIN = 0x8000000, LENGTH = 1024K
64
62
RAM (xrw ) : ORIGIN = 0x20000000, LENGTH = 128K
65
- CCMRAM (rw ) : ORIGIN = 0x10000000, LENGTH = 64K
63
+ CCMRAM (xrw ) : ORIGIN = 0x10000000, LENGTH = 64K
64
+ FLASH (rx ) : ORIGIN = 0x8000000, LENGTH = 1024K
66
65
}
67
66
68
67
/* Define output sections */
@@ -77,7 +76,7 @@ SECTIONS
77
76
} >FLASH
78
77
79
78
/* The program code and other data goes into FLASH */
80
- .text ALIGN (4) :
79
+ .text :
81
80
{
82
81
. = ALIGN (4);
83
82
*(.text) /* .text sections (code) */
@@ -94,7 +93,7 @@ SECTIONS
94
93
} >FLASH
95
94
96
95
/* Constant data goes into FLASH */
97
- .rodata ALIGN (4) :
96
+ .rodata :
98
97
{
99
98
. = ALIGN (4);
100
99
*(.rodata) /* .rodata sections (constants, strings, etc.) */
@@ -184,12 +183,12 @@ SECTIONS
184
183
/* User_heap_stack section, used to check that there is enough RAM left */
185
184
._user_heap_stack :
186
185
{
187
- . = ALIGN (4 );
186
+ . = ALIGN (8 );
188
187
PROVIDE ( end = . );
189
188
PROVIDE ( _end = . );
190
189
. = . + _Min_Heap_Size;
191
190
. = . + _Min_Stack_Size;
192
- . = ALIGN (4 );
191
+ . = ALIGN (8 );
193
192
} >RAM
194
193
195
194
0 commit comments