Hi,
I'm working with i. MX6ULL board. I would like to disable debug UART in runtime. How to implement this?
Thanks in advance.
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!
-----------------------------------------------------------------------------------------------------------------------
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
Hi mathew_k_t
one can also try to gate uart clocks with CCM_CCGRn
registers.
Best regards
igor