File tree Expand file tree Collapse file tree 4 files changed +37
-9
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device Expand file tree Collapse file tree 4 files changed +37
-9
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
1
2
; Scatter-Loading Description File
2
3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
4
; Copyright (c) 2015, STMicroelectronics
27
28
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29
30
31
+ #if !defined(MBED_APP_START)
32
+ #define MBED_APP_START 0x08000000
33
+ #endif
34
+
35
+ #if !defined(MBED_APP_SIZE)
36
+ #define MBED_APP_SIZE 0x200000
37
+ #endif
38
+
30
39
; 2 MB FLASH (0x200000) + 256 KB SRAM (0x40000)
31
- LR_IROM1 0x08000000 0x200000 { ; load region size_region
40
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
32
41
33
- ER_IROM1 0x08000000 0x200000 { ; load address = execution address
42
+ ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
34
43
*.o (RESET, +First)
35
44
*(InRoot$$Sections)
36
45
.ANY (+RO)
Original file line number Diff line number Diff line change
1
+ #! armcc -E
1
2
; Scatter-Loading Description File
2
3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
4
; Copyright (c) 2015, STMicroelectronics
27
28
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29
30
31
+ #if !defined(MBED_APP_START)
32
+ #define MBED_APP_START 0x08000000
33
+ #endif
34
+
35
+ #if !defined(MBED_APP_SIZE)
36
+ #define MBED_APP_SIZE 0x200000
37
+ #endif
38
+
30
39
; 2 MB FLASH (0x200000) + 192 KB SRAM (0x30000)
31
- LR_IROM1 0x08000000 0x200000 { ; load region size_region
40
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
32
41
33
- ER_IROM1 0x08000000 0x200000 { ; load address = execution address
42
+ ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
34
43
*.o (RESET, +First)
35
44
*(InRoot$$Sections)
36
45
.ANY (+RO)
Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ STACK_SIZE = 0x400;
10
10
* heap and the page heap in uVisor applications. */
11
11
HEAP_SIZE = 0x6000;
12
12
13
+ #if !defined(MBED_APP_START)
14
+ #define MBED_APP_START 0x08000000
15
+ #endif
16
+
17
+ #if !defined(MBED_APP_SIZE)
18
+ #define MBED_APP_SIZE 2048k
19
+ #endif
20
+
13
21
/* Specify the memory areas */
14
22
MEMORY
15
23
{
16
- VECTORS (rx) : ORIGIN = 0x08000000 , LENGTH = 0x400
17
- FLASH (rx) : ORIGIN = 0x08000400 , LENGTH = 2048k - 0x400
24
+ VECTORS (rx) : ORIGIN = MBED_APP_START , LENGTH = 0x400
25
+ FLASH (rx) : ORIGIN = MBED_APP_START + 0x400 , LENGTH = MBED_APP_SIZE - 0x400
18
26
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
19
27
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 192k
20
28
}
Original file line number Diff line number Diff line change 1
1
/*###ICF### Section handled by ICF editor, don't touch! ****/
2
2
/*-Editor annotation file-*/
3
3
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4
+ if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
5
+ if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x200000; }
4
6
/*-Specials-*/
5
- define symbol __ICFEDIT_intvec_start__ = 0x08000000 ;
7
+ define symbol __ICFEDIT_intvec_start__ = MBED_APP_START ;
6
8
/*-Memory Regions-*/
7
- define symbol __ICFEDIT_region_ROM_start__ = 0x08000000 ;
8
- define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF ;
9
+ define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START ;
10
+ define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1 ;
9
11
define symbol __ICFEDIT_region_NVIC_start__ = 0x20000000;
10
12
define symbol __ICFEDIT_region_NVIC_end__ = 0x200001AF;
11
13
define symbol __ICFEDIT_region_RAM_start__ = 0x200001B0;
You can’t perform that action at this time.
0 commit comments