Forum Discussion
Altera_Forum
Honored Contributor
13 years agoUART RS232 receive missing bytes
Hi, I have trouble receive bytes of data using UART RS232 port on uClinux running NIOS2 /f. A loopback application was implemented to send 128 bytes hex data from ttyA0 (RS232 port) and receive...
Altera_Forum
Honored Contributor
13 years agoI'd guess that the kernel has interrupts disabled (or a long interrupt routine) for long enough for you to lose bytes.
The only real solution is to add a hardware rx fifo to the uart (or rx dma - but that is just a fifo in host memory). With a small OS (aka no real OS at all) you can probably ensure that the interrupt latency is always short enough. But I doubt you'll manage with anything large!