AnsweredAssumed Answered

MPC5777C CAN Rx and TX

Question asked by Vrushali Taklikar on Jul 31, 2017
Latest reply on Aug 2, 2017 by Vrushali Taklikar

Hello,

 

I am working on simple tx and rx function of CAN controller of MPC5777C.

 

I am referring example

Example-MPC5777C-FlexCAN-simpleTXRX-ECCdisabled-GHS616

 

But I dont see interrupt flag getting set and transmit and receive is initiated.

 

While debugging my program hangs at below code line

 

In transmit function

while ( CAN_A.IFLAG1.B.BUF31TO8I == 0) { } // wait until the tx is completed.
CAN_A.IFLAG1.R = 0x00000100;

 

In receive.

if(CAN_B.IFLAG1.B.BUF31TO8I) // test BUF9I flag if set
{
ReceiveMsg();

 

Please suggest what is missing.

 

Thanks

Vrushali

Outcomes