UART disable

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

UART disable

1,321 Views
MaheshSingh
Contributor I

In S32k146, I have a need to disable UART permanently after end of line testing.

can you pls describe some way to do it.  which LPUART register can be used to disable it

or do we need to make some other changes.

0 Kudos
Reply
5 Replies

1,312 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi MaheshSingh,

You can refer to the content of LPUART_DRV_Deinit in S32 SDK for S32K1xx RTM 4.0.2

LPUART_DRV_Deinit.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,309 Views
MaheshSingh
Contributor I

Thanks Robin,

with these steps again UART will get initialize with reset of ECU right,

I need to disable UART pins permanently, so that it can't be enabled again normally.

0 Kudos
Reply

1,196 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

How about using AIPS to configure the protection of peripheral registers?
You can refer to:
How to use s32k144 aips?
aips_demo_s32k118.zip

0 Kudos
Reply

1,281 Views
Joey_van_Hummel
Contributor III
Mahesh,

Default the LPUART is not initialized and even PCC disables the clock to the LPUART module. Simply do not initialize UART unless you need it, and it should be fine.
0 Kudos
Reply

1,288 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

There is no such register in LPUART to permanently disable this peripheral. Users can reinitialize the peripherals and enable them through the registers.
Can you describe, what kind of application situation needs this kind of function? Or describe peripheral of other MCUs or MPUs that have this function.

0 Kudos
Reply