[ Main Page ]

Arduinoのブートローダ書き込み

AVRライタがある場合はそれを使えば良いが、Arduinoから入門した人はあまり持っていないことが多いだろう。 FT232RLのBitBangモードによって書き込めるツールが開発されている(FT245R/FT232R で avrdude (2)/ avrdue-GUI)ので、 それを使うのが比較的お手頃だろう。ボードだと、Uncompatinoであれば、2X4ピンつなげばこのモードで書き込める。

MISO-CTS MOSI-DCD SCK-DSR RESET-RIをそれぞれ接続した状態でFT232RL対応版avrdueを使用する。avrdue-GUIでavrdue.exeの場所を指定し、DeviceはATmega328Pに、 uncompatinoのタイプの接続の場合、ProgrammerはFT232R diecimilaを指定。

バージン(買ってきてすぐ)のICは、内蔵RC発振モードになっているので、高速書き込みモードは使用出来ない。ビットを書き換えてリセットした場合、 水晶発振モードになっていると、水晶が接続されていないと動作しなくなるので注意する。Arduino互換ボードであれば、水晶は基本接続されているので、あまり心配はいらないと思われる。

1) Portは空欄で良い、コマンドラインオプションで-P ft0 -B 76800を追加して低速モードでFuseを読み込み・書き込みできる。ファームウエアは容量が大きいととても遅いので、水晶発振モードにしてから リセットして高速モードで書き込む方が良い。hFuse=D9 lFuse=62 eFuse=07が初期値。これをhFuse=DE lFuse=FF eFuse=05にして書き込み、いったん電源を落とすかリセット。

2) コマンドラインオプションを-P ft0 -B 115200に変更し高速モードにする。Flashにoptibootのhexファイルを指定し、Erase-Write-Verifyで書き込む。

avrdude-GUI-1.0.5.zip

avrdude-GUI-1.0.5-src.zip

avrdude-serjtag04n.zip

FTDI driver CDM v2.08.30 WHQL Certified.zip

Monica: Pete's breaking up with me.

All: What?!

Monica: I just checked my messages, and he said that when he gets back from
Atlanta, we need to talk.

Rachel: And?

Monica: Well that's it. People never say `We need to talk' unless it's
something bad.

Joey: Whoa, that doesn't necessarily mean that he's breaking up with you.

Monica: Really?!

Joey: Yeah, maybe he just cheated on you.

    -- David Crane & Marta Kauffman
    -- "Friends" (T.V. Show) ( http://en.wikipedia.org/wiki/Friends )

"Seriously, there is no reason why the command line should be required to
configure Oracle just like there is no reason why the command line should be
required to configure Linux. It is an indication of a company and people who
are trying to raise the barrier to entry in order to hold on to revenue
streams from support and training."

You're so right. I mean, all those wonderful GUI tools for Linux
administration out there that Linux Inc. won't let you use.

Oh wait. That's right. There's no single company deciding what you can and
can't use.

Okay, maybe it's the fact that the people who *could* write tools for Linux
system administration *already know* how to administer Linux systems, so they
don't need GUI tools. Yeah, that sounds a bit more likely.

Maybe with Oracle you have point. I'm sure they balance the lost support
revenue from better tools against the lost sales revenue from more people
wanting to buy their product because of the tools.

    -- Drew Kime
    -- Comment on "Oracle - How Quaint?" ( http://discuss.joelonsoftware.com/default.asp?joel.3.637120.37 )


Powered by UNIX fortune(6)
[ Main Page ]