KKmulticopter Flash Tool - Page 32 - RC Groups
View Poll Results: Which programmers are you using
AVRisp mkII 14 23.73%
usbasp 34 57.63%
mySmartUSB light 4 6.78%
USBtiny 8 13.56%
other 2 3.39%
Multiple Choice Poll. Voters: 59. You may not vote on this poll

Thread Tools
Jul 21, 2012, 08:48 AM
Registered User
LittleG's Avatar

Error message appears when flashing HK multicopter board


Need help flashing the multicopter board.

Below is what is displayed when I attempted to flash the HobbyKing Multi-Rotor Control Board V2.1 (Atmega168PA) with Tricopter V2.5XXcontrol KR by Minsoo Kim:


Flash the firmware from repository.

C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.exe -C C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.conf -p m168p -P usb -c usbasp -B 8 -e -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m

avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude.exe: Device signature = 0x1e940b
avrdude.exe: erasing chip
avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file "0xe2"
avrdude.exe: writing lfuse (1 bytes):

Writing | ################################################## | 100% -0.00s

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

Reading | ################################################## | 100% -0.00s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file "0xdd"
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% -0.00s

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

Reading | ################################################## | 100% -0.00s

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

avrdude.exe done. Thank you.

Flashing firmware from file.: C:\Users\iM\Desktop\kkflashtool\tmp\XXcontrol_KR_T riCopter_v2_9.hex

C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.exe -C C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.conf -p m168p -P usb -c usbasp -B 8 -e -U flash:w:C:\Users\iM\Desktop\kkflashtool\tmp\XXcont rol_KR_TriCopter_v2_9.hex:i
avrdude.exe: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

avrdude.exe done. Thank you.

Error during writing flash.
Last edited by LittleG; Jul 21, 2012 at 09:07 AM.
Sign up now
to remove ads between posts
Jul 21, 2012, 10:04 AM
Master of Flash
LazyZero's Avatar
Just retry seem that the USBasp shut down after writing fuses. Haven't seen this before.

Christian
Jul 21, 2012, 11:48 AM
Registered User
LittleG's Avatar
Quote:
Originally Posted by LazyZero
Just retry seem that the USBasp shut down after writing fuses. Haven't seen this before.

Christian
I did it again, and got this with error message (Error during writing flash.) at the end. See below.

Flash the firmware file.

C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.exe -C C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.conf -p m168p -P usb -c usbasp -B 8 -e -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m

avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x1e940b
avrdude.exe: erasing chip
avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file "0xe2"
avrdude.exe: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

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

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file "0xdd"
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

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

Reading | ################################################## | 100% 0.00s

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

avrdude.exe done. Thank you.

Flashing firmware from file.: C:\Users\iM\Desktop\kkflashtool\tmp\XXcontrol_KR_T riCopter_v2_9.hex

C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.exe -C C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.conf -p m168p -P usb -c usbasp -B 8 -e -U flash:w:C:\Users\iM\Desktop\kkflashtool\tmp\XXcont rol_KR_TriCopter_v2_9.hex:i
avrdude.exe: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'

avrdude.exe done. Thank you.

Error during writing flash.
Jul 21, 2012, 11:54 AM
Registered User
LittleG's Avatar
Do you think I have a bad USBasp device? I have installed the required drivers for it.
Jul 21, 2012, 11:59 AM
Registered User
LittleG's Avatar
I tried it again and got this:

Flash the firmware file.

C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.exe -C C:\Users\iM\Desktop\kkflashtool\lib\avrdude\window s\avrdude.conf -p m168p -P usb -c usbasp -B 8 -e -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m

avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: usbasp_transmit: usb_control_msg: sending control message failed, win error: A device attached to the system is not functioning.


avrdude.exe: error: programm enable: target doesn't answer. 0
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude.exe done. Thank you.

Error during setting the fuses.
Flashing of firmware aborted.
Jul 22, 2012, 03:59 AM
Master of Flash
LazyZero's Avatar
Look like your usbasp is not working properly. You only have attached the board or a there any other components connected to the board?

