application's HAL_Delay() is not working ,when jumped from bootloader program
The program jumps to the address but stuck in HAL_Delay()
without HAL_Delay() its work perfect
Here is the code...........
static void goto_application(void)
{
printf("Gonna Jump to Application\r\n");
void (*app_reset_handler)(void) = (void*)(*((volatile uint32_t*) (0x08004000 + 4U)));
__set_MSP(*(volatile uint32_t*) 0x08004000);
// Turn OFF the Green Led to tell the user that Bootloader is not running
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_RESET ); //Green LED OFF
app_reset_handler(); //call the app reset handler
}
