Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20526 closed enhancement (fixed)

avrdude: Add ftdi bitbang support (+serjtag variant)

Reported by: ranauei@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: bd34n (Brian Dean)
Port: avrdude

Description

Useful for example to burn a bootloader into the arduino without external programmer. Need this to compile: http://www.ftdichip.com/Drivers/D2XX.htm see ReadMe on how to install it

Attachments (10)

patch-Makefile.in.diff (6.0 KB) - added by ranauei@… 15 years ago.
patch-avr910.c.diff (5.2 KB) - added by ranauei@… 15 years ago.
patch-avrdude.conf.in.diff (1.4 KB) - added by ranauei@… 15 years ago.
patch-lexer.l.diff (551 bytes) - added by ranauei@… 15 years ago.
patch-config_gram.y.diff (1.1 KB) - added by ranauei@… 15 years ago.
patch-ft245r.c.diff (18.1 KB) - added by ranauei@… 15 years ago.
patch-ft245r.h.diff (243 bytes) - added by ranauei@… 15 years ago.
patch-serjtag.c.diff (17.9 KB) - added by ranauei@… 15 years ago.
patch-serjtag.h.diff (546 bytes) - added by ranauei@… 15 years ago.
Portfile (2.2 KB) - added by ranauei@… 15 years ago.
added proper port dependency for libftd2xx

Download all attachments as: .zip

Change History (18)

Changed 15 years ago by ranauei@…

Attachment: patch-Makefile.in.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-avr910.c.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-avrdude.conf.in.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-lexer.l.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-config_gram.y.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-ft245r.c.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-ft245r.h.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-serjtag.c.diff added

Changed 15 years ago by ranauei@…

Attachment: patch-serjtag.h.diff added

comment:1 Changed 15 years ago by ranauei@…

Example to burn adaboot into an arduino duemilanove w/ ATmega328p:

avrdude -c duemilanove -p m328p -P ft0 -e -u -U lock:w:0x3f:m -U efuse:w:0x05:m -U hfuse:w:0xDA:m -U lfuse:w:0xFF:m
avrdude -c duemilanove -p m328p -P ft0 -U flash:w:ATmegaBOOT_xx8_adaboot328.hex -U lock:w:0x0f:m

Here how to properly wire the arduino: http://www.geocities.jp/arduino_diecimila/bootloader/connecting.html#P1

P.S.: remember to unload the VCP FTDI driver (the one usually installed) before using avrdude.

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to bsd@…

Assigning to maintainer.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Add ftdi bitbang support to avrdude(+serjtag variant)avrdude: Add ftdi bitbang support (+serjtag variant)

comment:4 in reply to:  description Changed 15 years ago by ranauei@…

Replying to ranauei@…:

Need this to compile: http://www.ftdichip.com/Drivers/D2XX.htm see ReadMe on how to install it

No more manual install needed because of added dependency. See http://trac.macports.org/ticket/20565

Changed 15 years ago by ranauei@…

Attachment: Portfile added

added proper port dependency for libftd2xx

comment:5 Changed 15 years ago by nerdling (Jeremy Lavergne)

Owner: changed from bsd@… to snc@…
Status: newassigned

comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: bsd@… added

comment:7 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Committed in r55049. Tweaked ui_msg.

comment:8 Changed 15 years ago by nerdling (Jeremy Lavergne)

Patches added in r55055.

Note: See TracTickets for help on using tickets.