Kinetis K60 CAN Configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Kinetis K60 CAN Configuration

跳至解决方案
1,684 次查看
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

标签 (1)
标记 (3)
0 项奖励
1 解答
901 次查看
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 项奖励
3 回复数
902 次查看
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 项奖励
901 次查看
agungdeffendi
Contributor I

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

0 项奖励
901 次查看
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 项奖励