mpc5674f branch to application from bootloader

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

mpc5674f branch to application from bootloader

584件の閲覧回数
roganchoi
Contributor II

Hi, I have a some Q which is about flash resident bootloader.

i wrote jump function in bootloader project

======================================================

asm void SYS_Jump2App(void)

{

    /* Load reset vector address */

  lis        r3,0x0010
  ori   r3,r3,0x0004
  lwz   r3,0(r3)
  /* move address to link register */
  mtlr  r3
  /* branch link register - start the user application */
  blrl

}

=======================================================

when i execute that SYS_Jump2App function after download Application via serial ,  it is not working

I saw PC value , it is 0010_01000 ...

example used SIU register.. but i wanna try another way

タグ(2)
0 件の賞賛
返信
0 返答(返信)