Hi,
I am using am335x evm and developing a test app to test comm on uart 2. I am trying to achieve it by open, read and write calls over /dev/ttyO2. I have made the configuration changes in the ,dts file for enabling uart 2 and i am able to get the init messages on kernel boot up log.
But after writing a multiple bytes on /dev/ttyO2 immediately i am not able to read from the same file descriptor in loopback mode(shorted rx and tx). The console just hangs around in read call and it needs to be stopped by ctrl+x.
Even catting on /dev/ttyO2 is not working.
Profile used is 4 and 3.
I am not enabling the non-blocking mode for the file descriptor.
Need some resolution on what can be done to make frequent read writes on the uart happen via /dev/ttyO2 interface.
Is any other configuration other than .dts for am335x needs to be done or is this way of executing on uart is not feasible.
Answers appreciated. :-)
Thanks
RD