S32K310 Lin conformity test

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

S32K310 Lin conformity test

Jump to solution
2,132 Views
Chenxu1
Contributor II

Hi,NXP专家,在使用S32K310进行Canoe自带LIN一致性测试时,我们遇到如下两个问题需要协助,谢谢。
1.用例11.3
Chenxu1_0-1757926830354.png

根据脚本和标准,这条用例,不应该置位LIN Reponse Error,但实际Log显示,LIN Reponse Error被置位 如下

Chenxu1_1-1757926879308.png

调试发现是软件检测到 LIN_ERR_RESP_STOPBIT,导致LIN Reponse Error置位。
 
  2.如下四个用例在外围电路相同的情况下,一些芯片能测试通过,另一些测试不通过,canoe显示超过合理波特率范围。
 
Chenxu1_3-1757926930956.png

 

 软件版本为RTD5.0.0,LinStack2.0.5

 

 

0 Kudos
Reply
1 Solution
1,973 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Chenxu1,

Glad to hear the second issue has been resolved.

For future cases, please create a separate thread for each issue to help maintain clarity and traceability.

Regarding the first issue, it is likely caused by an incorrect period configured for Gpt_StartTimer. This could be the reason why Switch_TimeOut() is never called. Please verify the timer configuration to ensure it aligns with the expected timeout behavior.

Refer to the attached screenshots.

 

Regards,

Daniel

Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.

View solution in original post

0 Kudos
Reply
5 Replies
2,104 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Chenxu1,

Could you please use an oscilloscope or logic analyzer to measure and compare the actual LIN baud rates of both devices?

Also, could you clarify which LPUART instance is being used for LIN communication?
It would be helpful if you could dump the LPUART register values after LIN initialization to verify the configuration.

What is your system clock setup?
Please ensure that you're using one of the recommended configurations listed in Reference Manual section 24.7.2 – System Clocking Configurations

 

Regards,

Daniel

0 Kudos
Reply
1,974 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Chenxu1,

Glad to hear the second issue has been resolved.

For future cases, please create a separate thread for each issue to help maintain clarity and traceability.

Regarding the first issue, it is likely caused by an incorrect period configured for Gpt_StartTimer. This could be the reason why Switch_TimeOut() is never called. Please verify the timer configuration to ensure it aligns with the expected timeout behavior.

Refer to the attached screenshots.

 

Regards,

Daniel

Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.

0 Kudos
Reply
2,086 Views
Chenxu1
Contributor II

Hi,Daniel.Thanks for your reply.
The clock configuration is in line with the recommended configurations listed in Reference Manual section 24.7.2.
The Uart0 channel is used and the clock is AIPS_PLAT_CLK 60M.
Attached is the LPUART register values after LIN initialization.
@danielmartynek 

0 Kudos
Reply
2,072 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Chenxu1,

Based on the register values, BAUD register = 0x0F00804E.

OSR = bits [24:28] = 0x0F = 15
SBR = bits [0:12] = 0x04E = 78

Baud Rate = 60000000 / (16 × 78) = 48076 bps

This is not a typical LIN baud rate.

Have you measured the baud rate of both nodes?

 

Thank you,

BR, Daniel 

0 Kudos
Reply
1,990 Views
Chenxu1
Contributor II

