how to app jump to bootloader in the MPC5604?

cancel
Showing results for 
Search instead for 
Did you mean: 

how to app jump to bootloader in the MPC5604?

411 Views
ananan
Contributor III

bootloader jump to app is sucessed,but I need the APP program jump to the bootloader program ,the jump is error!and how to close the external interrupts?

pastedImage_1.png

pastedImage_2.png

pastedImage_1.png

Labels (1)
0 Kudos
3 Replies

332 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

1. MSR[EE] must be cleared. Yes, wrteei 0 is correct.

2. Priority register INTC_PSRn needs to be cleared.

3. Local interrupt enable bit in a peripheral needs to be disabled.

4. Corresponding interrupt flag should be cleared if it is set.

Points 2, 3  and 4 should be done for all interrupts.

It's also good practice to put everything back to default state before jump.

Regards,

Lukas

0 Kudos

332 Views
ananan
Contributor III

First of all, thank you very much for giving me the answer, but I do not quite understand a few points, please help me explain again,

1, MSR[EE] in which register, data manual did not find;

2. How much INTC_PSR register should be assigned and how to clear it

Thank you very much!

0 Kudos

332 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

1. This can be found in core reference manual:

https://www.nxp.com/webapp/Download?colCode=E200Z0RM&location=null 

2. It's like:

INTC.PSR[n].B.PRI = 0x00;

... where 'n' is IRQ number. It can be found in Table 16-10 in the reference manual.

Regards,

Lukas