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!
Original Attachment has been moved to: CAN.rar
Solved! Go to Solution.
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
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
Thanks a lot Pedro! It works fine in my board! :smileyhappy:
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