AnsweredAssumed Answered

KW38 flexcan example not working

Question asked by Ravindra Singh on Jul 12, 2020
Latest reply on Jul 16, 2020 by Estephania Martinez

Hi,

 

I am trying to get CAN comms working on KW38 kit. I tries two examples and on both I am facing same issue. 

 

1. flexcan interrupt transfer

2. flexcan loopback transfer

 

In the loopback example it works fine if I leave it as loopback. But if I modify the loopback example to only transmit on the real bus by disabling the loopback flag as flase and only checking txcomplete in the while loop in the end. In this case while(!txcomple){...} never exits as txcomplete flag never becomes true.

 

Same issue is occurring with flexcan interrupt transfer example.

 

I am not sure what I am doing wrong. I have supplied 12V via J32 connector and have connected CAN-K and CAN-L pin to MCP2515 CAN2SPI board and I am trying to read tx data on CAN bus over SPI on arduino board. 

 

There is no issue with arduino setup as When I try to connect with a CAN logger it also does not see anything. Please let me know if there is anything I am missing here.

Outcomes