Disable UART Runtime

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

Disable UART Runtime

1,014 Views
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.

Labels (3)
0 Kudos
3 Replies

950 Views
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 Kudos

950 Views
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 Kudos

950 Views
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 Kudos