[ 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

One of the most dangerous illusions you get from school is the idea that doing
great things requires a lot of discipline. Most subjects are taught in such a
boring way that it's only by discipline that you can flog yourself through
them. So I was surprised when, early in college, I read a quote by
Wittgenstein saying that he had no self-discipline and had never been able to
deny himself anything, not even a cup of coffee.

Now I know a number of people who do great work, and it's the same with all of
them. They have little discipline. They're all terrible procrastinators and
find it almost impossible to make themselves do anything they're not
interested in. One still hasn't sent out his half of the thank-you notes from
his wedding, four years ago. Another has 26,000 emails in her inbox.

I'm not saying you can get away with zero self-discipline. You probably need
about the amount you need to go running. I'm often reluctant to go running,
but once I do, I enjoy it. And if I don't run for several days, I feel ill.
It's the same with people who do great things. They know they'll feel bad if
they don't work, and they have enough discipline to get themselves to their
desks to start working. But once they get started, interest takes over, and
discipline is no longer necessary.

    -- Paul Graham
    -- What You'll Wish You'd Known ( http://www.paulgraham.com/hs.html )

You can easily install the binary distribution of Mozilla (from mozilla.org)
on a different prefix, possibly under your home directory. Please install it
and use it instead of Mozilla 1.1, at least when verifying if problems indeed
exist. I do not wish to tolerate any more reports of problems when using
Mozilla 1.1, because I can't tell if it's a bug that was fixed by then, or if
it's an actual issue with Mozilla.

On a slightly different note: my machine crashed the other day when using it
with kernel 2.6.0. Can anyone help?

Shlomi Fish on discussions@hamakor.org.il

    -- Shlomi Fish
    -- Post to discussions@hamakor.org.il ( http://mirror.hamakor.org.il/archives/discussions/05-2005/1495.html )


Powered by UNIX fortune(6)
[ Main Page ]