HK F30A mit mySmartUSB (nicht light! / MKII von myAVR) flashen > kein Ton

#1
Moin Moin!

Heute sind die Regler und der Flashing-Aufsatz von HK endlich gekommen. Entsprechend habe ich das Tool in den MKII (der hier) gesteckt und nach etwas propieren heraus bekommen, dass ich als Programmierer "Atmel AppNote AVR911 AVROSP (avr911)" (COM2) nehmen muss. Der STK500v2 wirft einen TimeOut und lt. myAVR ist das MKII für das 911 kompatibel. Beim Controller habe ich "Atmel 8 based brushless ESC + enable bootloader" selektiert. Als FW habe ich die BS_NFET gewählt und das Ding gestartet.

Anschließend Servotester ran, einfacher Motor ran - absolut nichts. Kein Ton gar nichts.

Mach ich was falsch oder muss ich einen anderen Programmer nehmen? Hätte noch einen Arduino UNO hier liegen und den Turnigy USB Linker (aber das ist ja erst später möglich, so wie ich es verstanden habe).

Beim Update stand folgendes im Log (bei den Fuses steht was von failed, aber ganz unten eben successful...):

Code:
Firmware aus Repository flashen.

E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.exe -C E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.conf -p m8 -P COM2 -c avr911 -B 8 -e -U lfuse:r:E:\KKmulticopter Flash Tool V0.70\tmp\/lfuse.hex:r -U hfuse:r:E:\KKmulticopter Flash Tool V0.70\tmp\/hfuse.hex:r 

Connecting to programmer: .
Found programmer: Id = "AVR ISP"; type = S
    Software Version = 2.5; Hardware Version = 2.0
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
    Device code: 0x01
    Device code: 0x02
    Device code: 0x03
    Device code: 0x04
    Device code: 0x05
    Device code: 0x06
    Device code: 0x07
    Device code: 0x08
    Device code: 0x09
    Device code: 0x0a
    Device code: 0x0b
    Device code: 0x0c
    Device code: 0x0d
    Device code: 0x0e
    Device code: 0x0f
    Device code: 0x10
    Device code: 0x11
    Device code: 0x12
    Device code: 0x13
    Device code: 0x14
    Device code: 0x15
    Device code: 0x16
    Device code: 0x17
    Device code: 0x18
    Device code: 0x19
    Device code: 0x1a
    Device code: 0x1b
    Device code: 0x1c
    Device code: 0x1d
    Device code: 0x1e
    Device code: 0x1f
    Device code: 0x20
    Device code: 0x21
    Device code: 0x22
    Device code: 0x23
    Device code: 0x24
    Device code: 0x25
    Device code: 0x26
    Device code: 0x27
    Device code: 0x28
    Device code: 0x29
    Device code: 0x2a
    Device code: 0x2b
    Device code: 0x2c
    Device code: 0x2d
    Device code: 0x2e
    Device code: 0x2f
    Device code: 0x30
    Device code: 0x31
    Device code: 0x32
    Device code: 0x33
    Device code: 0x34
    Device code: 0x35
    Device code: 0x36
    Device code: 0x37
    Device code: 0x38
    Device code: 0x39
    Device code: 0x3a
    Device code: 0x3b
    Device code: 0x3c
    Device code: 0x3d
    Device code: 0x3e
    Device code: 0x3f
    Device code: 0x40
    Device code: 0x41
    Device code: 0x42
    Device code: 0x43
    Device code: 0x44
    Device code: 0x45
    Device code: 0x46
    Device code: 0x47
    Device code: 0x48
    Device code: 0x49
    Device code: 0x4a
    Device code: 0x4b
    Device code: 0x4c
    Device code: 0x4d
    Device code: 0x4e
    Device code: 0x4f
    Device code: 0x50
    Device code: 0x51
    Device code: 0x52
    Device code: 0x53
    Device code: 0x54
    Device code: 0x55
    Device code: 0x56
    Device code: 0x57
    Device code: 0x58
    Device code: 0x59
    Device code: 0x5a
    Device code: 0x5b
    Device code: 0x5c
    Device code: 0x5d
    Device code: 0x5e
    Device code: 0x5f
    Device code: 0x60
    Device code: 0x61
    Device code: 0x62
    Device code: 0x63
    Device code: 0x64
    Device code: 0x65
    Device code: 0x66
    Device code: 0x67
    Device code: 0x68
    Device code: 0x69
    Device code: 0x6a
    Device code: 0x6b
    Device code: 0x6c
    Device code: 0x6d
    Device code: 0x6e
    Device code: 0x6f
    Device code: 0x70
    Device code: 0x71
    Device code: 0x72
    Device code: 0x73
    Device code: 0x74
    Device code: 0x75
    Device code: 0x76
    Device code: 0x77
    Device code: 0x78
    Device code: 0x79
    Device code: 0x7a
    Device code: 0x7b
    Device code: 0x7c
    Device code: 0x7d
    Device code: 0x7e
    Device code: 0x7f

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

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: erasing chip
avrdude.exe: reading lfuse memory:

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

