Skip to content

Commit e25b88e

Browse files
authored
Merge pull request #13342 from orsonmmz/new_olimex_e407_bloader
Support for Olimex STM32-E407 bootloader
2 parents 7be4cb9 + db99b1d commit e25b88e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/TARGET_OLIMEX_STM32E407_F407ZG/system_clock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include "stm32f4xx.h"
3333
#include "mbed_error.h"
34+
#include "nvic_addr.h"
3435

3536
/*!< Uncomment the following line if you need to relocate your vector Table in
3637
Internal SRAM. */
@@ -94,7 +95,7 @@ void SystemInit(void)
9495
#ifdef VECT_TAB_SRAM
9596
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
9697
#else
97-
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
98+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
9899
#endif
99100

100101
}

targets/targets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4092,7 +4092,8 @@
40924092
"USBDEVICE"
40934093
],
40944094
"release_versions": ["5"],
4095-
"device_name": "STM32F407ZG"
4095+
"device_name": "STM32F407ZG",
4096+
"bootloader_supported": true
40964097
},
40974098
"DISCO_F429ZI": {
40984099
"inherits": ["FAMILY_STM32"],

tools/arm_pack_manager/index.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363617,7 +363617,11 @@
363617363617
"units": 1
363618363618
}
363619363619
},
363620-
"sectors": null,
363620+
"sectors": [
363621+
[134217728, 16384],
363622+
[134283264, 65536],
363623+
[134348800, 131072]
363624+
],
363621363625
"sub_family": "STM32F407",
363622363626
"vendor": "STMicroelectronics:13"
363623363627
},

0 commit comments

Comments
 (0)