How to update application in bootloader many times ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to update application in bootloader many times ?

677件の閲覧回数
khaoula_baala
Contributor I

Hello,
 
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 :

541729634265.png

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

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

82FA80D8.PNG

 .prm bootloader file : 

150614A6.PNG

 .prm application file : 

81BF306F.PNG

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 !

0 件の賞賛
返信
1 返信

570件の閲覧回数
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

I would like to apologize for the delay.

Unfortunately, I do not know where did you get the @ 011300 because the address of the D-flash is in the range below.

The Local address of D-Flash:
 0x0400 ~ 0x13FF
Global address of D-Flash:
0x4400 ~ 0x53FF

So, you should reprogram either local address 0x0C00 or global address 0x4C00

Please, refer to the attached memory map of the S12P MCU.

Also, the attached example shows how to program D-Flash.

Best Regards,

Diana

0 件の賞賛
返信