将TC234L官方提供的CAN demo的loopback模式改为使用外部引脚后无法传输

公告

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

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

cross mob
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

将TC234L官方提供的CAN demo的loopback模式改为使用外部引脚后无法传输,将其配置为pinmap中的引脚后,无法进入发送中断,使用的引脚如下,且相应引脚也接了CAN收发器,请问该如何解决呀?

(CAN模块的供电测试了是正常的,在debug状态下程序运行时,发送引脚只有mv的电压,接收引脚有2.6V左右电压)

xuxu_0-1679018613139.pngxuxu_1-1679018624663.pngxuxu_2-1679018669804.png

xuxu_3-1679018694942.png

 

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

Attached is for your reference for pin settings of MCMCAN if you changed loopback mode.

0 点赞
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

这和我配置引脚的方式一样,只是我配置RXMODE为IfxPort_InputMode_pullUp,但是我更改为和您一样的IfxPort_InputMode_noPullDevice后,仍然进不了CAN发送中断

0 点赞
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

这和我配置引脚的方式一样,只是我配置RXMODE为IfxPort_InputMode_pullUp,但是我更改为和您一样的IfxPort_InputMode_noPullDevice后,仍然进不了CAN发送中断

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

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/MULTICAN_1_KIT_TC297_TFT

Please start from above code and change the loopback mode as above pdf. 

0 点赞
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

您好,我按照您说的将上面例程的MULTICAN外设模块移植到了TC234L配置的工程中,并按照pdf中的引脚配置去配置了引脚。仍然只能在loopback模式正常收发,一旦loop为FALSE了,就无法进入中断了。您方便帮我浏览一下我的工程引脚配置了,感谢您!

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

Hi

First start from original demo,  then only change 1 node (RX and TX) settings to try.

Step by step.

0 点赞
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

hi,按照你所说的,我首先只修改了CAN0 node 0的TX和RX配置,但是node 0仍然无法进入发送中断。不知道接下来该按照什么步骤去进行了😭

0 点赞
xuxu
Level 3
Level 3
25 sign-ins 25 replies posted 5 questions asked

hi @Di_W ,我依次测试了CAN0 的node0和node1的发送模式,二者都无法进入发送中断,但是我测试了二者的引脚电压情况:

node1

如果只发送一次的话,CANH:3.78-2.28V,CANHL:2.36V-160mv

xuxu_0-1679457494110.jpegxuxu_1-1679457510513.jpeg

 

 

未配置引脚时, CANH:2.85左右,CANHL :2.85V左右

node0

未配置引脚时: CANH:300mv左右,CANHL:300mv左右

如果只发送一次的话:CANH:50mv左右,CANHL:50mv左右

0 点赞