diff --git a/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/system_clock.c index f201095cc3..89f7ab58c6 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/system_clock.c @@ -30,6 +30,7 @@ **/ #include "stm32f2xx.h" +#include "nvic_addr.h" #include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in @@ -88,7 +89,7 @@ void SystemInit(void) #ifdef VECT_TAB_SRAM SCB->VTOR = SRAM_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 33a12b5775..fdca725885 100755 --- a/targets/targets.json +++ b/targets/targets.json @@ -979,6 +979,7 @@ "device_has_remove": ["LPTICKER"], "release_versions": ["2", "5"], "device_name": "STM32F207ZG", + "bootloader_supported": true, "overrides": { "network-default-interface-type": "ETHERNET" } @@ -4461,7 +4462,7 @@ "mbed_rom_start": "0x10040000", "mbed_rom_size": "0x40000", "mbed_ram_start": "0x30008000", - "mbed_ram_size": "0x10000", + "mbed_ram_size": "0x10000", "inherits": ["Target"], "device_has": ["USTICKER", "LPTICKER", "RTC", "ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "TRNG", "FLASH"], "detect_code": ["1305"],