MPC5744P branch instruction problems

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5744P branch instruction problems

ソリューションへジャンプ
1,439件の閲覧回数
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 解決策
1,427件の閲覧回数
VladiKn
Contributor III

Update:

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

元の投稿で解決策を見る

2 返答(返信)
1,428件の閲覧回数
VladiKn
Contributor III

Update:

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

1,436件の閲覧回数
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 件の賞賛
返信