Jayeshkumar
New Contributor
3 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 iterations then fgetc functions fetches only 493000 data bytes and then gets hanged and if we use for loop for 400000 iterations then fgetc functions fetches only 230000 data bytes and then gets hanged. Actual our requirement is to read 800000 data bytes through uart serial port but we are unable to achieve it and do not know the issue.
We are using quartus 18.1 and Nios II edition of the same.
Please kindly help us to resolve it