NXP5775E-EVB CAN Not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP5775E-EVB CAN Not working

486 Views
latheef
Contributor III

Hi,

I am trying to make CAN work on the NXP5775E-EVB eval kit but it wont work. I used the SBC example for the MPC5777C and it worked. Enabled the can transceiver FS65 successfully using the code 

status = FS65_CAN_SetMode(fs65CanModeNormal,false);

Then configured the flexCANC as below (it is the one connected on the NXP eval kit to SBC)

latheef_0-1665670159149.png

Init is done as below

FLEXCAN_DRV_Init(INST_CANCOM2, &canCom2_State, &canCom2_InitConfig0);

After the can transceiver enabling , I send the msg as below

SendCANData(1u, 1u, &ledRequested, 1UL);

But I dont get the message interrupt and get below error goinf in to passive error. Please help.

 

latheef_1-1665670341025.png

 

 

Tags (5)
0 Kudos
2 Replies

480 Views
latheef
Contributor III

 @paulvlase Could you please help me with this? I have seen in another thread you are the one who helped to fix the can related issue.

Thanks!

0 Kudos

473 Views
latheef
Contributor III

All,

It was a connection issue now the send works, but reception has got a weird SWT1 exception.

Sending is now done every 384ms and Reception code is as below:

/* Configure RX message buffer with index RX_MSG_ID and RX_MAILBOX */
FLEXCAN_DRV_ConfigRxMb(INST_CANCOM2, RX_MAILBOX, &dataInfo, RX_MSG_ID);

FLEXCAN_DRV_Receive(INST_CANCOM2, RX_MAILBOX, &recvBuff);

On receiving the msg the LED is toggled. I could toggle for few times but then I get the SWT1 exception.

latheef_0-1665764275575.png

latheef_1-1665764288682.png

 

I could see both the SWTs are disabled. but getting this excpetion. 

latheef_2-1665764317847.png

Below are the register value on hitting SWT1 exception. 

latheef_3-1665764415465.png

Help is much appreciated!

 

Tags (1)
0 Kudos