CAN communication between two MKE06Z boards.

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

CAN communication between two MKE06Z boards.

1,456 Views
mona
Contributor I

Hi,

I am new to CAN communications. I have two MKE06Z boards with me. One is Evaluation board and one is custom board.

I have connected the CAN_H and CAN_L pins of the evaluation board to CAN_H and CAN_L of the custom board.

I am planning to make an LED to blink on custom board when I press a button onevaluation board.

On evaluation board I have created a project on KDS. In this project I have added CAN_LDD component. In the typical usage I see a program Sending data frame with interrupt service. I have just copied that code.

Similarly on the custom board side I have created another project and in that project also I have added CAN_LDD component and here I copied the code Receiving data frame with interrupt service.

I flash the both codes to their respective boards. I never see LED blinking on my custom board when I press a button on evaluation board. The interrupts never occured in both projects.

Am I doing it on right way?. 

Pls someone suggest the correct way?. I am not able to find where Im doing mistake. 

0 Kudos
Reply
1 Reply

1,346 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Module MSCAN on KE06 y Processor Expert Driver Here you can find the receive example that I have tested before. You can download it and test it on your FRDM-KE06Z board.

Do you have USB-CAN analyzer? It will help you can find out whether problem is caused by send or receive board more faster.

Please check the baud rate of two board, make sure that the baud rate are same.(observe the baud rate by using oscilloscope, measure the minimum bit width)

It's better to use the external crystal as MSCAN clock source.(It's much more accurate than IRC.)

Remember power on receive board first then power on the send board.
You can debug the receive board instead of using LED. This can avoid LED related errors.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply