Is there any shutdown procedure before COP reset?

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

Is there any shutdown procedure before COP reset?

641件の閲覧回数
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 返答(返信)

440件の閲覧回数
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 件の賞賛

440件の閲覧回数
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 件の賞賛

440件の閲覧回数
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 件の賞賛