TWR-PXS20 FlexCAN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-PXS20 FlexCAN

Jump to solution
864 Views
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

Tags (4)
0 Kudos
Reply
1 Solution
627 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
628 Views
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 Kudos
Reply