I am working on IAP in STM32F4. I received .bin file using uart and flash it in 0x08004000 address successfully and disable irq , set msp , set vector, deinit hal , reset the systick registers but the jump is not working, It just freezes there. Can anyone help me with this?
I solved it. The problem is with the user application. I build the application at correct address but the SCB->VTOR register is overwritten to offset zero from the call of SystemInit() in the application code. So I changed the VECT_OFFSET value in system_stm32f4xx.c file and everything works fine. Anyway, thank you for all the suggested answers.