Question
jump to another app explanation
I have this code:
void bootloader_jump_to_app(void){
pFunction Jump;
uint32_t JumpAddress;
HAL_RCC_DeInit();
HAL_DeInit();
JumpAddress = *(__IO uint32_t*)(APP_ADDRESS + 4);
Jump = (pFunction)JumpAddress;
__set_MSP(*(__IO uint32_t*)APP_ADDRESS);
Jump();
SCB->VTOR = FLASH_BASE | 0x00008000;
}For me, does not make sense the last line as in theory this is not called after jump application, however, commenting this line make a hard fault handler after jump function execution.
