TWR-PXS20 FlexCAN

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

TWR-PXS20 FlexCAN

跳至解决方案
1,643 次查看
jiritakac
Contributor I

Hello,

I'm using MQX 3.8 and I'm trying to understand a configure FlexCAN.

So my problem is when I use parameter "FLEXCAN_MESSAGE_TRANSMIT_ONCE" in function "FLEXCAN_Activate_mailbox".

Which, according to MQXIOUG, should transfare message only once when i use "FLEXCAN_Tx_mailbox" or "FLEXCAN_Tx_message".

But the procesor is transmitting message continuously and stop transmiting only after deactivating the mailbox.

I noticed that in file flexcan_regs.h is this parameter as macro, but it has the same value as "FLEXCAN_MESSAGE_TRANSMIT_REMOTE".

So question is, what I am doing wrong and if you can help with this problem.

Thank Jiri

标记 (4)
0 项奖励
回复
1 解答
1,406 次查看
Martin_
NXP Employee
NXP Employee

Jiri,

is there another node to acknowledge the transmit message ? If not, the FlexCAN hardware follows the CAN bus specification, it tries to send the message again, increments error counter, until it reaches error passive state. Even in error passive state it tries to transmit the message until it is acknowledged, just the error counter does not increment.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,407 次查看
Martin_
NXP Employee
NXP Employee

Jiri,

is there another node to acknowledge the transmit message ? If not, the FlexCAN hardware follows the CAN bus specification, it tries to send the message again, increments error counter, until it reaches error passive state. Even in error passive state it tries to transmit the message until it is acknowledged, just the error counter does not increment.

0 项奖励
回复