Is there any shutdown procedure before COP reset?

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

Is there any shutdown procedure before COP reset?

1,356 次查看
lx
Contributor I

HI,

 

I am using S12DJ128. When COP reset, PCAN View captured a number of Stuff Erroe, Rx, and other Rx error while power reset did not. Is there any shutdown procedure for CAN module I shall do before COP reset?

 

Thanks

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

1,155 次查看
kef
Specialist I

Do you trigger COP reset intentionally or is it some undesired unpexpected event? If 2nd, then you can only fix you FW, so that COP doesn't happen. When COP times out, it is too late to shut down MSCAN. Not only CPU, but also all peripherals including MSCAN are reset, so any ongoing transmission from your MCU may be abrupt cancelled in the middle of message, leading to some CAN errors.

You should make sure MCU CAN pins are pulled up and not floating when reset occurs.

0 项奖励
回复

1,155 次查看
lx
Contributor I

We trigger COP reset intentionally.

 

How to make sure MCU CAN pins are pulled up and not floating when reset occurs?

 

Thanks

0 项奖励
回复

1,155 次查看
kef
Specialist I

You could use oscilloscope.

Add pull up resistors.

I'm not sure, but maybe there's CAN transceiver on market with built in pull up devices on input pins?

What port pins is MSCAN routed to in your application? Port J has pull ups enabled out of reset, but not port M...

0 项奖励
回复