URL:
<http://savannah.nongnu.org/bugs/?22206>
Summary: avrdude: ser_setspeed(): tcsetattr() failed
Project: AVR Downloader/UploaDEr
Submitted by: jroeker
Submitted on: Freitag 01.02.2008 um 16:03
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Jonny Röker
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hello,
after my installation on Solaris10/11 i have the follow error message:
avrdude -P /dev/cua/0 -c stk500v2 -p m32
avrdude: ser_setspeed(): tcsetattr() failedavrdude: ser_open(): can't set
attributes for device "/dev/cua/0": Invalid argument
I have fixed the problem by editing ser_posix.c file as follow:
termios.c_iflag = IGNBRK;
termios.c_oflag = 0;
termios.c_lflag = 0;
termios.c_cflag = (CS8 | CREAD | CLOCAL);
termios.c_cc[VMIN] = 1;
termios.c_cc[VTIME] = 0;
cfsetospeed(&termios, speed);
cfsetispeed(&termios, speed);
#if defined(__sun__)
rc = tcsetattr(fd->ifd, TCSANOW, &termios);
#else
rc = tcsetattr(fd->ifd, TCSANOW | TCSAFLUSH, &termios);
#endif
if (rc < 0) {
fprintf(stderr, "%s: 2. ser_setspeed(): tcsetattr() failed
(reason=%d)\n", progname, rc);
return -errno;
}
Now it works ;))
Jonny
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Freitag 01.02.2008 um 16:03 Name: ser_posix.c Size: 10kB By:
jroeker
<http://savannah.nongnu.org/bugs/download.php?file_id=14919>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22206>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
_______________________________________________
avrdude-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev