File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_DISCO_H747I Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 50
50
51
51
#include "stm32h7xx.h"
52
52
#include <math.h>
53
+ #include "nvic_addr.h" // MBED PATCH for Bootloader
53
54
54
55
#if !defined (HSE_VALUE )
55
56
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
@@ -223,7 +224,7 @@ void SystemInit (void)
223
224
#ifdef VECT_TAB_SRAM
224
225
SCB -> VTOR = D2_AHBSRAM_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal SRAM */
225
226
#else
226
- SCB -> VTOR = FLASH_BANK2_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
227
+ SCB -> VTOR = NVIC_FLASH_VECTOR_ADDRESS ; /* Vector Table Relocation in Internal FLASH */ // MBED PATCH for Bootloader
227
228
#endif
228
229
229
230
#else
@@ -233,7 +234,7 @@ void SystemInit (void)
233
234
#ifdef VECT_TAB_SRAM
234
235
SCB -> VTOR = D1_AXISRAM_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal D1 AXI-RAM */
235
236
#else
236
- SCB -> VTOR = FLASH_BANK1_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
237
+ SCB -> VTOR = NVIC_FLASH_VECTOR_ADDRESS ; /* Vector Table Relocation in Internal FLASH */ // MBED PATCH for Bootloader
237
238
#endif
238
239
239
240
#else
You can’t perform that action at this time.
0 commit comments