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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

510 次查看
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!

标签 (1)
0 项奖励
回复
1 回复

403 次查看
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 项奖励
回复