Hi Nakul,
About the sample code for MK22FX512VLH12, you can refer to the KSDK tower-K21f120m sample code.
Could you tell me which KSDK version you are using now?
You can download the KSDK2.0, and select the MK22FX512xxx12 in build an KSDK, you will get the SDK_2.0_MK22FX512xxx12, ksdk2.0 link is :
http://kex.freescale.com/en/welcome
After you download the KSDK2.0, you can find the flexcan in folder:SDK_2.0_MK22FX512xxx12\boards\twrk21f120m\driver_examples\flexcan
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------