avrdude.exe: writing output file "E:\KKmulticopter Flash Tool V0.70\tmp\/lfuse.hex"
avrdude.exe: reading hfuse memory:

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

avrdude.exe: writing output file "E:\KKmulticopter Flash Tool V0.70\tmp\/hfuse.hex"

avrdude.exe done.  Thank you.


E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.exe -C E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.conf -p m8 -P COM2 -c avr911 -B 8 -e -U lfuse:w:46:m -U hfuse:w:202:m 

Connecting to programmer: .
Found programmer: Id = "AVR ISP"; type = S
    Software Version = 2.5; Hardware Version = 2.0
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
    Device code: 0x01
    Device code: 0x02
    Device code: 0x03
    Device code: 0x04
    Device code: 0x05
    Device code: 0x06
    Device code: 0x07
    Device code: 0x08
    Device code: 0x09
    Device code: 0x0a
    Device code: 0x0b
    Device code: 0x0c
    Device code: 0x0d
    Device code: 0x0e
    Device code: 0x0f
    Device code: 0x10
    Device code: 0x11
    Device code: 0x12
    Device code: 0x13
    Device code: 0x14
    Device code: 0x15
    Device code: 0x16
    Device code: 0x17
    Device code: 0x18
    Device code: 0x19
    Device code: 0x1a
    Device code: 0x1b
    Device code: 0x1c
    Device code: 0x1d
    Device code: 0x1e
    Device code: 0x1f
    Device code: 0x20
    Device code: 0x21
    Device code: 0x22
    Device code: 0x23
    Device code: 0x24
    Device code: 0x25
    Device code: 0x26
    Device code: 0x27
    Device code: 0x28
    Device code: 0x29
    Device code: 0x2a
    Device code: 0x2b
    Device code: 0x2c
    Device code: 0x2d
    Device code: 0x2e
    Device code: 0x2f
    Device code: 0x30
    Device code: 0x31
    Device code: 0x32
    Device code: 0x33
    Device code: 0x34
    Device code: 0x35
    Device code: 0x36
    Device code: 0x37
    Device code: 0x38
    Device code: 0x39
    Device code: 0x3a
    Device code: 0x3b
    Device code: 0x3c
    Device code: 0x3d
    Device code: 0x3e
    Device code: 0x3f
    Device code: 0x40
    Device code: 0x41
    Device code: 0x42
    Device code: 0x43
    Device code: 0x44
    Device code: 0x45
    Device code: 0x46
    Device code: 0x47
    Device code: 0x48
    Device code: 0x49
    Device code: 0x4a
    Device code: 0x4b
    Device code: 0x4c
    Device code: 0x4d
    Device code: 0x4e
    Device code: 0x4f
    Device code: 0x50
    Device code: 0x51
    Device code: 0x52
    Device code: 0x53
    Device code: 0x54
    Device code: 0x55
    Device code: 0x56
    Device code: 0x57
    Device code: 0x58
    Device code: 0x59
    Device code: 0x5a
    Device code: 0x5b
    Device code: 0x5c
    Device code: 0x5d
    Device code: 0x5e
    Device code: 0x5f
    Device code: 0x60
    Device code: 0x61
    Device code: 0x62
    Device code: 0x63
    Device code: 0x64
    Device code: 0x65
    Device code: 0x66
    Device code: 0x67
    Device code: 0x68
    Device code: 0x69
    Device code: 0x6a
    Device code: 0x6b
    Device code: 0x6c
    Device code: 0x6d
    Device code: 0x6e
    Device code: 0x6f
    Device code: 0x70
    Device code: 0x71
    Device code: 0x72
    Device code: 0x73
    Device code: 0x74
    Device code: 0x75
    Device code: 0x76
    Device code: 0x77
    Device code: 0x78
    Device code: 0x79
    Device code: 0x7a
    Device code: 0x7b
    Device code: 0x7c
    Device code: 0x7d
    Device code: 0x7e
    Device code: 0x7f

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

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: erasing chip
avrdude.exe: reading input file "46"
avrdude.exe: writing lfuse (1 bytes):

