S32DS example Project S32K144_CAN_MASTER_Example can‘t work

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

S32DS example Project S32K144_CAN_MASTER_Example can‘t work

2,094件の閲覧回数
aliaszhang
Contributor I

I use FRDM-s32k144 board to  test flexcan. I deleted the code about sbc because the board uses tja1050 instead of sbc. When I ran this  project, it was jammed at  "while(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, RX_MAILBOX) == STATUS_BUSY);" and TXERRCNT of ECR is 0x80, I get a "Error Passive" state.

I checked the clocks and gpio,but found nothing wrong.

thanks!

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

1,803件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

If the transceiver is not connected to the bus with other nodes, this behavior is normal.

The FlexCAN is sending a message, but it is not ACKed from other node(s), the MB flag is not set,  message is transmitted again and again and FlexCAN module stays in Error passive state with ECR=0x80.

 

You need to connect other board with CAN_SLAVE_example to make this running.


You can also enable “Loopback” mode in the Component inspector and test TX/RX operation on single board.

BR, Petr

1,803件の閲覧回数
aliaszhang
Contributor I

HI,Petr

Thanks for your reply!

In fact, I connected two board together to achive this function. One work as a "master",and another work as "slave".

Both boards use the can0, and  the connection is GND to GND, CL0 to CL0, CH0 to CH0.

Now I am trying to make sure that the chip Tja1050 is working .

Best Regards!

xiong

0 件の賞賛
返信