patchAVR Downloader/UploaDEr - Patches: patch #7062, avrftdi - FTDI FT2232 based ISP...

 
 

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

patch #7062: avrftdi - FTDI FT2232 based ISP programmer

Submitter:  Hannes Weisbach <hweisbach>
Submitted:  Sat 16 Jan 2010 02:38:09 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Thu 25 Aug 2011 04:18:03 PM UTC, comment #4: 

Committed as patch #7486.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sat 16 Jan 2010 07:53:25 PM UTC, comment #3: 


>> Curious, are you aware of patch #6502?


> Yes. this patch is based on a very early version of avrftdi,
> reworken by Ville.  I decided to open a new patch, because there are
> like 3 revisions of avrdude in between and countless
> changes/improvements on avrftdi. I hope that wasn't wrong.


Well, you could have attached a file to the old patch I think.  But
it's OK that way as well.

>> #6886 also tries to implement something similar or not. (I think
>> it's different because it works on an FT232 rather than an FT2232
>> only.)


> I am also aware of this patch, however bitbanging just plain s****,
> beacuse it's awfully slow.


I know, though for the purpose indicated in the patch (initial
programming of a bootloader), it's probably not too bad an idea
either.

> Also #6886 DOES rely on the closed source
> driver (as i understand it).


I'm afraid that's the case, yes.

> I understand that concern. However there are 2 drivers for
> ftdi-devices: the above-mentioned ftd2xx (the closed source-binary
> distributed by ftdi) and an open source driver called libftdi (LGPL,
> i think), which avrftdi uses. libftdi uses libusb and sould therefor
> run everywhere, where libusb works.


OK, I see.  Thanks for the clarification!

Joerg Wunsch <joerg_wunsch>
Group administrator
Sat 16 Jan 2010 04:45:12 PM UTC, comment #2: 


>Curious, are you aware of patch #6502? I'm not sure whether patch

Yes. this patch is based on a very early version of avrftdi, reworken by Ville.
I decided to open a new patch, because there are like 3 revisions of avrdude in between and countless changes/improvements on avrftdi. I hope that wasn't wrong.

>#6886 also tries to implement something similar or not. (I think it
>s different because it works on an FT232 rather than an FT2232 only.)

I am also aware of this patch, however bitbanging just plain s****, beacuse it's awfully slow. Also #6886 DOES rely on the closed source driver (as i understand it).
avrftdi uses the FT2232 MPSSE engine to speed things up quite a bit.

>My main concern with that kind of patches (as I understand it) is that
>it depends on a closed-source driver that is not available for all
>platforms AVRDUDE is known to work on. I wish it would be possible to
>use it on just libusb...

I understand that concern. However there are 2 drivers for ftdi-devices:
the above-mentioned ftd2xx (the closed source-binary distributed by ftdi) and an open source driver called libftdi (LGPL, i think), which avrftdi uses. libftdi uses libusb and sould therefor run everywhere, where libusb works.

Hannes Weisbach <hweisbach>
Group Member
Sat 16 Jan 2010 03:03:38 PM UTC, comment #1: 

Curious, are you aware of patch #6502?  I'm not sure whether patch
#6886 also tries to implement something similar or not.  (I think it
is different because it works on an FT232 rather than an FT2232 only.)

My main concern with that kind of patches (as I understand it) is that
it depends on a closed-source driver that is not available for all
platforms AVRDUDE is known to work on.  I wish it would be possible to
use it on just libusb...

Joerg Wunsch <joerg_wunsch>
Group administrator
Sat 16 Jan 2010 02:38:09 PM UTC, original submission:  

Hi all,

I have removed a lot of bugs and used avrftdi now for 2 years. I have "ported" it to avrdude-5.9 and would like to release a patch. Avrftdi depends on libusb/libftdi and gives you a new programmer called "avrftdi". You can use any FTDI FT2232D based USB-Dongle (e.g. Olimex ARM-USB-OCD and Amontec JTAGkey, as already mentioned) to ISP AVR-devices. I tested Atmega8, 16, 32, Attiny2313 and 13 under OS X 10.5 and 2.6.xx linux.
For USB-configuration i use patch #6199 ("Configurable USB VID, PID, manufacturer string and product string via avrdude.conf") so there are no hardcoded VIDs and PIDs anymore!
The FTDI I/O-lines are freely programmable for status-LEDs/buffer drivers/..., this includes also signal inversion (switching between active-high and active-low) via avrdude.conf.
Firmwareupload is also pretty fast, since this chip can be as fast as 3Mbaud, however you can set the speed with the baudrate switch.

However, there are a few drawbacks:

  • this programmer is not capable of HV-serial programming
  • this programmer can not generate an external clock signal for the device


Please send comments, improvements and suggestions to -email is unavailable- , as i'd really like to see this merged into avrdude.

Hannes Weisbach <hweisbach>
Group Member

 

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

Attached Files
file #19498:  avrftdi.patch added by hweisbach (24KiB - 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 hweisbach (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-25 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2010-01-16 hweisbach Attached File- Added avrftdi.patch, #19498

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code