File tree Expand file tree Collapse file tree 6 files changed +41
-10
lines changed
TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI Expand file tree Collapse file tree 6 files changed +41
-10
lines changed Original file line number Diff line number Diff line change 30
30
**/
31
31
32
32
#include "stm32f4xx.h"
33
+ #include "nvic_addr.h"
33
34
#include "mbed_error.h"
34
35
35
36
@@ -97,7 +98,7 @@ void SystemInit(void)
97
98
#ifdef VECT_TAB_SRAM
98
99
SCB -> VTOR = SRAM_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal SRAM */
99
100
#else
100
- SCB -> VTOR = FLASH_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
101
+ SCB -> VTOR = NVIC_FLASH_VECTOR_ADDRESS ; /* Vector Table Relocation in Internal FLASH */
101
102
#endif
102
103
103
104
}
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) + 320 KB SRAM (0x50000)
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) + 320 KB SRAM (0x50000)
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
1
/* Linker script to configure memory regions. */
2
2
/* 0x1B4 resevered for vectors; 8-byte aligned = 0x1B8 (0x1B4 + 0x4)*/
3
+
4
+ #if !defined(MBED_APP_START)
5
+ #define MBED_APP_START 0x08000000
6
+ #endif
7
+ #if !defined(MBED_APP_SIZE)
8
+ #define MBED_APP_SIZE 2M
9
+ #endif
10
+
3
11
MEMORY
4
12
{
5
- FLASH (rx) : ORIGIN = 0x08000000 , LENGTH = 2M
13
+ FLASH (rx) : ORIGIN = MBED_APP_START , LENGTH = MBED_APP_SIZE
6
14
RAM (rwx) : ORIGIN = 0x200001B8, LENGTH = 320k - (0x1B4+0x4)
7
15
}
8
16
Original file line number Diff line number Diff line change
1
+ if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
2
+ if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x200000; }
3
+
1
4
/* [ROM = 2mb = 0x200000] */
2
- define symbol __intvec_start__ = 0x08000000 ;
3
- define symbol __region_ROM_start__ = 0x08000000 ;
4
- define symbol __region_ROM_end__ = 0x081FFFFF ;
5
+ define symbol __intvec_start__ = MBED_APP_START ;
6
+ define symbol __region_ROM_start__ = MBED_APP_START ;
7
+ define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1 ;
5
8
6
9
/* [RAM = 384kb = 0x60000] Vector table dynamic copy: 109 vectors * 4 = 436 bytes (0x1B4) to be reserved in RAM */
7
10
define symbol __NVIC_start__ = 0x20000000;
Original file line number Diff line number Diff line change 3652
3652
" MPU"
3653
3653
],
3654
3654
"release_versions" : [" 2" , " 5" ],
3655
- "device_name" : " STM32F469NI"
3655
+ "device_name" : " STM32F469NI" ,
3656
+ "bootloader_supported" : true
3656
3657
},
3657
3658
"DISCO_L053C8" : {
3658
3659
"inherits" : [" FAMILY_STM32" ],
You can’t perform that action at this time.
0 commit comments