MPC5744P branch instruction problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5744P branch instruction problems

Jump to solution
754 Views
VladiKn
Contributor III

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!

0 Kudos
1 Solution
742 Views
VladiKn
Contributor III

Update:

I have realized that I haven't cleared all the interrupts before the jump and that solved the problem!

View solution in original post

2 Replies
743 Views
VladiKn
Contributor III

Update:

I have realized that I haven't cleared all the interrupts before the jump and that solved the problem!

751 Views
VladiKn
Contributor III

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.

0 Kudos