MegaPirateNG / FlashTool

Firmware flashing tool
GNU General Public License v2.0
15 stars 14 forks source link

Error when downloading using Flashtool... #15

Closed n7ki closed 10 years ago

n7ki commented 10 years ago

message box says "An error occurred with avrdude: avrdude crashed somehow" and the following error text was generated:

C:/Users/JOHN/Downloads/flashtool1_0rc2/external/avrdude.exe -CC:/Users/JOHN/Downloads/flashtool1_0rc2/external/avrdude.conf -patmega2560 -cwiring -PCOM8 -b115200 -D -Uflash:w:C:/Users/JOHN/Downloads/flashtool1_0rc2/firmwares/a95414e92a086f453491f824af53644e_e6f8c5a98b5d87968bcd97909bfb7a1d4e11b22a.hex:i avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s9:36 AM 2/20/2014

avrdude.exe: Device signature = 0x1e9801 avrdude.exe: reading input file "C:/Users/JOHN/Downloads/flashtool1_0rc2/firmwares/a95414e92a086f453491f824af53644e_e6f8c5a98b5d87968bcd97909bfb7a1d4e11b22a.hex" avrdude.exe: writing flash (204236 bytes):

Writing | ####################################

Any help will be appreciated. thanks, John Bower

smurfy commented 10 years ago

Does the error always occur? I also noticed that avrdude sometimes crashes, but after a retry it usually works.

n7ki commented 10 years ago

Yes. happens every time I use Flashtool. Stops at 74%.

n7ki commented 10 years ago

Decided to delete the Flashtool app and re-download it. Everything compiled and downloaded the fc board with no problems. I didn't get any errors or anything during the first download so I don't know what happened. Thanks, John Bower

smurfy commented 10 years ago

Hm its quite strange, the flashtool verifies a hash of the downloaded hex file to not flash an invalid file, so that should not be the problem.

Not really sure what happend here either :D

Based on the log files avrdude.exe simple stopped flashing and exits. (hence the error message) But why it does this i do not know.

If this happens again, try reconnecting the FC or do a reboot. (my windows sometimes bugs and only detect the FC after a reboot)

I also close this issue, if it happens again feel free to reopen it or create another one.