Writing |  ***failed;  
################################################## | 100% 0.00s

avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 46:
avrdude.exe: load data lfuse data from input file 46:
avrdude.exe: input file 46 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 "202"
avrdude.exe: writing hfuse (1 bytes):

Writing |  ***failed;  
################################################## | 100% 0.00s

avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 202:
avrdude.exe: load data hfuse data from input file 202:
avrdude.exe: input file 202 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.

Firmware Datei wird geschrieben.: E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex

E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.exe -C E:\KKmulticopter Flash Tool V0.70\lib\avrdude\windows\avrdude.conf -p m8 -P COM2 -c avr911 -B 8 -e -U flash:w:E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex:i 

Connecting to programmer: .
Found programmer: Id = "AVR ISP"; type = S
    Software Version = 2.5; Hardware Version = 2.0
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=512 bytes.

Programmer supports the following devices:
    Device code: 0x01
    Device code: 0x02
    Device code: 0x03
    Device code: 0x04
    Device code: 0x05
    Device code: 0x06
    Device code: 0x07
    Device code: 0x08
    Device code: 0x09
    Device code: 0x0a
    Device code: 0x0b
    Device code: 0x0c
    Device code: 0x0d
    Device code: 0x0e
    Device code: 0x0f
    Device code: 0x10
    Device code: 0x11
    Device code: 0x12
    Device code: 0x13
    Device code: 0x14
    Device code: 0x15
    Device code: 0x16
    Device code: 0x17
    Device code: 0x18
    Device code: 0x19
    Device code: 0x1a
    Device code: 0x1b
    Device code: 0x1c
    Device code: 0x1d
    Device code: 0x1e
    Device code: 0x1f
    Device code: 0x20
    Device code: 0x21
    Device code: 0x22
    Device code: 0x23
    Device code: 0x24
    Device code: 0x25
    Device code: 0x26
    Device code: 0x27
    Device code: 0x28
    Device code: 0x29
    Device code: 0x2a
    Device code: 0x2b
    Device code: 0x2c
    Device code: 0x2d
    Device code: 0x2e
    Device code: 0x2f
    Device code: 0x30
    Device code: 0x31
    Device code: 0x32
    Device code: 0x33
    Device code: 0x34
    Device code: 0x35
    Device code: 0x36
    Device code: 0x37
    Device code: 0x38
    Device code: 0x39
    Device code: 0x3a
    Device code: 0x3b
    Device code: 0x3c
    Device code: 0x3d
    Device code: 0x3e
    Device code: 0x3f
    Device code: 0x40
    Device code: 0x41
    Device code: 0x42
    Device code: 0x43
    Device code: 0x44
    Device code: 0x45
    Device code: 0x46
    Device code: 0x47
    Device code: 0x48
    Device code: 0x49
    Device code: 0x4a
    Device code: 0x4b
    Device code: 0x4c
    Device code: 0x4d
    Device code: 0x4e
    Device code: 0x4f
    Device code: 0x50
    Device code: 0x51
    Device code: 0x52
    Device code: 0x53
    Device code: 0x54
    Device code: 0x55
    Device code: 0x56
    Device code: 0x57
    Device code: 0x58
    Device code: 0x59
    Device code: 0x5a
    Device code: 0x5b
    Device code: 0x5c
    Device code: 0x5d
    Device code: 0x5e
    Device code: 0x5f
    Device code: 0x60
    Device code: 0x61
    Device code: 0x62
    Device code: 0x63
    Device code: 0x64
    Device code: 0x65
    Device code: 0x66
    Device code: 0x67
    Device code: 0x68
    Device code: 0x69
    Device code: 0x6a
    Device code: 0x6b
    Device code: 0x6c
    Device code: 0x6d
    Device code: 0x6e
    Device code: 0x6f
    Device code: 0x70
    Device code: 0x71
    Device code: 0x72
    Device code: 0x73
    Device code: 0x74
    Device code: 0x75
    Device code: 0x76
    Device code: 0x77
    Device code: 0x78
    Device code: 0x79
    Device code: 0x7a
    Device code: 0x7b
    Device code: 0x7c
    Device code: 0x7d
    Device code: 0x7e
    Device code: 0x7f

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

Reading | ################################################## | 100% 0.05s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: erasing chip
avrdude.exe: reading input file "E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex"
avrdude.exe: writing flash (8192 bytes):

Writing | ################################################## | 100% 3.77s

