Jumping from firmware to bootloader

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

Jumping from firmware to bootloader

613 Views
josejavierbarri
Contributor I

Hi guys,

         I am working on a bootloader/firmware swapping algorithm.  I want to jump from firmware to bootloader and viceversa. I have thought to do it with an address jumping in assembler but I do not know the assembler instrucctions, in C is a little complex for me. I am using a MPC5645s microcontroller. 

Could anybody gives me an idea how to do it?

Thank you very much in advance,

Javier

0 Kudos
Reply
2 Replies

500 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

e200z4 instructions you can find in core reference manual:

https://www.nxp.com/docs/en/reference-manual/e200z4RM.pdf 

and VLE manual:

https://www.nxp.com/docs/en/reference-manual/VLEPEM.pdf 

Here is an example of simple jump:

jump_here:

e_bl jump_here

and in debugger:

pastedImage_3.png

jump_here label have address 0xF98A00

peter

0 Kudos
Reply

500 Views
miduo
NXP Employee
NXP Employee

Hello,

It seems that you had put this question in wrong community. Please try to move it to MPC5xxx.Thanks.

0 Kudos
Reply