Disable UART Runtime

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Disable UART Runtime

1,039件の閲覧回数
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 返答(返信)

975件の閲覧回数
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 件の賞賛

975件の閲覧回数
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 件の賞賛

975件の閲覧回数
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 件の賞賛