Hallo liebe Community,
ich bin ein absoluter Mikrocontroller n00b.
Zum einstig habe ich mir das ATmega8 Experimentierboard von Ulrich Radig
besorgt
(http://www.ulrichradig.de/home/index.php/avr/atmega8-experimentierboard).
Als Programmer eben den DIAMEX USB ISP
(http://www.reichelt.de/Programmer-Entwicklungstools/DIAMEX-USB-ISP/index.html?;ACTION=3;LA=444;GROUP=A38;GROUPID=2969;ARTICLE=110344;START=0;SORT=preis;OFFSET=16;SID=11TkDaQH8AAAIAAFAjGJY951aef29b6de9d0ce9a835714955b4ac).
So wie ich im Forum gelesen habe war das wohl schon nicht die beste
Idee. Aber trotzdem sollte das Ding ja gehen.
Jetzt zu meinem Problem. Ich will ATtiny2313 mit der USB-Firmware
beschreiben wie es bei Ulrich Radig beschrieben wird
(http://www.ulrichradig.de/home/index.php/avr/atmega8-experimentierboard/beginner-tutorial-teil-1).
Mein Programmer hat den COM Port 2 und arbeitet mit dem Protokoll
stk500v was ich im Makefile eingestellt habe. Doch leider meldet
Programmer's Notepad:
1 | > "make.exe" program
|
2 | avrdude -p attiny2313 -P com2 -c stk500v2 -U flash:w:main.hex
|
3 |
|
4 | avrdude: stk500v2_command(): command failed
|
5 | avrdude: stk500_2_ReceiveMessage(): timeout
|
6 | avrdude: stk500v2_program_enable(): bad STK600 connection status: Unknown (0x64)
|
7 | avrdude: initialization failed, rc=-1
|
8 | Double check connections and try again, or use -F to override
|
9 | this check.
|
10 |
|
11 |
|
12 | avrdude done. Thank you.
|
13 |
|
14 | make.exe: *** [program] Error 1
|
15 |
|
16 | > Process Exit Code: 2
|
17 | > Time Taken: 00:15
|
In AVR Studio 4 hab ich mal versucht über Tools > Program AVR > Connect
mit dem Mikrocontroller zu reden. Doch da kommt immer folgende Meldung:
1 | A problem occurred when executing the command. Make sure that you are using the correct
|
2 | programming method. Current mode is ISP. See the command output for more info.
|
3 |
|
4 | The troubleshooting section in the help system contains more information on what may
|
5 | have caused the problems. To open the help system, click the Help button below.
|
6 |
|
7 | Quick Tips: Verify that the device is placed in the correct socket, and that the ISP
|
8 | cable is properly connected. Check that the ISP programming frequency specified on the
|
9 | 'Main' page is well below 1/4 of the clock frequency of the device. Extra precaution
|
10 | should be made when using the CKDIV fuse and/or Clock Prescaler Register (CLKPR) on
|
11 | parts supporting this.
|
Unten in der Log steht dann immer:
1 | Setting mode and device parameters.. OK!
|
2 | Entering programming mode.. FAILED!
|
3 | Leaving programming mode.. OK!
|
Als Stromversorgung hab ich es über USB. Und ein Netzteil mit 7,5V und
9V versucht. Bei AVR Studio hab ich auch verschiedene Frequenzen
ausprobiert.
Momentan weiß ich nicht mehr was ich noch probieren soll und kann. Ich
hoffe es ist nur ein kleines n00b Prob bei dem im ihr mir schnell helfen
könnt und ich bald richtig in die Welt der Mikrocontroller einsteigen
kann :)
Liebe Grüße Benjamin