amiro-os / modules / STM32F4Discovery / STM32F407xG.ld @ 90e99d44
History | View | Annotate | Download (3.003 KB)
1 | 07ff44a7 | Thomas Schöpping | /* |
---|---|---|---|
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 | * STM32F407xG memory setup. |
||
19 | * Note: Use of ram1 and ram2 is mutually exclusive with use of ram0. |
||
20 | */ |
||
21 | MEMORY |
||
22 | { |
||
23 | flash0 : org = 0x08000000, len = 1M |
||
24 | flash1 : org = 0x00000000, len = 0 |
||
25 | flash2 : org = 0x00000000, len = 0 |
||
26 | flash3 : org = 0x00000000, len = 0 |
||
27 | flash4 : org = 0x00000000, len = 0 |
||
28 | flash5 : org = 0x00000000, len = 0 |
||
29 | flash6 : org = 0x00000000, len = 0 |
||
30 | flash7 : org = 0x00000000, len = 0 |
||
31 | ram0 : org = 0x20000000, len = 128k /* SRAM1 + SRAM2 */ |
||
32 | ram1 : org = 0x20000000, len = 112k /* SRAM1 */ |
||
33 | ram2 : org = 0x2001C000, len = 16k /* SRAM2 */ |
||
34 | ram3 : org = 0x00000000, len = 0 |
||
35 | ram4 : org = 0x10000000, len = 64k /* CCM SRAM */ |
||
36 | ram5 : org = 0x40024000, len = 4k /* BCKP SRAM */ |
||
37 | ram6 : org = 0x00000000, len = 0 |
||
38 | ram7 : 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 |