bugAVR Downloader/UploaDEr - Bugs: bug #37697, avrdude cannot manage non-standard...


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

bug #37697: avrdude cannot manage non-standard speeds on Mac

Submitted by:  None
Submitted on:  Fri 09 Nov 2012 05:37:04 AM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  None Originator Name:  Bairesport
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  None Programmer hardware: 
Device type: 

Tue 10 Sep 2013 09:27:26 PM UTC, comment #3:

I just had a look under Darwin 11.4.2. The manual page
TCSETATTR(3) says:

(The various Bxxx constants then directly map to the value
xxx, respectively.)

To me, this looks as if the current codebase should work as
expected. Is it possible that recent OSX releases changed
their behaviour here?

The problem with the patch is that it only accepts OSX and
Linux (no *BSD, no Solaris), and that redefining an ioctl
within application code is basically a no-go. Nobody would
guarantee the ioctl is still encoded the same way in the next
OS release.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 09 Nov 2012 01:45:23 PM UTC, comment #2:

Modification NOT checked under Linux. Please test it.

(file #26898)

Javier Marquevichi <bairesport>
Fri 09 Nov 2012 05:50:05 AM UTC, comment #1:

Could you resend it as the output of a diff -u command between
the original and your modified version?

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 09 Nov 2012 05:37:04 AM UTC, original submission:

Hi guys!

Working with an Arduino board (ATmel1284P) whose bootloader communicates at 250000bps (yeah, 250 tousand) I have found the avrdude running in OSX cannot handle non-standard speeds.

After a little research I modified the ser_posix.c, recompile it, and now it works great with any rare speed (all the credits for the libosmocore team).

If you have some time take a look to the attached ser_posix.c

Thanks for your amazing work!



Attached Files
file #26898:  ser_posix.diff added by bairesport (3KiB - application/octet-stream)
file #26891:  ser_posix.c added by None (13KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bairesport (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 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-10 joerg_wunsch StatusNone => Need Info
    2012-11-09 bairesport Attached File- => Added ser_posix.diff, #26898
    2012-11-09 None Attached File- => Added ser_posix.c, #26891

    Back to the top

    Powered by Savane 3.4