Forum Discussion
Hi
I have managed to run the example design on a DE0-Nano board and managed to run the UART in interrupt mode with the example design int he link below:
The HAL API was used in the example design.
Tried using the method you shared of using the C Library method of (fOpen and fWrite), I have see the same behavior like you mentioned.
The UART could not write when I enable the interrupt when I am using the C library when interfacing the UART.
After looking around, it seems like the C library method of fWrite and fRead do not support interrupt mode of reading and writing . So I would say it is an expected behavior when we enable the interrupt when using the C library method.
If you are looking at using the UART with interrupt mode, I woud suggest you to use the HAL API to interface with the UART.
Regards
Jingyang, Teh
Hi Jingyang, Teh,
Thanks! At last, this provides an answer to the issue.
I will inform my students and colleagues about it and advice them to use the HAL API from now on.
Best regards
Pr. Vincent Frick