Skip to content

Commit a35deac

Browse files
committed
DISCO_F746NG: add bootloader support
1 parent 7995e8b commit a35deac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c

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

3232
#include "stm32f7xx.h"
33+
#include "nvic_addr.h"
3334
#include "mbed_error.h"
3435

3536
/*!< Uncomment the following line if you need to relocate your vector Table in
@@ -92,7 +93,7 @@ void SystemInit(void)
9293
#ifdef VECT_TAB_SRAM
9394
SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
9495
#else
95-
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
96+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
9697
#endif
9798

9899
}

targets/targets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,6 +3460,7 @@
34603460
],
34613461
"release_versions": ["2", "5"],
34623462
"device_name": "STM32F746NG",
3463+
"bootloader_supported": true,
34633464
"overrides": {
34643465
"network-default-interface-type": "ETHERNET"
34653466
}

0 commit comments

Comments
 (0)