From a35deac578f719d418570aa0df55c9b91fa7319f Mon Sep 17 00:00:00 2001 From: bcostm Date: Fri, 23 Nov 2018 10:52:13 +0100 Subject: [PATCH] DISCO_F746NG: add bootloader support --- .../TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c | 3 ++- targets/targets.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c index 0d52647f84..db70f0119b 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/TARGET_DISCO_F746NG/system_clock.c @@ -30,6 +30,7 @@ **/ #include "stm32f7xx.h" +#include "nvic_addr.h" #include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in @@ -92,7 +93,7 @@ void SystemInit(void) #ifdef VECT_TAB_SRAM SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #else - SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */ + SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */ #endif } diff --git a/targets/targets.json b/targets/targets.json index 0d1c151c29..a9b834d088 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -3460,6 +3460,7 @@ ], "release_versions": ["2", "5"], "device_name": "STM32F746NG", + "bootloader_supported": true, "overrides": { "network-default-interface-type": "ETHERNET" }