File tree Expand file tree Collapse file tree 4 files changed +49
-15
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device Expand file tree Collapse file tree 4 files changed +49
-15
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
30
- ; 2 MB FLASH (0x200000) + 256 KB SRAM (0x40000)
31
- LR_IROM1 0x08000000 0x200000 { ; load region size_region
31
+ #if !defined(MBED_APP_START)
32
+ #define MBED_APP_START 0x08000000
33
+ #endif
32
34
33
- ER_IROM1 0x08000000 0x200000 { ; load address = execution address
35
+ #if !defined(MBED_APP_SIZE)
36
+ #define MBED_APP_SIZE 0x200000
37
+ #endif
38
+
39
+ ; STM32F439xI: 2048 KB FLASH (0x200000) + 256 KB SRAM (0x30000 + 0x10000)
40
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
41
+
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)
37
46
}
38
47
39
- ; Total: 107 vectors = 428 bytes (0x1AC) to be reserved in RAM
40
- RW_IRAM1 (0x20000000+0x1AC) (0x20000-0x1AC) { ; RW data
48
+ ; Total: 107 vectors = 428 bytes (0x1AC) to be used
49
+ ; should match ER_IROM1::RESET/4 and cmsis_nvic.h::NVIC_NUM_VECTORS
50
+ RW_IRAM1 (0x20000000 + (107*4)) (0x30000 - (107*4)) { ; RW data
41
51
.ANY (+RW +ZI)
42
52
}
43
-
53
+ RW_IRAM2 (0x10000000) 0x10000 {
54
+ .ANY (+RW +ZI)
55
+ }
44
56
}
45
57
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
30
- ; 2 MB FLASH (0x200000) + 192 KB SRAM (0x30000)
31
- LR_IROM1 0x08000000 0x200000 { ; load region size_region
31
+ #if !defined(MBED_APP_START)
32
+ #define MBED_APP_START 0x08000000
33
+ #endif
32
34
33
- ER_IROM1 0x08000000 0x200000 { ; load address = execution address
35
+ #if !defined(MBED_APP_SIZE)
36
+ #define MBED_APP_SIZE 0x200000
37
+ #endif
38
+
39
+ ; 2 MB FLASH (0x200000) + 256 KB SRAM (0x30000 + 0x10000)
40
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
41
+
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)
@@ -40,6 +49,9 @@ LR_IROM1 0x08000000 0x200000 { ; load region size_region
40
49
RW_IRAM1 (0x20000000+0x1AC) (0x30000-0x1AC) { ; RW data
41
50
.ANY (+RW +ZI)
42
51
}
43
-
52
+
53
+ RW_IRAM2 (0x10000000) (0x10000) { ; RW data
54
+ .ANY (+RW +ZI)
55
+ }
44
56
}
45
57
Original file line number Diff line number Diff line change
1
+ #if !defined(MBED_APP_START)
2
+ #define MBED_APP_START 0x08000000
3
+ #endif
4
+
5
+ #if !defined(MBED_APP_SIZE)
6
+ #define MBED_APP_SIZE 2048k
7
+ #endif
8
+
1
9
/* Linker script to configure memory regions. */
2
10
MEMORY
3
11
{
4
- FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 2048k
12
+ FLASH (rx) : ORIGIN = MBED_APP_START , LENGTH = MBED_APP_SIZE
5
13
CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K
6
14
RAM (rwx) : ORIGIN = 0x200001AC, LENGTH = 192k - 0x1AC
7
15
}
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;
12
14
define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF;
13
15
define symbol __ICFEDIT_region_CCMRAM_start__ = 0x10000000;
14
16
define symbol __ICFEDIT_region_CCMRAM_end__ = 0x1000FFFF;
15
17
/*-Sizes-*/
16
- /*Heap 1/3 of ram and stack 1/8 */
18
+ /*Heap 64kB and stack 24kB */
17
19
define symbol __ICFEDIT_size_cstack__ = 0x6000;
18
20
define symbol __ICFEDIT_size_heap__ = 0x10000;
19
21
/**** End of ICF editor section. ###ICF###*/
You can’t perform that action at this time.
0 commit comments