Boot on QSPI => VTOR change in BOOT or APP firmware ?
Hi,
Can someone clarify why some examples of boot to QSPI change the SCB->VTOR register in JumpApp function :
SCB->VTOR = (uint32_t)Application_vector;
JumpToApp = (pFunction) (*(__IO uint32_t *)(Application_vector + 4u));
__set_MSP(*(__IO uint32_t*) Application_vector);
And some examples change the SCB->VTOR register in void SystemInit(void) function:
SCB->VTOR = 0x90000000;
I think both works but is there a best way and can someone explain the advantage and the inconvenient to update VTOR register in BOOT project or APP project.
