How to jump back from user application to bootloader?

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

How to jump back from user application to bootloader?

1,053 Views
nada_amani123
Contributor I

Hello,

I am currently using can bootloader for MC9S12P

I have succedded in programing the flash but the problem is that I don't know how to jump back to the bootloader 

N.B : I don't have access to any gpio pin in the board i'm using so I can't have a physical input to switch between bootloader and user application

Here's my .prm file : 

pastedImage_1.png

Start12.s :

pastedImage_2.png

Thank's in advance for your help !

Labels (1)
0 Kudos
4 Replies

898 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Nada,

Did you figure it out?

Best Regards,

Diana

0 Kudos

898 Views
kef2
Senior Contributor IV

BootloaderKey @ 0xC00 seems being located in D-flash. So you need to reprogram it to 0x5aa5 and trigger device reset, could be COP watchdog reset.

0 Kudos

898 Views
nada_amani123
Contributor I

Sorry I meant to jump back from user application to bootloader

0 Kudos

898 Views
kef2
Senior Contributor IV

So I understood. Reprogram BootloaderKey @ 0c00 from application to 0x5aa5 and trigger COP reset (enable COP if disabled, then either enter forever loop or write non 0xAA/0x55 value to CPMUARMCOP).

0 Kudos