Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHello all,
Thanks for responding. DMA transfers would have worked but our protocol requires two bytes for the end-of-packet so this wasn't viable as the EOP register only allows for one byte. The solution that I settled on was using open() with O_NONBLOCK for non-blocking mode. The UART is being polled one character at a time and stored in a buffer. When the end bytes are found or a timeout occurs then the packet is dealt with. I've started to re-write the UART drivers so I can completely toss the one's supplied by Altera. I've found some problems with it and small tests so far show I can shave 30K off the final executable by getting rid of the included drivers and a couple of other things that aren't being used. Thanks, Philip