英太郎の鯖缶? -15ページ目

英太郎の鯖缶?

最近Arduinoで遊んでます。
KiCADで基板作って遊んでます♪

windows8 以降はドライバの署名関連で色々面倒になってます。
そこで、usbasp 用のドライバを簡単に入れる方法。

http://zadig.akeo.ie/
こちらからドライバインストール用のソフトを入手しておきます。

まずもしドライバがすでに入っていてうまく動かせない場合はドライバを削除します。

ドライバ削除
この時、ドライバーソフトも削除しましょう。

ドライバを削除したら先ほどダウンロードしたファイルを実行します。



USBをさし直して、


インストールするドライバを選択します。
(libusb-win32)



Install Driver ボタンを押せば完了。無事使えるようになるはずです。

手元にあったusbasp V2.0のファームウエアをなんとなくアップデートしてみた。入っていたファームウエアは不明。今後使うかも不明。



ファームウエアはここからダウンロード。
avrdudeはこちらから。

ダウンロードしたファイルを解凍し、usbasp.atmega8.2011-05-28.hex ファイルをavrdudeと同じフォルダにコピーしておいたほうが手間がかかりません。

以下コマンド。comポートは適当に読み替えてください。

D:\avrdude-6.1-mingw32>avrdude.exe -P com5 -b 19200 -c av
risp -p m8 -U flash:w:usbasp.atmega8.2011-05-28.hex:i

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.08s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be per
formed
             To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: reading input file "usbasp.atmega8.2011-05-28.hex"
avrdude.exe: writing flash (4700 bytes):

Writing | ################################################## | 100% 7.80s

avrdude.exe: 4700 bytes of flash written
avrdude.exe: verifying flash memory against usbasp.atmega8.2011-05-28.hex:
avrdude.exe: load data flash data from input file usbasp.atmega8.2011-05-28.hex:

avrdude.exe: input file usbasp.atmega8.2011-05-28.hex contains 4700 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 5.75s

avrdude.exe: verifying ...
avrdude.exe: 4700 bytes of flash verified

avrdude.exe: safemode: Fuses OK (E:FF, H:D9, L:9F)

avrdude.exe done.  Thank you.


D:\avrdude-6.1-mingw32>avrdude.exe -P com5 -b 19200 -c av
risp -p m8 -U hfuse:w:0xC9:m

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: reading input file "0xC9"
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.06s

avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 0xC9:
avrdude.exe: load data hfuse data from input file 0xC9:
avrdude.exe: input file 0xC9 contains 1 bytes
avrdude.exe: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.01s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of hfuse verified

avrdude.exe: safemode: Fuses OK (E:FF, H:C9, L:9F)

avrdude.exe done.  Thank you.


D:\avrdude-6.1-mingw32>

特にエラーが出ていなければ書き換えできているはず。

以下参考にさせていただいたサイトです。
http://eleclog.quitsq.com/2013/03/arduinoispusbasp-b.html


…モニタ欲しいね(´・ω・`)

[PR] WQHD モニター
とりあえずジャンパ線飛ばしてテスト。
ArduinoからATMEGA328Pは外してあります。
ブートローダーライター

この状態で、ブートローダー書き込み済みのATMEGA328Pをゼロプレッシャーソケットに差し込んで、普通にスケッチを書き込む手順でICに書き込めるのを確認。容量を気にするほどのスケッチじゃなければ、書き込みが早いので少し便利です(・∀・)

aitendoさんの互換機調達すれば、これでシリアル書き込みアダプタにもなるはず、という妄想(・ω・)

[PR] 【永久保証付き】Arduino Uno