Forum Discussion
Altera_Forum
Honored Contributor
21 years agoffone13,
My guess is that you don't have the ioctl code included, the comment at the top of the driver gives you some clues /* * To reduce the code footprint of this driver, the ioctl() function is not * included by default. If you wish to use the ioctl features provided * below, you can do so by adding the option : -DALTERA_AVALON_UART_USE_IOCTL * to CPPFLAGS in the Makefile (or through the Eclipse IDE). */ If this does not solve the problem then either step into the ioctl call to find the offending line, or set a breakpoint in the ioctl code inside the UART driver to find where the problem is.