diff options
Diffstat (limited to 'lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F446xE.ld')
-rw-r--r-- | lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F446xE.ld | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F446xE.ld b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F446xE.ld new file mode 100644 index 000000000..f6d42da61 --- /dev/null +++ b/lib/chibios/os/common/startup/ARMCMx/compilers/GCC/ld/STM32F446xE.ld | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /* | ||
18 | * ST32F446xE memory setup. | ||
19 | * Note: Use of ram1 and ram2 is mutually exclusive with use of ram0. | ||
20 | */ | ||
21 | MEMORY | ||
22 | { | ||
23 | flash0 (rx) : org = 0x08000000, len = 512k | ||
24 | flash1 (rx) : org = 0x00000000, len = 0 | ||
25 | flash2 (rx) : org = 0x00000000, len = 0 | ||
26 | flash3 (rx) : org = 0x00000000, len = 0 | ||
27 | flash4 (rx) : org = 0x00000000, len = 0 | ||
28 | flash5 (rx) : org = 0x00000000, len = 0 | ||
29 | flash6 (rx) : org = 0x00000000, len = 0 | ||
30 | flash7 (rx) : org = 0x00000000, len = 0 | ||
31 | ram0 (wx) : org = 0x20000000, len = 128k /* SRAM1 + SRAM2 */ | ||
32 | ram1 (wx) : org = 0x20000000, len = 112k /* SRAM1 */ | ||
33 | ram2 (wx) : org = 0x00000000, len = 16k /* SRAM2 */ | ||
34 | ram3 (wx) : org = 0x00000000, len = 0 | ||
35 | ram4 (wx) : org = 0x00000000, len = 0 | ||
36 | ram5 (wx) : org = 0x00000000, len = 0 | ||
37 | ram6 (wx) : org = 0x00000000, len = 0 | ||
38 | ram7 (wx) : org = 0x00000000, len = 0 | ||
39 | } | ||
40 | |||
41 | /* For each data/text section two region are defined, a virtual region | ||
42 | and a load region (_LMA suffix).*/ | ||
43 | |||
44 | /* Flash region to be used for exception vectors.*/ | ||
45 | REGION_ALIAS("VECTORS_FLASH", flash0); | ||
46 | REGION_ALIAS("VECTORS_FLASH_LMA", flash0); | ||
47 | |||
48 | /* Flash region to be used for constructors and destructors.*/ | ||
49 | REGION_ALIAS("XTORS_FLASH", flash0); | ||
50 | REGION_ALIAS("XTORS_FLASH_LMA", flash0); | ||
51 | |||
52 | /* Flash region to be used for code text.*/ | ||
53 | REGION_ALIAS("TEXT_FLASH", flash0); | ||
54 | REGION_ALIAS("TEXT_FLASH_LMA", flash0); | ||
55 | |||
56 | /* Flash region to be used for read only data.*/ | ||
57 | REGION_ALIAS("RODATA_FLASH", flash0); | ||
58 | REGION_ALIAS("RODATA_FLASH_LMA", flash0); | ||
59 | |||
60 | /* Flash region to be used for various.*/ | ||
61 | REGION_ALIAS("VARIOUS_FLASH", flash0); | ||
62 | REGION_ALIAS("VARIOUS_FLASH_LMA", flash0); | ||
63 | |||
64 | /* Flash region to be used for RAM(n) initialization data.*/ | ||
65 | REGION_ALIAS("RAM_INIT_FLASH_LMA", flash0); | ||
66 | |||
67 | /* RAM region to be used for Main stack. This stack accommodates the processing | ||
68 | of all exceptions and interrupts.*/ | ||
69 | REGION_ALIAS("MAIN_STACK_RAM", ram0); | ||
70 | |||
71 | /* RAM region to be used for the process stack. This is the stack used by | ||
72 | the main() function.*/ | ||
73 | REGION_ALIAS("PROCESS_STACK_RAM", ram0); | ||
74 | |||
75 | /* RAM region to be used for data segment.*/ | ||
76 | REGION_ALIAS("DATA_RAM", ram0); | ||
77 | REGION_ALIAS("DATA_RAM_LMA", flash0); | ||
78 | |||
79 | /* RAM region to be used for BSS segment.*/ | ||
80 | REGION_ALIAS("BSS_RAM", ram0); | ||
81 | |||
82 | /* RAM region to be used for the default heap.*/ | ||
83 | REGION_ALIAS("HEAP_RAM", ram0); | ||
84 | |||
85 | /* Generic rules inclusion.*/ | ||
86 | INCLUDE rules.ld | ||