Skip to content

Commit 5cc0623

Browse files
author
Juho Eskeli
committed
Enable bootloader for NUCLEO_F207ZG
1 parent 22137b4 commit 5cc0623

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/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 "stm32f2xx.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
@@ -88,7 +89,7 @@ void SystemInit(void)
8889
#ifdef VECT_TAB_SRAM
8990
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
9091
#else
91-
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
92+
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */
9293
#endif
9394

9495
}

targets/targets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@
979979
"device_has_remove": ["LPTICKER"],
980980
"release_versions": ["2", "5"],
981981
"device_name": "STM32F207ZG",
982+
"bootloader_supported": true,
982983
"overrides": {
983984
"network-default-interface-type": "ETHERNET"
984985
}
@@ -4461,7 +4462,7 @@
44614462
"mbed_rom_start": "0x10040000",
44624463
"mbed_rom_size": "0x40000",
44634464
"mbed_ram_start": "0x30008000",
4464-
"mbed_ram_size": "0x10000",
4465+
"mbed_ram_size": "0x10000",
44654466
"inherits": ["Target"],
44664467
"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"],
44674468
"detect_code": ["1305"],

0 commit comments

Comments
 (0)