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

 
 
Show feedback again

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

patch #6828: Using arbitrary BAUD rates

Submitted by:  Gerard <fahr>
Submitted on:  Wed 13 May 2009 09:17:54 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: DonePrivacy: 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 (1kB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 08 Jan 2010 10:40:33 AM UTCjoerg_wunschStatusNone=>Done
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Wed 13 May 2009 09:17:54 AM UTCfahrAttached File-=>Added odd_baud_rate.diff, #18132
      Carbon-Copy-=>Added fahr
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup