bugAVR Downloader/UploaDEr - Bugs: bug #46483, version 6.2. ser_open(): can't set...


You are not allowed to post comments on this tracker with your current authentication level.

bug #46483: version 6.2. ser_open(): can't set attributes for device

Submitted by:  None
Submitted on:  Fri 20 Nov 2015 03:52:02 PM UTC  
Votes:  100  
Category:  None Severity:  3 - Normal
Priority:  7 - High Item Group:  None
Status:  Confirmed Privacy:  Public
Assigned to:  None Originator Name:  Yuri
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

( Jump to the original submission)

Wed 09 Dec 2015 10:46:47 PM UTC, comment #7:

The offending change has been backed out in r1365.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon 07 Dec 2015 09:02:27 PM UTC, comment #6:

This bug breaks Linux Arch package as well. It is a severe problem and commit that introduced it should be reverted.

Anatol <arzedos>
Fri 04 Dec 2015 07:09:33 AM UTC, comment #5:

The problem came in with patch #8380. I'm adding the author
of that patch to the Cc list.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon 30 Nov 2015 07:59:49 PM UTC, comment #4:

Sigh, I wish the driver API were the same regardless of which
baudrate the driver supports.

But OK, thanks for the hint, I got the idea.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Tue 24 Nov 2015 04:00:14 AM UTC, comment #3:

I had the same problem but with a stk500 connected with a PL2303 USB-serial cable.

I assume not all of these USB-serial devices support custom baud rates. So I wrote a patch (avrdude-r1531-custom-baudrate.patch) which sets the baud rate the standard way for standard baud rates. For custom baud rates it uses the linux way on linux and errors on other OS.

Martin Furter <sabor>
Fri 20 Nov 2015 09:40:06 PM UTC, comment #2:

strace archive added on behalf of Yuri.

(file #35509)

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 20 Nov 2015 04:46:53 PM UTC, comment #1:

As I don't have an Arduino around, please re-run the command

strace -o trace.txt avrdude …

and attach the file trace.txt to this bug report.

Preferrably, also do it for version 6.1, for comparison.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 20 Nov 2015 03:52:02 PM UTC, original submission:

After upgrading avrdude from 6.1 to 6.2. I have been unable to program my avr.

avrdude output:

Using Port : /dev/ttyACM0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: Cannot set serial port speed to 115200. ioctl returned -1
avrdude: ser_open(): can't set attributes for device "/dev/ttyACM0": Operation
not permitted

User is added to the dialout group. Downgrading the package makes it work
again. Furthermore other software has no problem setting attributes of the
serial device.

Installed from the Debian repository.

debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805642



Attached Files
file #35534:  avrdude-r1531-custom-baudrate.patch added by sabor (4KiB - text/x-patch - Patch)
file #35509:  strace.tar.gz added by joerg_wunsch (54KiB - application/gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ildar
  • -email is unavailable- added by arzedos (Posted a comment)
  • -email is unavailable- added by zabereer (Voted in favor of this item)
  • -email is unavailable- added by joerg_wunsch (Author of patch #8380)
  • -email is unavailable- added by sabor (Updated the item)
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.




    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-17 ildar Carbon-Copy- => Added ildar
    2015-12-06 zabereer Carbon-Copy- => Added zabereer
    2015-12-04 joerg_wunsch StatusNone => Confirmed
        Carbon-Copy- => Added oni
    2015-12-04 joerg_wunsch Priority5 - Normal => 7 - High
    2015-11-30 joerg_wunsch StatusNeed Info => None
    2015-11-24 sabor Attached File- => Added avrdude-r1531-custom-baudrate.patch, #35534
    2015-11-20 joerg_wunsch Attached File- => Added strace.tar.gz, #35509
    2015-11-20 joerg_wunsch StatusNone => Need Info

    Back to the top

    Powered by Savane 3.3