Hello,
I am writing a bootloader that will jump to an application after it's finished performing certain checks. I wrote a small assembly routine that jumps to the reset vector of the application.
When I step debug the the assembly routine I see that the program jumps to the application startup code and starts executing normally. The whole startup routine is executed but when it is time to jump to the main the program blocks completely. I have checked the address for the jump and the main function is in the correct position. I have no idea what could be the issue.
Can anyone help with this?
Cheers!
Solved! Go to Solution.
Update:
I have realized that I haven't cleared all the interrupts before the jump and that solved the problem!
Update:
I have realized that I haven't cleared all the interrupts before the jump and that solved the problem!
Additional info:
If after the jump to main I stop the execution in the debugger, I see that the program is currently in the IVOR1 vector.