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)
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.
@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!
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.
I could see both the SWTs are disabled. but getting this excpetion.
Below are the register value on hitting SWT1 exception.
Help is much appreciated!