mirror of https://github.com/ARMmbed/mbed-os.git
Mbed patch of STM32cube for bootloader: use NVIC_FLASH_VECTOR_ADDRESS
parent
bdb0082bc9
commit
1e351720a7
|
@ -50,6 +50,7 @@
|
|||
|
||||
#include "stm32h7xx.h"
|
||||
#include <math.h>
|
||||
#include "nvic_addr.h" // MBED PATCH for Bootloader
|
||||
|
||||
#if !defined (HSE_VALUE)
|
||||
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
|
||||
|
@ -223,7 +224,7 @@ void SystemInit (void)
|
|||
#ifdef VECT_TAB_SRAM
|
||||
SCB->VTOR = D2_AHBSRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
||||
#else
|
||||
SCB->VTOR = FLASH_BANK2_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */ // MBED PATCH for Bootloader
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
@ -233,7 +234,7 @@ void SystemInit (void)
|
|||
#ifdef VECT_TAB_SRAM
|
||||
SCB->VTOR = D1_AXISRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM */
|
||||
#else
|
||||
SCB->VTOR = FLASH_BANK1_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||
SCB->VTOR = NVIC_FLASH_VECTOR_ADDRESS; /* Vector Table Relocation in Internal FLASH */ // MBED PATCH for Bootloader
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue