mpc5674f branch to application from bootloader

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

mpc5674f branch to application from bootloader

845 次查看
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 回复数