MPC5744P branch instruction problems

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MPC5744P branch instruction problems

跳至解决方案
785 次查看
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!

标记 (3)
0 项奖励
1 解答
773 次查看
VladiKn
Contributor III

Update:

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

在原帖中查看解决方案

2 回复数
774 次查看
VladiKn
Contributor III

Update:

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

782 次查看
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 项奖励