S32K1XX Encrypted FlexCAN example sends continuos data

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

S32K1XX Encrypted FlexCAN example sends continuos data

ソリューションへジャンプ
1,684件の閲覧回数
florian_bayer
Contributor II

Hello,

 

I have problems with the startup of the CAN bus on the Evalboard S32K116EVB. To test the FlexCAN I modified the example "FlexCAN Encrypted" so that cyclically every 500 ms a message is sent over the bus. Attached is the modified project.

 

As soon as I send a message the message is repeated several times in an endless loop, although e.g. the controller hangs in a breakpoint, see the following screenshot of the Logic Analyzer.

 

florian_bayer_0-1617268747659.png

Within the example I have also checked via the function "FLEXCAN_DRV_GetErrorStatus" what the status of the driver is. Here among other things the following bits are set:

  • Bit 1 -> Error Interrupt
  • Bit 4 -> Error Passive
  • Bit 8 -> Rx Error Warning
  • Bit 9 -> Tx Error Warning

 

The bus is terminated on both sides with a 120 Ohm resistor. On the side of the EVB the resistor is already embedded on the EVB.

 

I don't know why this occurring, maybe someone can help me on this.

 

Best Regards,

Florian

ラベル(1)
タグ(2)
0 件の賞賛
1 解決策
1,642件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Florian,

Please refer to:

Bosch Controller Area Network (CAN) Version 2.0 PROTOCOL STANDARD

https://www.nxp.com/docs/en/reference-manual/BCANPSV2.pdf

danielmartynek_0-1617789119433.png

 

Regards,

Daniel

 

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
1,659件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @florian_bayer,

Is the message acknowledged by another node on the bus?

 

Thank you,

BR, Daniel

0 件の賞賛
1,646件の閲覧回数
florian_bayer
Contributor II

Hello @danielmartynek 

there is no other node on the bus to acknowledge the message. In my first setup i just wanted to operate it with a standalone message.

 

Best Regards,

Florian

0 件の賞賛
1,643件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Florian,

Please refer to:

Bosch Controller Area Network (CAN) Version 2.0 PROTOCOL STANDARD

https://www.nxp.com/docs/en/reference-manual/BCANPSV2.pdf

danielmartynek_0-1617789119433.png

 

Regards,

Daniel

 

0 件の賞賛
1,593件の閲覧回数
florian_bayer
Contributor II

Hello @danielmartynek ,

 

that was one stupid question from my side. Thank you for your help or your reminder regarding my issue.

Thanks,

Florian

0 件の賞賛