bootloader jump to App

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

bootloader jump to App

Jump to solution
1,514 Views
pyi285
Contributor II

Is there a way to go from the bootloader to the application? I posted it the other day, but I couldn't solve it properly, so is there someone who can explain the detailed code or how to do it? Is there anyone who can explain in detail because I didn't understand the datasheet related to the bootloader (MPC5674M chip) last time?

 

PS : 

__asm__("e_lis %r12,0x000100");
__asm__("e_or2i %r12,0x000100 "); //JUMP_ADDRESS
__asm__("mtlr r0");
__asm__("se_blrl"); 
can i do it with the code above
The internal flash address that stores the current APP starts at 0x00010000 and ends at 0x00013100.

#MPC5674F #Jump # Application #Bootloader

0 Kudos
Reply
1 Solution
1,494 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, what you show cannot work because you are loading address to register r12, but to link register you are loading content of r0.

View solution in original post

0 Kudos
Reply
1 Reply
1,495 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, what you show cannot work because you are loading address to register r12, but to link register you are loading content of r0.

0 Kudos
Reply