S32K146 FLEXCAN RJW config

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

S32K146 FLEXCAN RJW config

381 Views
SaLan
Contributor II

In the S32K146, will the RJW configuration of FLEXCAN have any impact compared to PSEG2?

0 Kudos
Reply
6 Replies

335 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@SaLan

For S32K146 FlexCAN, PSEG2 affects the nominal bit time and sample point, while RJW only limits resynchronization adjustment and is not part of the nominal bitrate calculation.

0 Kudos
Reply

331 Views
SaLan
Contributor II

According to the CAN protocol, SJW ≤ PSEG2 ≤ PSEG1, and SJW ≤ 4 Tq.
If SJW is configured to be greater than PSEG2 in the FLAXCAN register, will this have any impact?

0 Kudos
Reply

313 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@SaLan

When you configure FlexCan using S32 DS, it will explicitly tell you that it is not possible.

0 Kudos
Reply

307 Views
SaLan
Contributor II

SaLan_0-1781746341737.png

As shown in the figure, I set the RJW to 3 and made it larger than PSEG2, but I didn't get any “infeasible” warnings.
If possible, could you tell me what the implications are of configuring the registers this way?

0 Kudos
Reply

298 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@SaLan

This was my mistake; I thought there was an error message indicating an RJW setting error.

Senlent_0-1781751975557.png

      RJW represents the extended time of the PESG1 segment and the shortened time of the PSEG2 segment during resynchronization. The shortening of the PSEG2 segment means that the sampling point will be shifted backward, and if it is too large, it will lead to sampling errors.

 

So CAN Bit Timing Requirements, it says that the re-synchronisation jump width cannot exceed 4 Time Quanta and it also must not exceed the number of Time Quanta in the PHASE_SEG1 segment.

 

0 Kudos
Reply

371 Views
SaLan
Contributor II
Will a higher RJW value than the PSEG2 value have an impact?
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2382219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382219%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20the%20S32K146%2C%20will%20the%20RJW%20configuration%20of%20FLEXCAN%20have%20any%20impact%20compared%20to%20PSEG2%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382817%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ESaLan%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThis%20was%20my%20mistake%3B%20I%20thought%20there%20was%20an%20error%20message%20indicating%20an%20RJW%20setting%20error.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1781751975557.png%22%20style%3D%22width%3A%20601px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1781751975557.png%22%20style%3D%22width%3A%20601px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389330iDF91E8C0D1E9A5EE%2Fimage-dimensions%2F601x315%3Fv%3Dv2%22%20width%3D%22601%22%20height%3D%22315%22%20role%3D%22button%22%20title%3D%22Senlent_0-1781751975557.png%22%20alt%3D%22Senlent_0-1781751975557.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20RJW%20represents%20the%20extended%20time%20of%20the%20PESG1%20segment%20and%20the%20shortened%20time%20of%20the%20PSEG2%20segment%20during%20resynchronization.%20The%20shortening%20of%20the%20PSEG2%20segment%20means%20that%20the%20%3CSTRONG%3Esampling%20point%3C%2FSTRONG%3E%20will%20be%20shifted%20backward%2C%20and%20if%20it%20is%20too%20large%2C%20it%20will%20lead%20to%20sampling%20errors.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ESo%20CAN%20Bit%20Timing%20Requirements%2C%20it%20says%20that%20the%20re-synchronisation%20jump%20width%20cannot%20exceed%204%20Time%20Quanta%20and%20it%20also%20must%20not%20exceed%20the%20number%20of%20Time%20Quanta%20in%20the%20PHASE_SEG1%20segment.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382787%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SaLan_0-1781746341737.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SaLan_0-1781746341737.png%22%20style%3D%22width%3A%20371px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389323i11A9E7ACBD75D289%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22SaLan_0-1781746341737.png%22%20alt%3D%22SaLan_0-1781746341737.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20shown%20in%20the%20figure%2C%20I%20set%20the%20RJW%20to%203%20and%20made%20it%20larger%20than%20PSEG2%2C%20but%20I%20didn't%20get%20any%20%E2%80%9Cinfeasible%E2%80%9D%20warnings.%3CBR%20%2F%3EIf%20possible%2C%20could%20you%20tell%20me%20what%20the%20implications%20are%20of%20configuring%20the%20registers%20this%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ESaLan%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhen%20you%20configure%20FlexCan%20using%20S32%20DS%2C%20it%20will%20explicitly%20tell%20you%20that%20it%20is%20not%20possible.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAccording%20to%20the%20CAN%20protocol%2C%20SJW%20%E2%89%A4%20PSEG2%20%E2%89%A4%20PSEG1%2C%20and%20SJW%20%E2%89%A4%204%20Tq.%3CBR%20%2F%3EIf%20SJW%20is%20configured%20to%20be%20greater%20than%20PSEG2%20in%20the%20FLAXCAN%20register%2C%20will%20this%20have%20any%20impact%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3ESaLan%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%20S32K146%20FlexCAN%2C%20PSEG2%20affects%20the%20nominal%20bit%20time%20and%20sample%20point%2C%20while%20RJW%20only%20limits%20resynchronization%20adjustment%20and%20is%20not%20part%20of%20the%20nominal%20bitrate%20calculation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382226%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K146%20FLEXCAN%20RJW%20config%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382226%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWill%20a%20higher%20RJW%20value%20than%20the%20PSEG2%20value%20have%20an%20impact%3F%3C%2FLINGO-BODY%3E