patchAVR Downloader/UploaDEr - Patches: patch #6828, Using arbitrary BAUD rates


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

patch #6828: Using arbitrary BAUD rates

Submitted by:  Gerard <fahr>
Submitted on:  Wed 13 May 2009 09:17:54 AM UTC  
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Joerg Wunsch <joerg_wunsch> Open/Closed:  Closed

Fri 08 Jan 2010 10:40:19 AM UTC, comment #1: 

Committed, with the slight change to only print the
informational notice iff we are verbose.  For those folks
where arbitrary baud rates do work, getting the warning
each time might otherwise be annoying.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Wed 13 May 2009 09:17:54 AM UTC, original submission:  

When trying to use a non-standard BAUD rate (195313 in my case), avrdude comes up with this and then stops;

avrdude: serial_baud_lookup(): unknown baud rate: 195313

After patching the source to bypass that error and just return the rate, it turns out that arbitrary BAUD rates work fine with my setup and programmer and there seems to be no need for this to fail.

Joerg Wunsch pointed out that arbitrary rates may not work with every driver. The attached patch makes it so that avrdude first searches the default BAUD rates and returns the associated constants. If it is not a default rate, then it issues a warning and returns the non-standard rate.

I've compiled and tested this on Windows and it works. I've compiled it on Linux (which works), but cannot test it there.

Gerard <fahr>


Attached Files
file #18132:  odd_baud_rate.diff added by fahr (1KiB - 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 joerg_wunsch (Posted a comment)
  • -email is unavailable- added by fahr (Submitted the item)
  • -email is unavailable- added by fahr

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-08 joerg_wunsch StatusNone => Done
        Assigned toNone => joerg_wunsch
        Open/ClosedOpen => Closed
    2009-05-13 fahr Attached File- => Added odd_baud_rate.diff, #18132
        Carbon-Copy- => Added fahr

    Back to the top

    Powered by Savane 3.5