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

Submitter:  None
Submitted:  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 unsigned integer
     speed_t is typedef'd in the include file <termios.h>.  The value of the integer corresponds
     directly to the baud rate being represented; however, the following symbolic values are
     defined:


(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>
Group administrator
Fri 09 Nov 2012 01:45:23 PM UTC, comment #2: 



Modification NOT checked under Linux. Please test it.
Thanks.


(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>
Group 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!





Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-f8d8.
    Corresponding source code