[ 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

And the whole problem hinges on the little tiny decision of what IE8 should do
when it encounters a page that claims to support ���standards���, but has probably
only been tested against IE7.

What the hell is a standard?

Don���t they have standards in all kinds of engineering endeavors? (Yes.)

Don���t they usually work? (Mmmm���..)

Why are ���web standards��� so frigging messed up? (It���s not just Microsoft���s
fault. It���s your fault too. And Jon Postel���s (1943-1998). I���ll explain that
later.)

There is no solution. Each solution is terribly wrong. Eric Bangeman at ars
technica writes, ���The IE team has to walk a fine line between tight support
for W3C standards and making sure sites coded for earlier versions of IE still
display correctly.��� This is incorrect. It���s not a fine line. It���s a line of
negative width. There is no place to walk. They are damned if they do and
damned if they don���t.

    -- Joel Spolsky
    -- "Martian Headsets" ( http://www.joelonsoftware.com/items/2008/03/17.html )

Q:	Why did Menachem Begin invade Lebanon?
A:	To impress Jodie Foster.


Powered by UNIX fortune(6)
[ Main Page ]