FlexCAN0 sample project for MK22FX512AVLH12

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

FlexCAN0 sample project for MK22FX512AVLH12

Jump to solution
732 Views
srikanth_vemula
Contributor II

Hi,

We're using FlexCAN0 module of MK22FX512AVLH12 Micro-Controller. As it is first time for me to work on CAN, to get familiarized, I've been searching for a sample project, specific to this MCU. But I could not find anything. Please share sample code for FlexCAN0 module, which can transmit & receive 8 Bytes of data in external loop-back mode.

And Please let me know that Is it mandatory to have atleast 2 nodes on the CAN network for transmission?

Quick response is appreciated.

Regards,

Srikanth.

1 Solution
616 Views
miduo
NXP Employee
NXP Employee

Hi,

First I would like to attach a useful training material for Kinetis FlexCAN moduble for your reference.

As for the sample driver, please use the attached sample code, you can find the can_loopback sample from:

 ..\KINETIS512_SC_100MHz\build\iar\can_loopback_node\

View solution in original post

2 Replies
616 Views
mjbcswitzerland
Specialist V

Hi Srikanth

The following https://www.youtube.com/watch?v=Ha8cv_XEvco
is available as open source for K22 in links below.

Regards

Mark

P.S. You need either an active receiver or a loop-back to be able to transmit CAN frames.


Kinetis: http://www.utasker.com/kinetis.html
Kinetis K21/K22/K24:
- http://www.utasker.com/kinetis/TWR-K21D50M.html
- http://www.utasker.com/kinetis/TWR-K21F120M.html
- http://www.utasker.com/kinetis/FRDM-K22F.html
- http://www.utasker.com/kinetis/TWR-K22F120M.html
- http://www.utasker.com/kinetis/BLAZE_K22.html
- http://www.utasker.com/kinetis/tinyK22.html
- http://www.utasker.com/kinetis/TWR-K24F120M.html
CAN: http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

For better, faster, cheaper product developments consider the uTasker developer's version, professional Kinetis support, one-on-one training and complete fast-track project solutions to set you apart from the herd : http://www.utasker.com/support.html

0 Kudos
617 Views
miduo
NXP Employee
NXP Employee

Hi,

First I would like to attach a useful training material for Kinetis FlexCAN moduble for your reference.

As for the sample driver, please use the attached sample code, you can find the can_loopback sample from:

 ..\KINETIS512_SC_100MHz\build\iar\can_loopback_node\