How to support CAN FD(with BRS bit set) in S32G274ARED2

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

How to support CAN FD(with BRS bit set) in S32G274ARED2

1,511 Views
StanleyShen
Contributor IV

Hi

We are developing using S32G, but we have found that CANFD with BRI bit seems to be unusable. How can I configure it to work properly

BSP Version is 35 and 38

Bring up can0 as blow:

StanleyShen_1-1700042417989.png

 

CANoe setting(BRI is selected):

StanleyShen_0-1700042345760.png

Candump can0 has no output and the number of TXs has not changed at all

StanleyShen_2-1700042739397.png

and the number of interrupts has not changed

StanleyShen_0-1700046971523.png

 

Once BRS is not selected, candump can receive data normally

StanleyShen_3-1700042893540.png

Thank you

Tags (1)
0 Kudos
Reply
5 Replies

1,480 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We might not be understanding the behavior you are seeing. We understand that there is no problem with CAN-FD under BSP35.0. We see the following behavior from our side:

DanielAguirre_1-1700079783590.png

In which we previously enabled can0 and can1 with the following configurations:

DanielAguirre_2-1700079822363.png

We see the following information being sent under the CANBus:

DanielAguirre_0-1700080150153.pngDanielAguirre_1-1700080165784.png

In which it is shown that the BRS bit is equal to 1 and the data bitrate change is also seen.

We may be misunderstanding your setup. If so, we apologize.

Please, let us know.

0 Kudos
Reply

1,468 Views
StanleyShen
Contributor IV

Hi Daniel

Thanks for you replay.

As you said, from S32G to outside, the CAN FD communication with BRS bit is OK

# when we use cansend the 123##1112233 (means CAN FD frame, flags = CANFD_BRS, len = 3)

# the CANoe revice the data correctly as blow

StanleyShen_0-1700099162663.png

But on the other hand, send the CAN FD with BRS bit from CANoe to S32G,

it seems that an error occured.

(at this moment, the CAN data has been send to S32G was confimed by oscilloscope and 

just as the before thread, interrupt was not increase)

StanleyShen_1-1700099298729.png

Could you pls confirm the case that S32G receive CAN FD data with BRS bit set?

Thank you

 

 

0 Kudos
Reply

1,461 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We may be misunderstanding the request, but we have confirmed that we can send and receive CAN FD frames with BRS bit enabled. 

The situations you may be seeing is the can bit timing itself. Since we are using S32G as our transmitter and receiver, the can bit timing remains the same. Since you are using an outside tool, you should either reconfigure the tool to have the same can bit timing as S32G or viceversa.

Please, let us know.

0 Kudos
Reply

1,450 Views
StanleyShen
Contributor IV

Hi Daniel

Thanks for your support

After setting the simple-point of S32G and CANoe to the same value, both parties can communicate with each other.

 

But when using FlexCAN and LLCECAN, I found the following content displayed on the driver layer (not affect functionality yet). Can you tell me why this phenomenon occurs

StanleyShen_0-1700213988149.pngStanleyShen_1-1700213992715.png

 

 

0 Kudos
Reply

1,436 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For the LLCE messages, it is related to the FW being used under LLCE which is a Standard LLCE-FW version. The Standard version does not provide the features are shown under your console.

As for the FlexCAN, which configurations did you apply to them? The ones that start providing those messages. It seems that the channel was configured incorrectly, hence the error.

Please, let us know.

0 Kudos
Reply