UART disable

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UART disable

1,322 次查看
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 项奖励
回复
5 回复数

1,313 次查看
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 项奖励
回复

1,310 次查看
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 项奖励
回复

1,197 次查看
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 项奖励
回复

1,282 次查看
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 项奖励
回复

1,289 次查看
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 项奖励
回复