Hi,Daniel
Thanks For your help.
Modifying the baud rate,The question 2 has been solved.
Do you have any suggestions regarding question 1?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2169561%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2169561%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%2C%20NXP%20experts%2C%20while%20using%20the%20S32K310%20for%20Canoe's%20own%20LIN%20conformance%20testing%2C%20we%20have%20encountered%20the%20following%20two%20issues%20that%20we%20need%20assistance%20with%2C%20thank%20you.%20%3CBR%20%2F%3E1.%20Use%20Case%2011.3%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chenxu1_0-1757926830354.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chenxu1_0-1757926830354.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F356916i3820744F93FA727C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chenxu1_0-1757926830354.png%22%20alt%3D%22Chenxu1_0-1757926830354.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAccording%20to%20the%20script%20and%20the%20standard%2C%20this%20use%20case%20should%20not%20set%20the%20LIN%20Reponse%20Error%2C%20but%20the%20actual%20log%20shows%20that%20the%20LIN%20Reponse%20Error%20is%20set%20as%20follows%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chenxu1_1-1757926879308.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chenxu1_1-1757926879308.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F356918i706B9CEF48466758%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chenxu1_1-1757926879308.png%22%20alt%3D%22Chenxu1_1-1757926879308.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CSPAN%3EDebugging%20revealed%20that%20it%20was%20the%20software%20that%20detected%20LIN_ERR_RESP_STOPBIT%2C%20causing%20the%20LIN%20Reponse%20Error%20to%20be%20set.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%E2%80%83%E2%80%832.%20The%20following%20four%20use%20cases%20have%20the%20same%20peripheral%20circuits%2C%20some%20chips%20pass%20the%20test%2C%20others%20do%20not%2C%20and%20the%20canoe%20shows%20more%20than%20a%20reasonable%20baud%20rate%20range.%3C%2FSPAN%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chenxu1_3-1757926930956.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chenxu1_3-1757926930956.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F356919i8908AEE9DC61CA8F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chenxu1_3-1757926930956.png%22%20alt%3D%22Chenxu1_3-1757926930956.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CP%3E%20Software%20version%20RTD%205.0.0%2C%20LinStack%202.0.5%3C%2FP%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172589%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%2F230296%22%20target%3D%22_blank%22%3E%40Chenxu1%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EGlad%20to%20hear%20the%20second%20issue%20has%20been%20resolved.%3C%2FP%3E%0A%3CP%3EFor%20future%20cases%2C%20please%20create%20a%20separate%20thread%20for%20each%20issue%20to%20help%20maintain%20clarity%20and%20traceability.%3C%2FP%3E%0A%3CP%3ERegarding%20the%20first%20issue%2C%20it%20is%20likely%20caused%20by%20an%20incorrect%20period%20configured%20for%20Gpt_StartTimer.%20This%20could%20be%20the%20reason%20why%20Switch_TimeOut()%20is%20never%20called.%20Please%20verify%20the%20timer%20configuration%20to%20ensure%20it%20aligns%20with%20the%20expected%20timeout%20behavior.%3C%2FP%3E%0A%3CP%3ERefer%20to%20the%20attached%20screenshots.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3EAny%20support%2C%20information%2C%20and%20technology%20(%E2%80%9CMaterials%E2%80%9D)%20provided%20by%20NXP%20are%20provided%20AS%20IS%2C%20without%20any%20warranty%20express%20or%20implied%2C%20and%20NXP%20disclaims%20all%20direct%20and%20indirect%20liability%20and%20damages%20in%20connection%20with%20the%20Material%20to%20the%20maximum%20extent%20permitted%20by%20the%20applicable%20law.%20NXP%20accepts%20no%20liability%20for%20any%20assistance%20with%20applications%20or%20product%20design.%20Materials%20may%20only%20be%20used%20in%20connection%20with%20NXP%20products.%20Any%20feedback%20provided%20to%20NXP%20regarding%20the%20Materials%20may%20be%20used%20by%20NXP%20without%20restriction.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%EF%BC%8CDaniel%3CBR%20%2F%3EThanks%20For%20your%20help.%3CBR%20%2F%3EModifying%20the%20baud%20rate%2CThe%20question%202%20has%20been%20solved.%3CBR%20%2F%3EDo%20you%20have%20any%20suggestions%20regarding%20question%201%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170195%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%2F230296%22%20target%3D%22_blank%22%3E%40Chenxu1%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EBased%20on%20the%20register%20values%2C%26nbsp%3BBAUD%20register%20%3D%26nbsp%3B0x0F00804E.%3C%2FP%3E%0A%3CP%3EOSR%20%3D%20bits%20%5B24%3A28%5D%20%3D%200x0F%20%3D%2015%3CBR%20%2F%3ESBR%20%3D%20bits%20%5B0%3A12%5D%20%3D%200x04E%20%3D%2078%3C%2FP%3E%0A%3CP%3EBaud%20Rate%20%3D%2060000000%20%2F%20(16%20%C3%97%2078)%20%3D%26nbsp%3B48076%20bps%3C%2FP%3E%0A%3CP%3EThis%20is%20not%20a%20typical%20LIN%20baud%20rate.%3C%2FP%3E%0A%3CP%3EHave%20you%20measured%20the%20baud%20rate%20of%20both%20nodes%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EBR%2C%20Daniel%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2170102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2170102%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%EF%BC%8CDaniel.Thanks%20for%20your%20reply.%3CBR%20%2F%3EThe%20clock%20configuration%20is%20in%20line%20with%26nbsp%3B%3CSPAN%3Ethe%20recommended%20configurations%20listed%20in%20Reference%20Manual%20section%2024.7.2.%3CBR%20%2F%3EThe%20Uart0%20channel%20is%20used%20and%20the%20clock%20is%26nbsp%3BAIPS_PLAT_CLK%2060M.%3CBR%20%2F%3EAttached%20is%20the%26nbsp%3BLPUART%20register%20values%20after%20LIN%20initialization.%3CBR%20%2F%3E%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%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2169695%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K310%20Lin%20conformity%20test%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2169695%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%2F230296%22%20target%3D%22_blank%22%3E%40Chenxu1%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20use%20an%20oscilloscope%20or%20logic%20analyzer%20to%20measure%20and%20compare%20the%20actual%20LIN%20baud%20rates%20of%20both%20devices%3F%3C%2FP%3E%0A%3CP%3EAlso%2C%20could%20you%20clarify%20which%20LPUART%20instance%20is%20being%20used%20for%20LIN%20communication%3F%3CBR%20%2F%3EIt%20would%20be%20helpful%20if%20you%20could%20dump%20the%20LPUART%20register%20values%20after%20LIN%20initialization%20to%20verify%20the%20configuration.%3C%2FP%3E%0A%3CP%3EWhat%20is%20your%20system%20clock%20setup%3F%3CBR%20%2F%3EPlease%20ensure%20that%20you're%20using%20one%20of%20the%20recommended%20configurations%20listed%20in%20Reference%20Manual%20section%2024.7.2%20%E2%80%93%20System%20Clocking%20Configurations%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E