CAN driver code example for Kinetis K60

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

CAN driver code example for Kinetis K60

跳至解决方案
7,102 次查看
ekasuwartadi
Contributor II

Hello,

I would like to know if there is any code example for using CAN protocol for Kinetis K60 MCU. I have read the reference manual but it would be much easier to read some code examples.

Thank you.

标签 (1)
标记 (2)
1 解答
3,230 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Eka

Attached is CAN bus loop-back node sample code for your reference. Thanks.

Hope my reply can help you.

Best Regards

Paul

在原帖中查看解决方案

4 回复数
3,230 次查看
sruthyuk
Contributor I

Hello,

Anyone have a sample code for testing two CAN module communication (MK60FX512VLQ12 processor) in KDSK 2.0??

Best regards

sruthy

0 项奖励
回复
3,230 次查看
yarannan
Contributor III

Do you have CAN loop back sample code for KSDK1.1.0 ON KDS?

0 项奖励
回复
3,230 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Eka Suwartadi:

You did not mention which derivative of K60 family you are using.

If you have installed CodeWarrrior for MCU, then you can find some examples for CAN module in the next installation paths, but those are for 100 MHz K60:

- C:\Freescale\CW MCU v10.x\MCU\CodeWarrior_Examples\Kinetis_Examples\k60

- C:\Freescale\CW MCU v10.x\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K60N512

Now, in the next link you can find a zip with a CAN example code provided by our colleague Augusto, in this case for the 120 MHz K60:

K60 120MHz CAN example

Hope this is somewhat useful!

/Jorge Gonzalez

3,231 次查看
Paul_Tian
NXP Employee
NXP Employee

Hi, Eka

Attached is CAN bus loop-back node sample code for your reference. Thanks.

Hope my reply can help you.

Best Regards

Paul