S32K118 Q048 LIN Stack

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

S32K118 Q048 LIN Stack

Jump to solution
775 Views
yousefdessouki123
Contributor II

Hello,

I am using the NXP LIN stack version 2.0.0 on an S32K118 Q048 EVB (RTD version 3.0.0) configured as a slave node. The LIN slave on the bus transmits an 18 + 2 bit break field (20 bit-times total), and a PicoScope measurement confirms 18 dominant bits before the delimiter. The NXP has been configured as a LIN master to communicate with this slave. However, the S32K118’s built-in LIN hardware only recognizes the default minimum break length of 10 or 13 bits and fails to synchronize to the longer break. Is there any way to get this implemeneted on the EVB? 

regards,

 

0 Kudos
Reply
1 Solution
733 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @yousefdessouki123,

Thank you for the clarification.

I’ve just responded to your second thread regarding this issue:

 S32K118Q048 EVB as a LIN master

Unfortunately, the current LIN driver does not support configurable break lengths. The break field is fixed at 13 bits, and the LPUART module on the S32K118 does not provide a way to generate longer break characters.

 

Regards,

Daniel

 

 

View solution in original post

0 Kudos
Reply
3 Replies
758 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @yousefdessouki123,

I'm a bit confused by your description — why is the slave node sending a break? Only the master is responsible for transmitting the break field.

 

BR, Daniel

0 Kudos
Reply
756 Views
yousefdessouki123
Contributor II

Hi @danielmartynek ,
I am sorry for the confusion. I meant that when the slave was connected to CANoe, the break generated by the CANoe to the slave was 940 us. The CANoe was configured as the master. The CANoe based master uses 18 biit break. Is t possible to make the NXP EVB work with 18 break bit, like in CANoe? 

regards,

0 Kudos
Reply
734 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @yousefdessouki123,

Thank you for the clarification.

I’ve just responded to your second thread regarding this issue:

 S32K118Q048 EVB as a LIN master

Unfortunately, the current LIN driver does not support configurable break lengths. The break field is fixed at 13 bits, and the LPUART module on the S32K118 does not provide a way to generate longer break characters.

 

Regards,

Daniel

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2144469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K118%20Q048%20LIN%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20using%20the%20NXP%20LIN%20stack%20version%202.0.0%20on%20an%20S32K118%20Q048%20EVB%20(RTD%20version%203.0.0)%20configured%20as%20a%20slave%20node.%20The%20LIN%20slave%20on%20the%20bus%20transmits%20an%2018%20%2B%202%20bit%20break%20field%20(20%20bit-times%20total)%2C%20and%20a%20PicoScope%20measurement%20confirms%2018%20dominant%20bits%20before%20the%20delimiter.%20The%20NXP%20has%20been%20configured%20as%20a%20LIN%20master%20to%20communicate%20with%20this%20slave.%20However%2C%20the%20S32K118%E2%80%99s%20built-in%20LIN%20hardware%20only%20recognizes%20the%20default%20minimum%20break%20length%20of%2010%20or%2013%20bits%20and%20fails%20to%20synchronize%20to%20the%20longer%20break.%20Is%20there%20any%20way%20to%20get%20this%20implemeneted%20on%20the%20EVB%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eregards%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2145152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K118%20Q048%20LIN%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251159%22%20target%3D%22_blank%22%3E%40yousefdessouki123%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20the%20clarification.%3C%2FP%3E%0A%3CP%3EI%E2%80%99ve%20just%20responded%20to%20your%20second%20thread%20regarding%20this%20issue%3A%3C%2FP%3E%0A%3CP%20style%3D%22display%3A%20block%3B%20font-weight%3A%20400%3B%20margin%3A%208px%200px%204px%3B%20overflow-wrap%3A%20break-word%3B%20color%3A%20%23d6d6d6%3B%20font-family%3A%20'Segoe%20Sans'%2C%20'Segoe%20UI'%2C%20'Segoe%20UI%20Web%20(West%20European)'%2C%20-apple-system%2C%20BlinkMacSystemFont%2C%20Roboto%2C%20'Helvetica%20Neue'%2C%20sans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant-ligatures%3A%20normal%3B%20font-variant-caps%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20start%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20widows%3A%202%3B%20word-spacing%3A%200px%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20background-color%3A%20%231f1f1f%3B%20text-decoration-thickness%3A%20initial%3B%20text-decoration-style%3A%20initial%3B%20text-decoration-color%3A%20initial%3B%22%20data-darkreader-inline-color%3D%22%22%20data-darkreader-inline-bgcolor%3D%22%22%3E%3CLI-EMOJI%20id%3D%22lia_link%22%20title%3D%22%3Alink%3A%22%3E%3C%2FLI-EMOJI%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22fui-Link%20___w5et180%20f2hkw1w%20f3rmtva%20f1ewtqcl%20fyind8e%20f1k6fduh%20f1w7gpdv%20f1mo0ibp%20fjoy568%20ff5ikls%20f1s184ao%20f1mk8lai%20fnbmjn9%20f1o700av%20f13mvf36%20f1cmlufx%20f9n3di6%20f1ids18y%20f1tx3yz7%20f1deo86v%20f1eh06m1%20f1iescvh%20fhgqx19%20f1olyrje%20f1p93eir%20f1nev41a%22%20style%3D%22box-sizing%3A%20border-box%3B%20text-decoration%3A%20underline%201px%3B%20padding%3A%200px%3B%20margin%3A%200px%3B%20overflow%3A%20inherit%3B%20text-align%3A%20left%3B%20display%3A%20inline%3B%20background-color%3A%20transparent%3B%20cursor%3A%20pointer%3B%20color%3A%20%237385ff%3B%20text-overflow%3A%20inherit%3B%20user-select%3A%20text%3B%20font-size%3A%20inherit%3B%20font-family%3A%20inherit%3B%20font-weight%3A%20inherit%3B%22%20tabindex%3D%220%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K118Q048-EVB-as-a-LIN-master%2Fm-p%2F2144551%22%20target%3D%22_blank%22%20data-tabster%3D%22%7B%22%20restorer%3D%22%22%3ES32K118Q048%20EVB%20as%20a%20LIN%20master%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20the%20current%20LIN%20driver%20does%20not%20support%20configurable%20break%20lengths.%20The%20break%20field%20is%20fixed%20at%2013%20bits%2C%20and%20the%20LPUART%20module%20on%20the%20S32K118%20does%20not%20provide%20a%20way%20to%20generate%20longer%20break%20characters.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K118%20Q048%20LIN%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F160001%22%20target%3D%22_blank%22%3E%40danielmartynek%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3EI%20am%20sorry%20for%20the%20confusion.%20I%20meant%20that%20when%20the%20slave%20was%20connected%20to%20CANoe%2C%20the%20break%20generated%20by%20the%20CANoe%20to%20the%20slave%20was%20940%20us.%20The%20CANoe%20was%20configured%20as%20the%20master.%20The%20CANoe%20based%20master%20uses%2018%20biit%20break.%20Is%20t%20possible%20to%20make%20the%20NXP%20EVB%20work%20with%2018%20break%20bit%2C%20like%20in%20CANoe%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eregards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K118%20Q048%20LIN%20Stack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251159%22%20target%3D%22_blank%22%3E%40yousefdessouki123%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI'm%20a%20bit%20confused%20by%20your%20description%20%E2%80%94%20why%20is%20the%20slave%20node%20sending%20a%20break%3F%20Only%20the%20master%20is%20responsible%20for%20transmitting%20the%20break%20field.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E