Kinetis Can frame retransmission

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis Can frame retransmission

ソリューションへジャンプ
1,238件の閲覧回数
bataliero
Contributor III

Hi , I am trying to use FlexCan on K60 with PLL 96MHz ( cristal 8MHz). When I set up bitrate from Processor Expert to 20kbps and standard parameters (Propagation segment:0, seg1 : 7, seg 2: 3, RSJ: 1, One Sample) everything is ok. After changing value of bit rate to 250kbps or 500kbps Can frame is retransmitted 3 and 5 times ( I dont change anything in code just parameters in Processor Expert ) to external device .

0 件の賞賛
返信
1 解決策
991件の閲覧回数
Petr_H
NXP Employee
NXP Employee

Hello,

There might be a problem with CAN settings - please see check properties Segment, segment1,2. These settings are sensitive especially for high CAN bitrates. These settings should be set according to capacitance of the CAN bus. The repeated transmissions may occur because MK60 doesn't get acknowledge from the counterpart device, so the FlexCAN repeats sending frame while invoking the OnError event. Please try to enable OnError event and put there an error handling code. You can use there the GetError() method that returns a type of the error (e.g. ACK error).

best regards

Petr Hradsky

Processor Expert Support Team

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
992件の閲覧回数
Petr_H
NXP Employee
NXP Employee

Hello,

There might be a problem with CAN settings - please see check properties Segment, segment1,2. These settings are sensitive especially for high CAN bitrates. These settings should be set according to capacitance of the CAN bus. The repeated transmissions may occur because MK60 doesn't get acknowledge from the counterpart device, so the FlexCAN repeats sending frame while invoking the OnError event. Please try to enable OnError event and put there an error handling code. You can use there the GetError() method that returns a type of the error (e.g. ACK error).

best regards

Petr Hradsky

Processor Expert Support Team

0 件の賞賛
返信