IAP does not jump to the desired address.
Hi, I am using STM32H753VI on my own board. I was trying to programme the chip using SDCard through IAP. the program works perfectly till it erase bank1(from 0x08020000 to end of sector7 of bank1) and whole bank2.
then copies the bin file to flash. even checks for the error and gives 0 errors.
then in the jump to main section,
/* execute the new program */
JumpAddress = *(__IO uint32_t*) (FLASH_USER_START_ADDR + 4);
/* Jump to user application */
JumpToApplication = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32_t*) FLASH_USER_START_ADDR);
JumpToApplication();
where FLASH_USER_START_ADDR = 0x08020000.
but in the debug window, the value of JumpAddress shows as 0x080202AD.
and on executing JumpToApplication(); command, the device hangs. nothing happens.
can somebody help me?
