Question
Reg:Bootloader
Hello Team,
I am trying to implement a bootloader for stm32f769 controller, My bootloader code resides in sector 0 and application code in sector 5. But I am not able to jump from bootloader code to application code. Any help will be highly useful.
Bootloader code - 0x08000000
Application code - 0x08040000
Below is my Bootloader code :
void goto_application(void)
{
printf("Gonna Jump to Application\n");
void (*app_reset_handler)(void) = (void*)(*((volatile uint32_t*) (0x08040000+4)));
SCB->VTOR = 0x08040000;
__set_MSP(*(volatile uint32_t*) 0x08040000);
/* Jump to application */
app_reset_handler(); //call the app reset handler
}
Thanks,
vamshi kumar
