FRDM-MK11Z开发板中关于CAN总线的中断问题

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-MK11Z开发板中关于CAN总线的中断问题

ソリューションへジャンプ
69件の閲覧回数
HL_G
Contributor II

您好,

官方的SDK中关于CAN总线的例程只有一个“fmstr_can”,看源码应该是搭配FreeMASTER软件使用的,但是我没有这个软件支持的硬件设备。
我需要使用CAN总线的一些功能,在源码中没有找到应该怎么使用。包括CANID的屏蔽,接收中断功能等。
我想要知道应该怎样配置代码才可以实现上面的功能。

タグ(1)
0 件の賞賛
返信
1 解決策
53件の閲覧回数
HL_G
Contributor II

FRDM-KV11Z 

请问有人知道这个问题应该怎么解决吗?

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
26件の閲覧回数
XuZhang
NXP Employee
NXP Employee

Hello, HL_G

You can refer to the readme.txt in the project to set up a connection between the development board and Freemaster on the PC.

XuZhang_0-1729050827973.png

To receive the interrupt function and CANID operations you can focus on the following code and the contents of the freemaster_can.c source file.

XuZhang_1-1729050970849.png

Hope these help you!

BR

Xu Zhang

 

0 件の賞賛
返信
20件の閲覧回数
HL_G
Contributor II

您好,XuZhang

我已经解决这个问题了,在开发过程中忽略了已经存在的flexcan的例程。在flexcan中找到了我需要的代码。

感谢

0 件の賞賛
返信
54件の閲覧回数
HL_G
Contributor II

FRDM-KV11Z 

请问有人知道这个问题应该怎么解决吗?

0 件の賞賛
返信