avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] CODE for FTDI bit-bang support


From: cb750
Subject: Re: [avrdude-dev] CODE for FTDI bit-bang support
Date: Thu, 21 May 2009 18:09:30 -0500
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)


Wonderful! 2 questions though: Are they fast? And are they going to be in an official release?

Also I can help test these on Windows if needed, as I have a UM245R test rig here with various ATmega/ATtiny. Someone may have to send me the binaries though. I have poor luck getting most open source projects to compile due to external dependencies, wide assortment of different build tools, etc. I have the usual Micro$oft tools and Cygwin, plus avr-gcc and Tcl/Tk.

--
Mark Hubbard: cb 750 at com cast no spam dot net


Wouter van Gulik wrote:
There are already different patches for AVRDUDE to support programming via FTDI devices:

Bit bang mode
http://savannah.nongnu.org/patch/?4330

SPI/MPSSE based
http://savannah.nongnu.org/patch/?6502

Although both maybe a bit old.

HTH,

Wouter

Stanislav Likavcan schreef:
Hi,

There is an older version of AVRDUDE which supports FTDI available here:
http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html

I have been using above sources with UM232R (as bread board programmer) for quite some time (almost a year) with no issues on Mac OS X, although I modified the code to make it working with latest 5.6 release. It is still not entirely clear to me, why this isn't part of official release, but never mind as long it works everything fine.

If anyone interested I can provide sources. These work on Mac and Linux, however not sure about Windows.

Regards,
Stan

On 19 May 2009, at 01:18, address@hidden wrote:


Hi all,

I wrote some code you might be able to adapt & use in AVRDUDE. I'd been using AVRDUDE to flash programs into my AVR's through the PC's built-in parallel port (bit-bang). Loved it. Used the AVR's built-in serial download (SPI-like) capability. Then I was hoping to do something similar with my laptop & other PC's that don't have parallel ports, using instead a plain old FTDI UM245R / FT245R. But AVRDUDE doesn't seem to support that. Searching old messages with Google indicated it hadn't worked out in the past. Well, last night I made it work, and work FAST. Flashing AND VERIFYING with read-back a 160 byte program took about 3 seconds total. Some of that was sleep time, e.g. in between flash pages, so could be reduced if you understand how to poll the AVR for readiness etc. This method uses very few round trips to the FTDI chip, so it should scale up to larger programs very well.

I was able to do it using nothing but the AVR, the FTDI, and 3 series resistors that might not even be needed (for current protection). The FTDI UM245R costs about $19 in a 24-DIP module with USB connector. It's used in Synchronous Bit Bang mode, which seems to be also supported by the recent 232-type chips.

The code is in C# but the algorithm should easily adapt to C++ or other languages. It uses the standard FTDI D2xx DLL on Windows.

Reply if you think this would help with AVRDUDE, or just want to talk about it. Personally I'd like to use AVRDUDE for this task instead of my own code, as I like AVRDUDE's terminal capability, and fuse programming etc.

--
Mark Hubbard: cb 750 at com cast no spam dot net


_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev



_______________________________________________
avrdude-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avrdude-dev






reply via email to

[Prev in Thread] Current Thread [Next in Thread]