Best Christian
Jul 22, 2012, 04:59 AM
Quad lover.
chaosdestro0's Avatar
I have a usbasp but it's at 3.3V, will it work when flashing?
I guess I could change it to 5v but I am not sure how to do that.
Jul 22, 2012, 05:28 AM
Master of Flash
LazyZero's Avatar
That could work, but I am not sure. Can you switch off the 3.3v totally? Then you could attach a bec with 5v during flashing

Christian
Jul 22, 2012, 05:45 AM
Quad lover.
chaosdestro0's Avatar
Quote:
Originally Posted by LazyZero
That could work, but I am not sure. Can you switch off the 3.3v totally? Then you could attach a bec with 5v during flashing

Christian
Ahh I just made a little thing up on a perfboard as my isp programmer came with a 10 pin cable, I just won't attach vcc and then power it from a BEC.
Jul 22, 2012, 05:55 AM
Master of Flash
LazyZero's Avatar
That's the alternative.
Jul 25, 2012, 05:38 PM
Registered User
LittleG's Avatar
Quote:
Originally Posted by LazyZero
Look like your usbasp is not working properly. You only have attached the board or a there any other components connected to the board?

Best Christian
No other components were connected to the board...
Jul 26, 2012, 12:23 AM
Master of Flash
LazyZero's Avatar
Then you should try a new USBasp, had similar issues with mine USBasp the last days after I switched to a new one everything was like expected.
Jul 28, 2012, 10:57 PM
Registered User
Movie Guy's Avatar
I am trying to flash some Turnigy Plush 25 escs. Using a USBTiny which seems to be working alright but when it gets to the point where it starts to write, the program hangs and nothing happens until I lose contact with the esc and get an error message. Using version .62 on Mac OS 10.6.8. I noticed that there was a patch for windows on your webpage but nothing for Mac. A copy and paste of the message where it freezes or stops doing anything:

Flash the firmware from repository.
Flashing firmware from file.: /Users/xxxx/Library/Preferences/kkMulticopterFlashTool/tgy.hex

/Applications/kkMulticopter Flash Tool.app/Contents/Resources/Java/lib/avrdude/mac/avrdude -C /Applications/kkMulticopter Flash Tool.app/Contents/Resources/Java/lib/avrdude/mac/avrdude.conf -p m8 -P usb -c usbtiny -B 8 -e -U flash:w:/Users/xxxxx/Library/Preferences/kkMulticopterFlashTool/tgy.hex:i

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9307
avrdude: erasing chip
avrdude: reading input file "/Users/xxxxx/Library/Preferences/kkMulticopterFlashTool/tgy.hex"
avrdude: writing flash (8192 bytes):

Writing |

You have any thoughts here?

Edit: I have tried .33, .53.2, .62 and .63 beta 8.
.33 works to flash an Atmel 328P chip that I have but all the other versions freeze at the "Writing" point. Sadly .33 does not seem to allow ESC flashing so I am currently stuck.

Edit #2 Also tried it on another Mac using 10.7.4 and issue is the same. Is there a patch or file I need to get the USBTIny to work with the later versions?
Last edited by Movie Guy; Jul 30, 2012 at 12:16 PM.
Jul 30, 2012, 03:22 AM
Registered User
Borneoben's Avatar
Hi Lazy

I'm having some issues running your flashtool

When i try to run the serial command to launch the program i get this message.

"java is not recognized as an internal or external command, operable program or batch file"

Even though i have Java installed?

What am i doing wrong?

Many thanks

Ben
Jul 30, 2012, 03:16 PM
Mmmmmmm!
WiseDuck's Avatar
So I'm trying to flash my ESCs using my 'USBtiny/Sparkfun programmer. But as you know it does not work with version 0.62, only 0.33.

Unfortunately, 0.33 has no option for flashing ESCs so I am stuck. What can I do?