Forum Discussion
Altera_Forum
Honored Contributor
15 years agousing altera_up_avalon_rs232.h to set up rs232 communication
Hello. I've found this header file and I have been trying to use it to communicate back and forth between a PC and my development board, Altera DE1. To use functions that read and write charact...
Altera_Forum
Honored Contributor
15 years agoThank you.
You were right - the correct name is: "/dev/uart_0". I changed this but I am having another problem. Please refer to a picture attached. As you can see, the code is quite simple. All I am trying to do is to send a data character ('A') over a rs232 port. But, Eclipse gives me two errors of unknown origin (points to 'line 0' of the .c file (?!)) and one that does not make any sense. The third does not make any sense because when I right-click on the function 'write_data' and then go 'Open declaration', it shows me that it knows where it is (you can see that on top tab). What could I do with these messages? Is there an easier way to use serial port on Altera DE1? Thank you.