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

Submitter:  Gerard <fahr>
Submitted:  Wed 13 May 2009 09:17:54 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  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>
Group administrator
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>

 

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

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
  •  

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