arduino等のプログラムデバッグ用にJTAGICE3を購入しました。
Atmel Studio 6.2 SP1 をインストールして、このJTAGICE3を使おうとしたところ、Upgradeしろとメッセージが出てきたので、"Upgrade"ボタンをクリックしましたが、結果は写真の通り"failed"です。
原因がなかなかわからなかったのですが、ようやく見つけました。
これって、バグじゃねーの!
ま、この通り実行すればOKと言うことで、メモを残します。
参考URL:
http://atmel.force.com/support/articles/en_US/FAQ/JTAGICE3?q=JTAGICE3&l=en_US&fs=Search&pn=1
上記URLに下記の表記がありました。
-------------------ここから参照
There is an issue in Atmel Studio 6.2 SP1 when upgrading JTAGICE3 from major version 1 or 2 to major version 3. The first firmware upgrade attempt will only put the JTAGICE3 into boot mode, and not do an actual upgrade. Running a second firmware upgrade without toggling power to the tool should work. However, just clicking retry after the failed attempt won't work. You have to start the programming dialog or debug session over again and then Atmel Studio will find the JTAGICE3 in boot mode and ask if you want to upgrade. Then the upgrade should work (as long as the JTAGICE3 power is _not _ toggled).
The simplest workaround is to use atfw found in
From a command prompt (inside Atmel Studio, go to Tools|Command Prompt) run"atfw.exe -t jtagice3 -a "
atfw -t jtagice3 -a "C:\Program Files (x86)\Atmel\Atmel Studio 6.2\tools\jtagice3\jtagice3_fw.zip"
The first attempt will fail, but when running the command again without toggling power on the JTAGICE3 it should pass.
Note that as soon as the JTAGICE3 has been upgraded to a firmware with major version 3 or higher, firmware upgrade should work on first attempt also from Atmel Studio 6.2 SP1.
-------------------ここまで
ということで、この通り実行してみたときの、Command prompt のLOGが下記のとおりです。
Command prompt
c:\Program Files (x86)\Atmel\Atmel Studio 6.2\atbackend>atfw -t jtagice3 -a "c:\
program files (x86)\atmel\atmel studio 6.2\tools\jtagice3\jtagice3_fw.zip"
Found jtagice3:J30200028721
GenericError thrown during firmware upgrade
Read from USB device endpoint 131 failed: Invalid pipe number (0x20000002).
c:\Program Files (x86)\Atmel\Atmel Studio 6.2\atbackend>atfw -t jtagice3 -a "c:\
program files (x86)\atmel\atmel studio 6.2\tools\jtagice3\jtagice3_fw.zip"
Found jtagice3:J30200028721
Upgrading MCU: [==========]
Successful upgrade
c:\Program Files (x86)\Atmel\Atmel Studio 6.2\atbackend>
以上、エラーが出ても、もう一度同じコマンドを実行しろとは・・・。