//SBL.c //Define my Application Address #define APPLICATION_ADDRESS 0x00008020 typedef void(*pFunction)(void); pFunction appEntry; uint32_t appStack; //Disabling interrupts, before changing interrupt vectors __disable_irq(); //Get the application stack pointer appStack=(uint32_t)*((__IO uint32_t*)APPLICATION_ADDRESS); //Get the application entry point appEntry=(pFunction)(__IO uint32_t*)(APPLICATION_ADDRESS+4); // Set vector table offset SCB->VTOR = APPLICATION_ADDRESS; //Enable interrupts before jumping to application __enable_irq(); //Set application stack pointer __set_MSP(appStack); appEntry();