Disable UART Runtime

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

Disable UART Runtime

1,180 次查看
mathew_k_t
Contributor II

Hi,

I'm working with i. MX6ULL board. I would like to disable debug UART in runtime. How to implement this?

Thanks in advance.

标签 (3)
0 项奖励
3 回复数

1,116 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k_t

one can look at general linux suggestions provided on

c++ - How to disable cout output in the runtime? - Stack Overflow 

Disable Console Output from External Program (C++) - Stack Overflow 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

1,116 次查看
mathew_k_t
Contributor II

Thank you Igor for your response. 

I have gone through the link you provided. I found that those information is for redirecting or stopping debug messages.

But my requirement is different. I would like to disable the UART itself. We have a UART for log in and access sysfs entries. I want to disable this to avoid unauthorized access. I'm looking for a solution other than changing the log in password. 

On checking the datasheet, I found UART_Enable bit in the UART Control register1. How can I use that? Is it a solution for what I'm looking for?

Thanks and Regards

0 项奖励

1,116 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k_t

 

one can also try to gate uart clocks with CCM_CCGRn

registers.

 

Best regards
igor

0 项奖励