Forum Discussion
Jayeshkumar
New Contributor
4 years agoUART Serial port blocking mode fgetc function not able to fetch required data bytes
Hi,
We have written c code where we are opening the uart serial port in blocking mode and we are using fgetc function to read the data. we are using for loop and if we keep the for loop for 800000 ...
ShengN_altera
Super Contributor
4 years agoOne more thing is in blocking mode, UART will block if the SW buffer is full. The size of the SW buffer for both RX and TX is set to ALT_AVALON_UART_BUF_LEN of 64 in altera_avalon_uart.h.
Jayeshkumar
New Contributor
4 years agoAs you are mentioning about SW Buffer, please let us know what are the conditions when it gets Full and how much to increase its size to get our work done?