This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Userspace serial program not working

Hi Experts,

I tried running a user space program in the Linux ubunut machine compiled for normal GCC. The program will poll for the serial interface like /dev/ttyUSB0 using read()/write() API's. The same program is cross compiled for AM335x Linux SDK 6.0. I could see that it misses the data in the UART hardware buffer. What is the maximum size of UART buffer and how long it will hold so that it should be read immediately ?