STM32H753 Hardfault on jumping from Bootloader to application
I am trying to jump from bootloader from application, I tried the methods given here(adapted to jump to application from bootloader) and here.
I am always getting hardfault on executing the setmsp call. The disassembly of the __set_MSP translates to
LDR R3, [R4]
MSR MSP, R3
Where the contents of R4 is 0080 2000, which is the application start address, and contents at address 0x00802000 is 0x24080000 which is the stack pointer value.
The fault bits set on hardfault are PRECISERR at address(BFAR) 0080 2000.
Don't know how to solve this.
