avrdude.exe らしき物は出来たが、この段階での適当なプログラマがない。
Ft232RL Bitbang writer を使えるようにすればいいが、、、
そこで、ちょっと強引だが avrdude-2010-0602のsrcフォルダのソースをavrdude-5.10フォルダに
コピーしてmake、エラーは出ず新しい avrdude.exeができた。
ここで avrdude.conf に programa diecimilaの定義をコピーした。
>avrdude -p m644p -P ft0 -c dicecimila -B 115200 -e -U flash:w:scopeclock.hex と入れreturn。
案の定、エラー、avrdude.confの
programmer
id = "diecimila";
desc = "FT232R Synchronous BitBang";
type = ft245r;
miso = 3; # CTS X3(1)
sck = 5; # DSR X3(2)
mosi = 6; # DCD X3(3)
reset = 7; # RI X3(4)
#rdyled = 2; # RTS
#pgmled = 2; # RTS
;
type = ft245r ここの f で引っかかるみたいだ。?
ft245rを有効にするには、単にft245r.cを追加するだけでは
有効になりません。ft245rというキーワードをavrdudeに
追加する必要があります。すzさんのパッチを適用すれば、
その処理を追加できます。
なお、すzさんが、再度 avrdude-serjtag04m.zip をリリース
してくれましたので、再評価していただければと思います。
http://nmj.sumomo.ne.jp/suz-avr/serjtag/avrdude-serjtag04m.zip
です。
ぜひ、使い込んでみてください。異常がなければ、ソース
公開を予定しています。
http://nmj.sumomo.ne.jp/suz-avr/serjtag/avrdude-serjtag04n.zip
私の生成したバイナリは動作しませんでしたが、ラジオ
少年さんも試していただきたいです。
これが動作すると、LED表示は意のままです。
avrdude-serjtag野下にあるbinaryフォルダにコピーしてやってみました下記エラーになり動きません。
GUI画面でprogrammerにdiecimilaが出てきません。それでコマンドラインからやってみました。
I:\avrdude-serjtag\binary>avrdude -p m644p -P ft0 -c diecimila -B 1000000 -E res
et -e -U flash:w:scopeclock.hex
avrdude: BitBang OK
avrdude: pin assign miso 3 sck 5 mosi 6 reset 7
avrdude: led pin assign rdy -1 pgm 2
avrdude: drain OK
ft245r: bitclk 460800 -> ft baud 230400
avrdude: ft245r_program_enable: failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
しかし、Fuse Readもプログラムライトもエラーです。
エラーMSG.
avrdude.exe: Version 5.10, compiled on Dec 19 2010 at 22:24:28
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "I:\avrdude-serjtag\binary\avrdude.conf"
Using Port : ft0
Using Programmer : diecimila
Setting bit clk period : 1000000.0
avrdude.exe: BitBang OK
avrdude.exe: pin assign miso 3 sck 5 mosi 6 reset 7
avrdude.exe: led pin assign rdy -1 pgm 2
avrdude.exe: drain OK
AVR Part : ATMEGA644P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 128 0 no 2048 8 0 9000 9000 0xff 0xff
flash 33 6 256 0 yes 65536 256 256 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : ft245r
Description : FT232R Synchronous BitBang
ft245r: bitclk 460800 -> ft baud 230400
avrdude.exe: ft245r_program_enable: failed
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude.exe done. Thank you.
すzさんも、動作しないかもしれない、との
ことでしたが、この結果を伝えます。
お手数をおかけしました。