AnsweredAssumed Answered

How to update application in bootloader many times ?

Question asked by khaoula baala on Mar 27, 2019
Latest reply on Apr 1, 2019 by Diana Batrlova

I want to develop a CAN bootloader for MC9S12P
I can program and erase the P flash memory, but when i want to reprogram another application after executing the first one, the bootloader doesn't work as expected.

Here's my Start12.s :


I reprogram BootloaderKey @ 011300 in the application to 0x5aa5 and it works succesfully as shown in the picture

But when i execute application using the bootloader, the BootloaderKey doesn't change. So i cant jump back.


 .prm bootloader file : 

 .prm application file : 

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.

Thank's in advance for your help !