您好,
官方的SDK中关于CAN总线的例程只有一个“fmstr_can”,看源码应该是搭配FreeMASTER软件使用的,但是我没有这个软件支持的硬件设备。
我需要使用CAN总线的一些功能,在源码中没有找到应该怎么使用。包括CANID的屏蔽,接收中断功能等。
我想要知道应该怎样配置代码才可以实现上面的功能。
解決済! 解決策の投稿を見る。
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.
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.
Hope these help you!
BR
Xu Zhang
您好,XuZhang
我已经解决这个问题了,在开发过程中忽略了已经存在的flexcan的例程。在flexcan中找到了我需要的代码。
感谢