Forum: Mikrocontroller und Digitale Elektronik Atmega8 keine Konnektivität


von Timok (Gast)


Lesenswert?

Hallo,

habe hier ein Problem, kann meinen Atmega8 auf dem Steckboard weder 
lesen noch beschreiben.

Habe als Programmer einen DIAMEX-AVR (so ein Stick in einem grünen 
Gehäuse), welchen ich mit avrdude und burn-o-mat anspreche (Fedora).

Auf dem stk500 läuft der Atmega ohne Probleme, an den Fuses wurde nichts 
geändert.
Versuche ich als Bsp. die Fuses zu lesen bekomme ich:
1
/usr/bin/avrdude -u -C /etc/avrdude/avrdude.conf -p m8 -P /dev/ttyACM0 -c stk500v2 -v -F -U hfuse:r:/tmp/hfuse8072593043529617363.hex:r -U lfuse:r:/tmp/lfuse4371682960288487916.hex:r 
2
3
avrdude: Version 5.11.1, compiled on Aug  3 2013 at 03:03:44
4
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
5
         Copyright (c) 2007-2009 Joerg Wunsch
6
7
         System wide configuration file is "/etc/avrdude/avrdude.conf"
8
         User configuration file is "/home/timo/.avrduderc"
9
         User configuration file does not exist or is not a regular file, skipping
10
11
         Using Port                    : /dev/ttyACM0
12
         Using Programmer              : stk500v2
13
         AVR Part                      : ATMEGA8
14
         Chip Erase delay              : 10000 us
15
         PAGEL                         : PD7
16
         BS2                           : PC2
17
         RESET disposition             : dedicated
18
         RETRY pulse                   : SCK
19
         serial program mode           : yes
20
         parallel program mode         : yes
21
         Timeout                       : 200
22
         StabDelay                     : 100
23
         CmdexeDelay                   : 25
24
         SyncLoops                     : 32
25
         ByteDelay                     : 0
26
         PollIndex                     : 3
27
         PollValue                     : 0x53
28
         Memory Detail                 :
29
30
                                  Block Poll               Page                       Polled
31
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
32
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
33
           eeprom         4    20   128    0 no        512    4      0  9000  9000 0xff 0xff
34
           flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
35
           lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
36
           hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
37
           lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
38
           calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
39
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
40
41
         Programmer Type : STK500V2
42
         Description     : Atmel STK500 Version 2.x firmware
43
         Programmer Model: AVRISP
44
         Hardware Version: 15
45
         Firmware Version Master : 2.10
46
         Vtarget         : 0.0 V
47
         SCK period      : 141.1 us
48
49
avrdude: stk500v2_command(): command failed
50
avrdude: initialization failed, rc=-1
51
avrdude: AVR device initialized and ready to accept instructions
52
avrdude: Device signature = 0x000000
53
avrdude: Yikes!  Invalid device signature.
54
avrdude: Expected signature for ATMEGA8 is 1E 93 07
55
56
avrdude done.  Thank you.

Der Programmer scheint die 5V für den Atmega zu liefern, habe es aber 
auch mit einer zusätzlichen externen Stromversorgung getestet.

Will vom stk500 weg um auch Atmegas auf der Platine beschreiben zu 
können.


MfG TimoK

von spess53 (Gast)


Lesenswert?

Hi

>Will vom stk500 weg um auch Atmegas auf der Platine beschreiben zu
>können.

Ein (echtes) STK500 kann Controller auf der Platine programmieren. 
Benutze ich schon seit über 10 Jahren.

MfG spess

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.