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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Need InfoPrivacy: Public
Assigned to: NoneOriginator Name: Bairesport
Originator Email: -unavailable-Open/Closed: Open

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.
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>
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!

Anonymous

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bairesport (Updated the item)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Sep 2013 09:27:25 PM UTCjoerg_wunschStatusNone=>Need Info
    Fri 09 Nov 2012 01:45:23 PM UTCbairesportAttached File-=>Added ser_posix.diff, #26898
    Fri 09 Nov 2012 05:37:04 AM UTCNoneAttached File-=>Added ser_posix.c, #26891

    Back to the top


    Powered by Savane 3.1-cleanup