LIN Wakeup and Timeout

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

LIN Wakeup and Timeout

963 Views
pchavapr4
Contributor I

Hello 
I am using S32k310 with LIN_STACK_2.0.5_D2410_DesignStudio_updatesite and RTD_R21-11_5.0.0_D2410_DesignStudio_updatesite.
1) I am facing issue when master node send Wake up command, Slave node detect Linnode state as wake up signal but I need to call Lin_43_LPUART_FLEXIO_Wakeup function when LPUART_LIN_IP_RX_ACTIVE_EDGE_DETECT. Could you please describe how LIN Wakeup functionality handle in Lin Stack?
2) I want to know more details about LIN Timeout. How LIN Bus will wake up after LIN goes in Sleep mode after timeout?

0 Kudos
Reply
1 Reply

943 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @pchavapr4,

I just tested it on the S32K1xx series which I happen to have on bench, my test project can be found here:

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K144-LIN-Go-to-Sleep/ta-p/2136890

It is the same on the S32K310.

 

You can check these functions:

Lpuart_Lin_Ip_IRQHandlerWhenInitializedExceptBreakIRQ()

Lpuart_Lin_Ip_ProcessWakeupDetect()

Lpuart_Lin_Ip_CheckWakeupSignal().

 

BR, Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2134874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELIN%20Wakeup%20and%20Timeout%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2134874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CBR%20%2F%3EI%20am%20using%20S32k310%20with%20LIN_STACK_2.0.5_D2410_DesignStudio_updatesite%20and%20RTD_R21-11_5.0.0_D2410_DesignStudio_updatesite.%3CBR%20%2F%3E1)%20I%20am%20facing%20issue%20when%20master%20node%20send%20Wake%20up%20command%2C%20Slave%20node%20detect%20Linnode%20state%20as%20wake%20up%20signal%20but%20I%20need%20to%20call%26nbsp%3B%3CSPAN%3ELin_43_LPUART_FLEXIO_Wakeup%20function%20when%26nbsp%3BLPUART_LIN_IP_RX_ACTIVE_EDGE_DETECT.%20Could%20you%20please%20describe%20how%20LIN%20Wakeup%20functionality%20handle%20in%20Lin%20Stack%3F%3CBR%20%2F%3E%3C%2FSPAN%3E2)%20I%20want%20to%20know%20more%20details%20about%20LIN%20Timeout.%20How%20LIN%20Bus%20will%20wake%20up%20after%20LIN%20goes%20in%20Sleep%20mode%20after%20timeout%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2135883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LIN%20Wakeup%20and%20Timeout%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2135883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252753%22%20target%3D%22_blank%22%3E%40pchavapr4%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20just%20tested%20it%20on%20the%20S32K1xx%20series%20which%20I%20happen%20to%20have%20on%20bench%2C%20my%20test%20project%20can%20be%20found%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FS32K144-LIN-Go-to-Sleep%2Fta-p%2F2136890%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FS32K144-LIN-Go-to-Sleep%2Fta-p%2F2136890%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIt%20is%20the%20same%20on%20the%20S32K310.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20can%20check%20these%20functions%3A%3C%2FP%3E%0A%3CP%3ELpuart_Lin_Ip_IRQHandlerWhenInitializedExceptBreakIRQ()%3C%2FP%3E%0A%3CP%3ELpuart_Lin_Ip_ProcessWakeupDetect()%3C%2FP%3E%0A%3CP%3ELpuart_Lin_Ip_CheckWakeupSignal().%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E