File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L4R5xI/device Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
45
45
.ANY (+RO)
46
46
}
47
47
48
- ; Total: 111 vectors = 444 bytes (0x1BC) to be reserved in RAM
49
- RW_IRAM1 (0x20000000+0x1BC ) (0xA0000-0x1BC ) { ; RW data
48
+ ; Total: 111 vectors = 444 bytes (0x1BC) (+ 4 bytes for 8-byte alignment) to be reserved in RAM
49
+ RW_IRAM1 (0x20000000+0x1C0 ) (0xA0000-0x1C0 ) { ; RW data
50
50
.ANY (+RW +ZI)
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
45
45
.ANY (+RO)
46
46
}
47
47
48
- ; Total: 111 vectors = 444 bytes (0x1BC) to be reserved in RAM
49
- RW_IRAM1 (0x20000000+0x1BC ) (0xA0000-0x1BC ) { ; RW data
48
+ ; Total: 111 vectors = 444 bytes (0x1BC) (+ 4 bytes for 8-byte alignment) to be reserved in RAM
49
+ RW_IRAM1 (0x20000000+0x1C0 ) (0xA0000-0x1C0 ) { ; RW data
50
50
.ANY (+RW +ZI)
51
51
}
52
52
}
Original file line number Diff line number Diff line change 7
7
#endif
8
8
9
9
/* Linker script to configure memory regions. */
10
+ /* Total : 111 vectors = 444 bytes (0x1BC) (+ 4 bytes for 8-byte alignment) to be reserved in RAM */
10
11
MEMORY
11
12
{
12
13
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
13
- SRAM1 (rwx) : ORIGIN = 0x200001BC , LENGTH = 640k - 0x1BC
14
+ SRAM1 (rwx) : ORIGIN = 0x200001C0 , LENGTH = 640k - 0x1C0
14
15
}
15
16
16
17
/* Linker script to place sections and symbol values. Should be used together
@@ -92,28 +93,29 @@ SECTIONS
92
93
*(vtable)
93
94
*(.data*)
94
95
95
- . = ALIGN (4 );
96
+ . = ALIGN (8 );
96
97
/* preinit data */
97
98
PROVIDE_HIDDEN (__preinit_array_start = .);
98
99
KEEP(*(.preinit_array))
99
100
PROVIDE_HIDDEN (__preinit_array_end = .);
100
101
101
- . = ALIGN (4 );
102
+ . = ALIGN (8 );
102
103
/* init data */
103
104
PROVIDE_HIDDEN (__init_array_start = .);
104
105
KEEP(*(SORT(.init_array.*)))
105
106
KEEP(*(.init_array))
106
107
PROVIDE_HIDDEN (__init_array_end = .);
107
108
108
- . = ALIGN (4);
109
+
110
+ . = ALIGN (8);
109
111
/* finit data */
110
112
PROVIDE_HIDDEN (__fini_array_start = .);
111
113
KEEP(*(SORT(.fini_array.*)))
112
114
KEEP(*(.fini_array))
113
115
PROVIDE_HIDDEN (__fini_array_end = .);
114
116
115
117
KEEP(*(.jcr*))
116
- . = ALIGN (4 );
118
+ . = ALIGN (8 );
117
119
/* All data end */
118
120
__data_end__ = .;
119
121
_edata = .;
@@ -122,12 +124,12 @@ SECTIONS
122
124
123
125
.bss :
124
126
{
125
- . = ALIGN (4 );
127
+ . = ALIGN (8 );
126
128
__bss_start__ = .;
127
129
_sbss = .;
128
130
*(.bss*)
129
131
*(COMMON)
130
- . = ALIGN (4 );
132
+ . = ALIGN (8 );
131
133
__bss_end__ = .;
132
134
_ebss = .;
133
135
} > SRAM1
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ define symbol __region_ROM_start__ = MBED_APP_START;
7
7
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
8
8
9
9
/* [RAM = 640KB = 0xA0000] */
10
- /* Vector table dynamic copy: Total: 111 vectors = 444 bytes (0x1BC) to be reserved in RAM */
11
- /* Reserved 448 bytes (0x1C0) to be aligned on 8 bytes (448 = 56 x 8) */
10
+ /* Vector table dynamic copy */
11
+ /* Total: 111 vectors = 444 bytes (0x1BC) (+ 4 bytes for 8-byte alignment) to be reserved in RAM */
12
12
define symbol __NVIC_start__ = 0x20000000;
13
13
define symbol __NVIC_end__ = 0x20000000 + 0x1C0 - 1;
14
14
define symbol __region_SRAM1_start__ = 0x20000000 + 0x1C0;
You can’t perform that action at this time.
0 commit comments