STM32H743ZI - jump issue with custom bootloader
any body have example code for jump to application code for bootloader, or any specific settings need to made.
#define BPC_APPL_START_ADDRESS 0x08080000
U_INT32 JumpAddress = *(__IO U_INT32*)(BPC_APPL_START_ADDRESS+4);
pFunction Jump = (pFunction)JumpAddress;
osThreadSuspendAll();
SysTick->CTRL = 0;
SysTick->LOAD = 0;
SysTick->VAL = 0;
HAL_RCC_DeInit();
__set_MSP(*(__IO U_INT32*)BPC_APPL_START_ADDRESS);
__disable_irq();
SCB->VTOR = BPC_APPL_START_ADDRESS;
Jump();
while(1);
In ASW, linker filer , ASW address is set as 0x08080000
can anybody please share the problem with above code, jump is no working and from dissembler i could see, hard fault handler is serviced.
