S32K311_LPUART1_LIN_CLOCK

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

S32K311_LPUART1_LIN_CLOCK

Jump to solution
2,000 Views
arnau_sastre_doga
Contributor II

Hi,

I'm trying to use LPUART0 and LPUART1 to read two LIN transcievers via LPUART_LIN peripheral. As per Uart0 everything is running smooth but for UART1 I have a question regarding the UART clock.

In the reference manual, you state that in s32k311 UART0 and UART1 is clocked by AIPS_PLAT_CLK that in my case is set to 60MHz.

arnau_sastre_doga_0-1736844579139.png

Meanwhile, in the procesor expert window for s32k311, I see that LPUART1 is set to AIPS_SLOW_CLK that is set to 30MHz. 

arnau_sastre_doga_1-1736844777463.png

When I set up the peripheral it takes the 30MHz clock, but analyzing protocol traces I do think its actually going at 60 MHz since with the same baudarate setting as in UART0 I can recieve LIN Slave RX messages with all the data but I cannot send TX message when a header is sent by the master.

Can this be an error ?

Thanks for the support !

Tags (3)
0 Kudos
Reply
1 Solution
1,990 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @arnau_sastre_doga,

You did not specify the RTD version.

But the newest RTD 5.0.0 is correct.

danielmartynek_0-1736856887084.png

 

View solution in original post

0 Kudos
Reply
4 Replies
1,991 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @arnau_sastre_doga,

You did not specify the RTD version.

But the newest RTD 5.0.0 is correct.

danielmartynek_0-1736856887084.png

 

0 Kudos
Reply
1,970 Views
arnau_sastre_doga
Contributor II

Btw, do you have any documentation regarding the upgrade of RTDs of a project ?

It would be helpful to avoid chaos on when migrating from one update to the other.

 

Thanks !

Tags (2)
0 Kudos
Reply
1,965 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I'm afraid there is no such document, and the RTD of a project cannot be updated.

I would recommend that you install a new instance of S32DS IDE 3.5 in a new directory.

Then, install RTD 5.0.0 in the new IDE only while keeping the old project and RTD 3.0.0 in the older IDE installation. Once the RTD 5.0.0 project is configured, copy your custom code.

 

Regards,

Daniel

0 Kudos
Reply
1,975 Views
arnau_sastre_doga
Contributor II

Hi,

I'm using RTD 3.0.0, so makes sense that a further update has fixed this.

Apologies for the inconvenence, I'll download the last RTD. 

 

Thanks !

%3CLINGO-SUB%20id%3D%22lingo-sub-2027440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K311_LPUART1_LIN_CLOCK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027440%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20use%20LPUART0%20and%20LPUART1%20to%20read%20two%20LIN%20transcievers%20via%20LPUART_LIN%20peripheral.%20As%20per%20Uart0%20everything%20is%20running%20smooth%20but%20for%20UART1%20I%20have%20a%20question%20regarding%20the%20UART%20clock.%3C%2FP%3E%3CP%3EIn%20the%20reference%20manual%2C%20you%20state%20that%20in%20s32k311%20UART0%20and%20UART1%20is%20clocked%20by%20AIPS_PLAT_CLK%20that%20in%20my%20case%20is%20set%20to%2060MHz.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22arnau_sastre_doga_0-1736844579139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22arnau_sastre_doga_0-1736844579139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319475iD5E811914F0E4641%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22arnau_sastre_doga_0-1736844579139.png%22%20alt%3D%22arnau_sastre_doga_0-1736844579139.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EMeanwhile%2C%20in%20the%20procesor%20expert%20window%20for%20s32k311%2C%20I%20see%20that%20LPUART1%20is%20set%20to%20AIPS_SLOW_CLK%20that%20is%20set%20to%2030MHz.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22arnau_sastre_doga_1-1736844777463.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22arnau_sastre_doga_1-1736844777463.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319477i31BB63F25158540B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22arnau_sastre_doga_1-1736844777463.png%22%20alt%3D%22arnau_sastre_doga_1-1736844777463.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhen%20I%20set%20up%20the%20peripheral%20it%20takes%20the%2030MHz%20clock%2C%20but%20analyzing%20protocol%20traces%20I%20do%20think%20its%20actually%20going%20at%2060%20MHz%20since%20with%20the%20same%20baudarate%20setting%20as%20in%20UART0%20I%20can%20recieve%20LIN%20Slave%20RX%20messages%20with%20all%20the%20data%20but%20I%20cannot%20send%20TX%20message%20when%20a%20header%20is%20sent%20by%20the%20master.%3C%2FP%3E%3CP%3ECan%20this%20be%20an%20error%20%3F%3C%2FP%3E%3CP%3EThanks%20for%20the%20support%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K311_LPUART1_LIN_CLOCK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20afraid%20there%20is%20no%20such%20document%2C%20and%20the%20RTD%20of%20a%20project%20cannot%20be%20updated.%3C%2FP%3E%0A%3CP%3EI%20would%20recommend%20that%20you%20install%20a%20new%20instance%20of%20S32DS%20IDE%203.5%20in%20a%20new%20directory.%3C%2FP%3E%0A%3CP%3EThen%2C%20install%20RTD%205.0.0%20in%20the%20new%20IDE%20only%20while%20keeping%20the%20old%20project%20and%20RTD%203.0.0%20in%20the%20older%20IDE%20installation.%20Once%20the%20RTD%205.0.0%20project%20is%20configured%2C%20copy%20your%20custom%20code.%20%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%3CLINGO-SUB%20id%3D%22lingo-sub-2027620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K311_LPUART1_LIN_CLOCK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBtw%2C%20do%20you%20have%20any%20documentation%20regarding%20the%20upgrade%20of%20RTDs%20of%20a%20project%20%3F%3C%2FP%3E%3CP%3EIt%20would%20be%20helpful%20to%20avoid%20chaos%20on%20when%20migrating%20from%20one%20update%20to%20the%20other.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K311_LPUART1_LIN_CLOCK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20using%20RTD%203.0.0%2C%20so%20makes%20sense%20that%20a%20further%20update%20has%20fixed%20this.%3C%2FP%3E%3CP%3EApologies%20for%20the%20inconvenence%2C%20I'll%20download%20the%20last%20RTD.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K311_LPUART1_LIN_CLOCK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245536%22%20target%3D%22_blank%22%3E%40arnau_sastre_doga%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYou%20did%20not%20specify%20the%20RTD%20version.%3C%2FP%3E%0A%3CP%3EBut%20the%20newest%20RTD%205.0.0%20is%20correct.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1736856887084.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1736856887084.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319517iDDB4F78B1D8AA019%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1736856887084.png%22%20alt%3D%22danielmartynek_0-1736856887084.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E