Bootloader jump to application,some of application‘s function error

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

Bootloader jump to application,some of application‘s function error

377 Views
zonglinyao
Contributor I

Hi everyone,please forgive me for my poor English.

In MC9S08DZ60, I wrote a bootloader in case to upgrade my application, now I met a problem. In my bootloader, if no upgrade signal received from CAN-BUS, then jump to application. When jumpped to application, some functions could not execute, e.g. I send  commands via CAN-BUS to application, some commands have right response, but others no.

I don't understand why?  If only program application into flash, it running normally. 

Could anybody help me?

Best Regards!

Labels (1)
0 Kudos
1 Reply

270 Views
zonglinyao
Contributor I

I found the reason, in bootloader and application use different communication protocols, in application, the CAN reinitialization doesnt work, so I set the CANCTL0 = 0x01,then jump to application, it works as expected.

0 Kudos