[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #22206] avrdude: ser_setspeed(): tcsetattr() failed
From: |
Jonny Röker |
Subject: |
[avrdude-dev] [bug #22206] avrdude: ser_setspeed(): tcsetattr() failed |
Date: |
Fri, 01 Feb 2008 16:03:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.4) Gecko/20070622 Firefox/2.0.0.4 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avrdude-dev] [bug #22206] avrdude: ser_setspeed(): tcsetattr() failed,
Jonny Röker <=