mpc5674f branch to application from bootloader

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

mpc5674f branch to application from bootloader

495 Views
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

0 Kudos
0 Replies