KEAZ128 MSCAN_Deinit failed

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

KEAZ128 MSCAN_Deinit failed

1,418件の閲覧回数
alai1
Contributor I

Hi,

The mscan module initial by setting CANE bit of register CANCTL1 to 1, after that,  if I try to deinit the mscan with setting CANE to 0,  but fail. I try SDK function or act as datasheet said by setting mscan to initial mode, the two way can't set CANE to 0, I debugging by keil S32DS IDE. The only way that can set CANE bit to 0 is reset mcu. My question is that my operation is wrong or not? How can I set the CANE bit to 0 while it already is 1?    

0 件の賞賛
返信
2 返答(返信)

1,409件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

The CANE bit can only be written once.

CANE write once KEA.pngCANE write once KEA.png

How about disable the clock of CAN module? SIM_SCGC &=~(uint32_t)(SIM_SCGC_MSCAN_MASK); //disable clock 

Can power consumption be reduced?


Best Regards,
Robin

0 件の賞賛
返信

1,390件の閲覧回数
alai1
Contributor I
My point is disable can module then release the TX and RX pin. After that set the RX pin as kbi pin and use the kbi interrupt to wake up the mcu. The point you said disable clock of can module I already try, but the RX pin interrupt can't wake up can module.
0 件の賞賛
返信