When you are performing "echo hello" you sending this text into system console and as the console is associated with ttymxc0 UART the text finally arrives at the PC.
When you are performing "echo hello > /dev/ttymxc0" you sending the data into UART directly as ttymxc0 device not as a console.
And you are getting the same result. The text arrives at the PC.
However in case of "echo hello > /dev/ttymxc1" the text goes to UART2 however nothing is listening to UART2 device.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------