Kinetis K60 CAN Configuration

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

Kinetis K60 CAN Configuration

Jump to solution
1,939 Views
agungdeffendi
Contributor I

Hi everyone,

I started working on the TWR-K60D100M system using an CodeWarrior environment.

I'm trying to run CAN example project for Kinetis K60D100M provided by processor expert. But when I'm trying to run the demo, the receive part still not working. Is there any hardware configuration I should made?

Thanks everyone!

11196_11196.pngCapture.PNG.png

Original Attachment has been moved to: CAN.rar

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,156 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Agung,

The example that you can find in the Processor Expert folder is compiled for the K60DN512ZVMD10 which is part of the Revision 1.x and the K60D100M that you are using is a Revision 2.x. There are some differences between this revisions which are listed in this Application Note (AN4445). (http://cache.freescale.com/files/32bit/doc/app_note/AN4445.pdf)


In order to make this example work you have to change the CPU component for the K60DN512VMD10. In the attachments you can find the example CAN with this component changed. Also I changed the UART module in the console for the UART5 in order to set the TX and RX signals through the OSJTAG connection.


I hope this information can help.


Regards

View solution in original post

0 Kudos
Reply
3 Replies
1,157 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Agung,

The example that you can find in the Processor Expert folder is compiled for the K60DN512ZVMD10 which is part of the Revision 1.x and the K60D100M that you are using is a Revision 2.x. There are some differences between this revisions which are listed in this Application Note (AN4445). (http://cache.freescale.com/files/32bit/doc/app_note/AN4445.pdf)


In order to make this example work you have to change the CPU component for the K60DN512VMD10. In the attachments you can find the example CAN with this component changed. Also I changed the UART module in the console for the UART5 in order to set the TX and RX signals through the OSJTAG connection.


I hope this information can help.


Regards

0 Kudos
Reply
1,156 Views
agungdeffendi
Contributor I

Thanks a lot Pedro!  It works fine in my board! :smileyhappy:

0 Kudos
Reply
1,156 Views
mjbcswitzerland
Specialist V

Hi

Check that you have correct CAN bus termination. Depending on exactly what the reception test is doing you may need an active node on the CAN bus.

Compare with the FlexCAN support in the uTasker project:

- http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF
See the corresponding video at https://www.youtube.com/watch?v=Ha8cv_XEvco

Or try the complete code from the link in uTasker V1.4.4 for Kinetis K / KL

Regards

Mark

0 Kudos
Reply