File tree Expand file tree Collapse file tree 3 files changed +28
-15
lines changed
TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device Expand file tree Collapse file tree 3 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 1
- /* Linker script to configure memory regions. */
2
-
3
- #if !defined(MBED_BOOT_STACK_SIZE)
4
- #define MBED_BOOT_STACK_SIZE 0x400
5
- #endif
6
-
7
- STACK_SIZE = MBED_BOOT_STACK_SIZE;
8
-
9
- MEMORY
10
- {
11
- FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 192k
12
- RAM (rwx) : ORIGIN = 0x200000C0, LENGTH = 20K - 0xC0
13
- }
14
-
15
1
/* Linker script to place sections and symbol values. Should be used together
16
2
* with other linker script that defines memory regions FLASH and RAM.
17
3
* It references following symbols, which must be defined in code :
@@ -39,6 +25,28 @@ MEMORY
39
25
* __stack
40
26
* _estack
41
27
*/
28
+
29
+ #if !defined(MBED_APP_START)
30
+ #define MBED_APP_START 0x08000000
31
+ #endif
32
+
33
+ #if !defined(MBED_APP_SIZE)
34
+ #define MBED_APP_SIZE 0x2EE00
35
+ #endif
36
+
37
+ #if !defined(MBED_BOOT_STACK_SIZE)
38
+ #define MBED_BOOT_STACK_SIZE 0x400
39
+ #endif
40
+
41
+ STACK_SIZE = MBED_BOOT_STACK_SIZE;
42
+
43
+ /* Linker script to configure memory regions. */
44
+ MEMORY
45
+ {
46
+ FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
47
+ RAM (rwx) : ORIGIN = 0x200000C0, LENGTH = 20K - 0xC0
48
+ }
49
+
42
50
ENTRY (Reset_Handler )
43
51
44
52
SECTIONS
Original file line number Diff line number Diff line change @@ -82,8 +82,12 @@ void SystemInit (void)
82
82
#ifdef VECT_TAB_SRAM
83
83
SCB -> VTOR = SRAM_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal SRAM */
84
84
#else
85
+ #ifdef APPLICATION_ADDR
86
+ SCB -> VTOR = APPLICATION_ADDR ; /* Vector Table Relocation in Internal FLASH to offset application*/
87
+ #else
85
88
SCB -> VTOR = FLASH_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
86
- #endif
89
+ #endif // end APPLICATION_ADDR
90
+ #endif // end VECT_TAB_SRAM
87
91
88
92
}
89
93
Original file line number Diff line number Diff line change 3142
3142
" MPU"
3143
3143
],
3144
3144
"release_versions" : [" 2" , " 5" ],
3145
+ "bootloader_supported" : true ,
3145
3146
"device_name" : " STM32L073RZ"
3146
3147
},
3147
3148
"NUCLEO_L152RE" : {
You can’t perform that action at this time.
0 commit comments