Skip to content

FTDI Sync bitbang not working under windows 10. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HannesBulk opened this issue May 3, 2018 · 2 comments
Open

FTDI Sync bitbang not working under windows 10. #12

HannesBulk opened this issue May 3, 2018 · 2 comments

Comments

@HannesBulk
Copy link

I have a simple FTDI serial interface (Ft232R) with a ISP header.
The header pins are connected :
Reset to RI, sck to DSR, miso to CTS and mosi to DCD.
The FTDI drivers are installed, and i can see and configure the FT232 and the FT231X with FTPROG.

Using the AVRDUDE-Sertag version i can program any ATMega with an SPI interface.
To do this, specifu ft0 as port, and for a blank processor you have to select a lower speed with the -B 1000 option. This is slow. so only use it to change the clock setting according to the hardware, and clear the DIV8 fuse. Then you can program at high speed by ommitting the _B parameter.

This works fine with windows 10 Probably also (Win7 and Win8), but the latest 6.30 version reports errors, you have to recompile AVRDUDE with the ftdilib or the libusb-win32 lib.

So the request for a new release is to include all drivers needed to enable sync bitbang with AVRDUDE in the next release.

@facchinm
Copy link
Member

facchinm commented May 4, 2018

Hi @HannesBulk ,
which version of avrdude are you using? The staging one is compiled with

Configuration summary:
----------------------
DO HAVE    libelf
DO HAVE    libusb
DO HAVE    libusb_1_0
DON'T HAVE libftdi1
DON'T HAVE libftdi
DON'T HAVE libhid
DO HAVE    libhidapi
DO HAVE    pthread
DISABLED   doc
ENABLED    parport

so at least libusb-win32 support is there. Could you test it and report if it works? Direct link is http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino14-i686-w64-mingw32.zip

@HannesBulk
Copy link
Author

I still get the error mesages. To use FTDI Sync bitbang you need the Libftdi, to acces the serial port you have to specify not serials but ft0 (if its the only or first ftdi chip).
This works with a special version of AVRDUDE (a modified AvrDude from Sertag), but not with the latest (6.3) version. The normal serial bitbang is very slow, but the modified version with FTDI sync bitbang support works with almost the same speed as a UsBasp. Since most (official) Arduino (nano) pcb's are usisin a FTDI ft230rl chip, you only need to connect the specified pins on the ftdi chip to the isp header to program the processor, freeing the bootloader space, allowing to program without an external programmer !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants