S32K1XX Encrypted FlexCAN example sends continuos data

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K1XX Encrypted FlexCAN example sends continuos data

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

Labels (1)
Tags (2)
0 Kudos
1 Solution
65 Views
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

 

View solution in original post

0 Kudos
4 Replies
82 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @florian_bayer,

Is the message acknowledged by another node on the bus?

 

Thank you,

BR, Daniel

0 Kudos
69 Views
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 Kudos
66 Views
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

 

View solution in original post

0 Kudos
16 Views
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 Kudos