[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] CODE for FTDI bit-bang support
From: |
Stanislav Likavcan |
Subject: |
Re: [avrdude-dev] CODE for FTDI bit-bang support |
Date: |
Wed, 20 May 2009 08:49:16 +0100 |
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