英飞凌tc234的can1模块无法进入接受中断

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
15713622535
Level 1
Level 1
First question asked Welcome!

当我使用can模块的时候,数据收发都没有问题。但是当我使用can1模块时,发送没有问题,但是无法进入到接收中断。

我用示波器测量can收发器的RXD引脚时,发现也是有波形存在的,当我在主函数添加一个接收函数,发现程序也是可以进行数据的接收的,这就说明数据确实传输了过来,只是不能中断接收。

 

 

非常期待大佬回复,万分感谢!

0 点赞
1 解答
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Here is a demo for TC234 that can be modified to meet your needs: https://community.infineon.com/t5/AURIX/Not-able-to-read-receiving-CAN-message-in-MultiCANBasic-Demo....

To use CAN1 in TC234, I made modifications in two parts:

  1. For CAN1 in TC234, IFXMULTICAN_NUM_SRC should be limited. I set it to 3, and I modified the function IfxMultican_Can_initModule().

  2. Another function is IfxMultican_getSrcPointer. I modified this function to support CAN1[0] instead of CAN[0].

在原帖中查看解决方案

0 点赞
1 回复
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Here is a demo for TC234 that can be modified to meet your needs: https://community.infineon.com/t5/AURIX/Not-able-to-read-receiving-CAN-message-in-MultiCANBasic-Demo....

To use CAN1 in TC234, I made modifications in two parts:

  1. For CAN1 in TC234, IFXMULTICAN_NUM_SRC should be limited. I set it to 3, and I modified the function IfxMultican_Can_initModule().

  2. Another function is IfxMultican_getSrcPointer. I modified this function to support CAN1[0] instead of CAN[0].

0 点赞