Forum: Mikrocontroller und Digitale Elektronik Problem mit Atmega88 aus CC2-Elektor-AVR-Projekt


von Tobias B. (oddle)


Lesenswert?

Hallo,

ich bin ganz neu hier und hatte bis jetzt auch keine Erfahrungen mit 
Mikrocontrollern.

Zum Einstieg hab ich mir einen Usbprog 
(http://www.embedded-projects.net) und das Elektor-CC2-AVR-Projekt mit 
einem Atmega88-controller angeschafft.

leider bekomme ich ihn nicht geflasht.
Hab zuvor versucht, die fuses zu setzen (high-fuse:0xDD, low-fuse:0xFF).

Zum flashen und zum setzen der Fuses benutze ich avrdude. (Linuxuser 
:-))



avrdude -c avrispv2 -P usb -p m88 -B 6 -F -v

avrdude: Version 5.5, compiled on Nov 10 2007 at 00:07:28
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/tobias/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port            : usb
         Using Programmer      : avrispv2
         Setting bit clk period: 6.0
avrdude: usbdev_open(): Found AVRISP mk2 Clone, serno: 0000A00128255
         AVR Part              : ATMEGA88
         Chip Erase delay      : 9000 us
         PAGEL                 : PD7
         BS2                   : PC2
         RESET disposition     : dedicated
         RETRY pulse           : SCK
         serial program mode   : yes
         parallel program mode : yes
         Timeout               : 200
         StabDelay             : 100
         CmdexeDelay           : 25
         SyncLoops             : 32
         ByteDelay             : 0
         PollIndex             : 3
         PollValue             : 0x53
         Memory Detail         :

                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           eeprom        65     5     4    0 no        512    4      0 
3600  3600 0xff 0xff
           flash         65     6    64    0 yes      8192   64    128 
4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0 
0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0 
0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP V2
         Programmer Model: AVRISP mkII
         Hardware Version: 0
         Firmware Version: 1.06
         Vtarget         : 5.0 V
         SCK period      : 8.00 us

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0xffffff
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA88 is 1E 93 0A
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: efuse reads as 7

avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: efuse reads as 7
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Das mit den Fuses macht mich dann allerdings etwas stutzig.
Kann mir jemand helfen?

von VooChee (Gast)


Lesenswert?

Gleiches Problem hier.
Egal was ich mache, der Programmer leist nur Einsen (ff)...:


:~/temp-00/avr# avrdude -c avrispv2 -P usb -p m88 -vvvv

avrdude: Version 5.2, compiled on Oct 19 2006 at 18:06:55
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port            : usb
         Using Programmer      : avrispv2
avrdude: usbdev_open(): Found AVRISP mk2 (CC2), serno: 0000A00128255
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P 
[50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
         AVR Part              : ATMEGA88
         Chip Erase delay      : 9000 us
         PAGEL                 : PD7
         BS2                   : PC2
         RESET disposition     : dedicated
         RETRY pulse           : SCK
         serial program mode   : yes
         parallel program mode : yes
         Timeout               : 200
         StabDelay             : 100
         CmdexeDelay           : 25
         SyncLoops             : 32
         ByteDelay             : 0
         PollIndex             : 3
         PollValue             : 0x53
         Memory Detail         :

                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           eeprom        65     5     4    0 no        512    4      0 
3600  3600 0xff 0xff
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash         65     6    64    0 yes      8192   64    128 
4500  4500 0xff 0xff
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           efuse          0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           lock           0     0     0    0 no          1    0      0 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           calibration    0     0     0    0 no          1    0      0 
0     0 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           signature      0     0     0    0 no          3    0      0 
0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP V2
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [00]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [06]
         Hardware Version: 0
         Firmware Version: 1.06
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00] 2 [32]
         Vtarget         : 5.0 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [07]
         SCK period      : 10.37 us

avrdude: Sent: . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . 
[ac] S [53] . [f6] K [4b]
avrdude: Recv: . [10] . [00]
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 
0.00savrdude: Sent: . [1d] . [04] . [04] . [00] 0 [30] . [00] . [00] . 
[00]
avrdude: Recv: . [1d] . [00] . [00] . [00] . [00] . [ff] . [00]
avrdude: Sent: . [1d] . [04] . [04] . [00] 0 [30] . [00] . [01] . [00]
avrdude: Recv: . [1d] . [00] . [00] . [00] . [00] . [ff] . [00]
Reading | #################                                  | 33% 
0.00savrdude: Sent: . [1d] . [04] . [04] . [00] 0 [30] . [00] . [02] . 
[00]
avrdude: Recv: . [1d] . [00] . [00] . [00] . [00] . [ff] . [00]
Reading | ################################################## | 100% 
0.01s

avrdude: Device signature = 0xffffff
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: Sent: . [11] . [01] . [01]
avrdude: Recv: . [11] . [00]

von Benedikt S. (Firma: embedded projects GmbH) (flopper)


Lesenswert?

habt ihr die Geschwindigkeit gedrosselt?

avrdude -c avrispv2 -P usb -p m88 -B 10 sollte passen bis die Fuses 
richtig eingestellt sind

von Michael G. (linuxgeek) Benutzerseite


Lesenswert?

Hi Tobi,

Ich glaub dass die fuses und die Signatur teilweise falsch ausgelesen 
werden liegt an avrdude, das passiert mir mit dem STK500 auch gerne mal 
und die Signature liest er eigentlich immer falsch aus. Da er aber beim 
Programmieren die Fuses nicht schreibt kannst Du das im Prinzip 
ignorieren. Das Programmieren scheint ja geklappt zu haben.

lg,
Michael

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.