avrdude.exe: 8192 bytes of flash written
avrdude.exe: verifying flash memory against E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex:
avrdude.exe: load data flash data from input file E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex:
avrdude.exe: input file E:\KKmulticopter Flash Tool V0.70\tmp\bs_nfet.hex contains 8192 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 2.03s

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

avrdude.exe done.  Thank you.

Flashing of firmware was successfull.
 
#2
Ich hab meine F30A auch mit der Konfiguration versucht zu flashen. Habe es aber dann aufgegeben und das Hexfile anschließend mit dem myAVR Tool geflasht ;-) Dann funktioniert alles auf Anhieb!
Nicht vergessen: Das Lower Nibble der Highfuse auf a setzen.

lg
Phips
 

lazyzero

... zu viel geflashdingst
#3
Writing | ***failed;
################################################## | 100% 0.00s

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

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

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of hfuse verified
interessant das da steht, dass das schreiben der fuses faild wäre aber beim verify das richtige raus kommt.
Du kannst den mysmartusb auch mit der Software von wieder auf stk500v2 zurückstellen, per default wird er eigentlich als solcher geliefert.

Gruß Christian
 
#4
Also wenn ich das myAVR ProgTool starte, wähle ich meinen ISP und setze den Controller auf "Atmega8", und starte das Auslesen. Wenn ich das Auslese-Ergebnis mit dem Textfeld der bs_nfet.hex vergleiche, sind da ganz klar unterschiede. Ich mag auch nicht ausschließen, dass ich den Regler wegen der fehlenden Erfahrung bei der Hardware kaputt gemacht habe. Nichts destro trotz, noch ein paar Versuche, bevor der Nächste ausgepackt wird:

Was muss ich (wie von philips) bei den ganzen BITs für Werte einstellen und anhaken, damit ich dann später auch den Bootloader nutzen kann? Ein Screenshot anbei. (Über "Bearbeiten" öffnet sich das Linke Fenster, wobei mit der Auswahl werden nur die Hex-Werte generiert): myprogtool.jpg

VG
 
#5
Wenn du etwas auslesen kannst, kann noch nicht so viel kapputt sein ;-)

Hast du die hex schon über das Tool geflasht?

Wegen dem Bootloader:
Im linken Fenster klicke auf "Hardware auslesen".
Dann siehst du dir die High Fuse an (im Bild 0xD9) und merkst dir den Wert (bei mir zum Beispiel immer 0xC9).
Im Hauptfenster entfernst du alle Hackerl und aktivierst nur "Fuses brennen" und "High". Dort trägst du den vorher gemerkten Wert ein (ohne 0x) und ersetzt den zweiten Wert mit einem A. (Aus D9 würde somit DA werden. Bei mir wird dem entsprechend immer ein CA daraus.)

Lg
Phips
 
#6
Also, über (rechts) Auslesen kann ich sowohl den Flash, als auch den EEPROM auslesen. Im linken Fenster klappt das Auslesen der Fuses über den Button "Hardware auslesen" nicht. :-/ Es kommt nur eine Fehlermeldung... Auch mit einem neuen ESC gehts nicht.

Wie in ein zwei anderer Themen und Google, habe ich die LOW 0x2E und HIGH auf 0xCA gesetzt und geflasht. Der Motor läuft nun. Kann ich die Fuses so lassen, oder muss ich die nochmal ändern?

Chip ist ein ATmega8...

T-Motor MN3110-26 mit F-30A ESC ohne SimonK
im Vergleich zu
T-Motor MN3110-26 mit F-30A ESC und SimonK

VG
 
Zuletzt bearbeitet:
#7
KLEINES UPDATE: Mittlerweile konnte ich die Regler auslesen und bekam die Fuse-Werte: LOW 0x2E sowie HIGH 0xC9. Der High-Wert wurde auf 0xCA abgeändert und alle Regler neu geflasht. Video und Text oben sind auch aktualisiert. ;-)
 

siffup

Neuer Benutzer
#8
Die Antwort kommt spät, aber ich habe die Regler erst gekauft und bin auf das gleie Problem gestoßen.
Scheint an der Kompatibilität des myAVRUSB zu dem KKtool zu liegen. Nachdem ich das Hex file über myAVRprog tool geflashed habe, läuft der Regler top.
 
#9
Das KK-Tool verwendet den AVRDude per Kommandozeile. Ich denke mal, hier gibt es einfach ein Kompatibilitätsproblem. However. Lad' dir die Hex via KK-Tool und flashe sie mit dem AVR - es ist ja nur minimal aufwendiger... Das spätere Update mit dem USB-Linker geht einwandfrei. ;-)

VG
 
FPV1

Banggood

Oben Unten