Issue with Bootloader Jump to Application on STM32F072RBT6 – Stalling at HAL_Delay()
I am currently working on the STM32F072RBT6 microcontroller and have developed a bootloader that successfully jumps to a specified location. The bootloader is located at address 0x08000000, and the main application is at 0x08006000.
The bootloader is able to jump to the main application, but when the main application starts, it stops at the very first HAL_Delay() statement.
Could you please help me troubleshoot this issue and suggest any possible solutions? Any assistance would be greatly appreciated.
Thanks in advance!
below the mention function for jump bootloader to application code:
static void goto_application(void){
void (*app_reset_handler)(void ) = (void (*) (void))(*(volatile uint32_t *)(0x08006000 + 4));
__disable_irq();
__set_MSP((*(volatile uint32_t *)0x08006000));
__enable_irq();
app_reset_handler();
}
