Arduino

FT232R

配線

pin name FT232R
17 MOSI RTS
18 MISO RxD
19 SCK TxD
1 RESET DTR
7 Vcc VBUS
8 GND GND

avrdude.conf には誤りがあるので惑わされない

programmer
  id    = "ft232r";
  desc  = "FT232R Synchronous BitBang";
  type  = ft245r;
  miso  = 1;  # RxD
  sck   = 2;  # RTS        <- ほんとは TxD
  mosi  = 0;  # TxD        <- ほんとは RTS
  reset = 4;  # DTR
;

書き込みソフト

wget http://download.savannah.gnu.org/releases-noredirect/avrdude/avrdude-5.3.1.tar.gz
wget http://www.nmj.sumomo.ne.jp/suz-avr/serjtag/serjtag-0.3.tar.gz
wget http://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx1.0.4.tar.gz
tar xvfz avrdude-5.3.1.tar.gz
tar xvfz serjtag-0.3.tar.gz
mkdir avrdude-5.3.1/patch
cp serjtag-0.3/avrdude-serjtag/src/avrdude* avrdude-5.3.1/patch/
cd avrdude-5.3.1
patch -p1 < patch/avrdude-5.3.1-usb910.patch
patch -p1 < patch/avrdude-5.3.1-avr910d.patch
patch -p1 < patch/avrdude-5.3.1-serjtag.patch
patch -p1 < patch/avrdude-5.3.1-baud.patch
patch -p1 < patch/avrdude-5.3.1-ft245r.patch
./configure
vi Makefile
CFLAGS= = -g -O2 -DSUPPORT_FT245R
LIBS = -lreadline -lncurses -ltermcap libftd2xx.a -lrt
tar xvfz libftd2xx1.0.4.tar.gz
cp ../libftd2xx1.0.4/ftd2xx.h .
cp ../libftd2xx1.0.4/WinTypes.h .
cp ../libftd2xx1.0.4/build/i386/libftd2xx.a .
make

http://www.nongnu.org/avrdude/user-manual/avrdude.html

sudo avrdude -p m168 -C bin/avrdude.conf -c ft232r -P /dev/ttyUSB0 -t

http://www.arduino.cc/playground/uploads/Learning/bootloader168.zip

Arduino IDE

http://arduino.cc/en/Main/Software

Arduino 0022 (Linux)

avr-gcc

binutils gcc avr-libc

tar xvfz binutils-2.19.1.tar.gz
cd binutils-2.19.1
PREFIX=$HOME/local/avr
export PREFIX
PATH=$PATH:$PREFIX/bin
export PATH
mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX --target=avr --disable-nls
make
make install
cd ..
tar xvfj gcc-4.4.0.tar.bz2
cd gcc-4.4.0
mkdir obj-avr
cd obj-avr
../configure --prefix=$PREFIX --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2
make
make install
cd ..
tar xvfj avr-libc-1.6.7.tar.bz2
cd avr-libc-1.6.7
./configure --prefix=$PREFIX --build=`./config.guess` --host=avr
make
make install

Edit ~/.arduino/preferences.txt to tell the Arduino software about the serial port, eg:

serial.port=/dev/ttyUSB0

chmod o+rw /dev/ttyUSB0



---
update at 2018/03/02 22:04:51

※注:当サイトは特定環境において確認できた事象のみを記述しています。他の環境での動作は一切保証しません。