avrdude: serial_open(): can't set attributes for device "com1"
,
Solution: This problem seems to appear with certain versions of Cygwin. Specifying
"/dev/com1"
instead of "com1"
should help.
setserial port low_latency
Solution (long):
There are two problems here. First, the system may wait some time before it
passes data from the serial port to the program. Under Linux the following
command works around this (you may need root privileges for this).
setserial port low_latency
Secondly, the serial interface chip may delay the interrupt for some time.
This behaviour can be changed by setting the FIFO-threshold to one. Under Linux this
can only be done by changing the kernel source in drivers/char/serial.c
.
Search the file for UART_FCR_TRIGGER_8
and replace it with UART_FCR_TRIGGER_1
. Note that overall performance might suffer if there
is high throughput on serial lines. Also note that you are modifying the kernel at
your own risk.
Go to the first, previous, next, last section, table of contents.