Forum: Mikrocontroller und Digitale Elektronik Attiny85V mit Arduino Mega ISP-Shield flashen, funktioniert nicht richtig.


von Jonas H. (fujitsu313)


Lesenswert?

Hey Leute,

Ich baue zur Zeit die TV-B-Gone v1.2 Fernbedienung von LadyAda nach.
Jetzt bin ich gerade dabei den Attiny85V zu flashen, leider funktioniert 
das nicht richtig. Wenn ich den Code ausführe bekomme ich mal die eine 
Fehlermeldung mal die andere.


Falls noch jemand irgendwas wissen will, einfach fragen...

Gruß Jonas

Hier sind die Meldungen:

C:\Users\Jonas>avrdude -P com7 -p t85 -c avrisp -b 19200 -v -F -U 
flash:w:tvbgon
e.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0 
4000  45
00 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128 
4500  45
00 0xff 0xff
           signature      0     0     0    0 no          3    0      0 
0
 0 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          2    0      0 
0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

         To disable this feature, specify the -D option.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done.  Thank you.




Hier die andere Fehlermeldung:


C:\Users\Jonas>avrdude -P com7 -p t85 -c avrisp -b 19200 -v -F -U 
flash:w:tvbgon
e.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0 
4000  45
00 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128 
4500  45
00 0xff 0xff
           signature      0     0     0    0 no          3    0      0 
0
 0 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          2    0      0 
0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.13s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: reading input file "tvbgone.hex"
avrdude: error opening tvbgone.hex: No such file or directory
avrdude: input file tvbgone.hex auto detected as invalid format
avrdude: can't open input file tvbgone.hex: No such file or directory
avrdude: write to file 'tvbgone.hex' failed

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

von Jonas H. (fujitsu313)


Lesenswert?

Wirklich keiner ne Idee? Verdammt, warum geht das nicht...

von holger (Gast)


Lesenswert?

Versuch mal -B 10

von Jonas H. (fujitsu313)


Lesenswert?

Dann kommt wieder das selbe raus...:


C:\Users\Jonas>avrdude -P com7 -p t85 -c avrisp -b 19200 -v -F -B 10 -U 
flash:w:
tvbgone.hex

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 10.0
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0 
4000  45
00 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128 
4500  45
00 0xff 0xff
           signature      0     0     0    0 no          3    0      0 
0
 0 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          2    0      0 
0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.13s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: reading input file "tvbgone.hex"
avrdude: error opening tvbgone.hex: No such file or directory
avrdude: input file tvbgone.hex auto detected as invalid format
avrdude: can't open input file tvbgone.hex: No such file or directory
avrdude: write to file 'tvbgone.hex' failed

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

von holger (Gast)


Lesenswert?

Nimm mal AVRStudio und stell die ISP Frequenz auf 125kHz.

Das hier sieht komisch aus:

         SCK period      : 0.1 us

Das sind 10MHz ISP Frequenz;)

von Jonas H. (fujitsu313)


Lesenswert?

Mh, Ich bin mir nicht sicher ob das funktioniert. Ich benutze ja das 
MegaISP-Shield für den Arduino. Laut der Website des Shields 
(http://drug123.org.ua/mega-isp-shield/) geht das nicht. Ist zwar mein 
erster Chip den ich flashe, aber mir kommen diese Zeilen komisch vor:

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file
for part
ATtiny85
avrdude: reading input file "tvbgone.hex"
avrdude: error opening tvbgone.hex: No such file or directory
avrdude: input file tvbgone.hex auto detected as invalid format
avrdude: can't open input file tvbgone.hex: No such file or directory
avrdude: write to file 'tvbgone.hex' failed

Vielleicht stimmt ja was mit der Firmware für den TvBGone v 1.2 von 
LadyAda nicht.

von Jonas H. (fujitsu313)


Lesenswert?

Ohje, jetzt sahs so gut aus, aber leider hats nicht geklappt, vllt hilft 
dir das was:


C:\Users\Jonas>avrdude -P com7 -p t85 -c avrisp -b19200 -v -B10 -F -U 
flash:w:C:
\firmwarev1.2\tvbgone.hex:a

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 10.0
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0 
4000  45
00 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128 
4500  45
00 0xff 0xff
           signature      0     0     0    0 no          3    0      0 
0
 0 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          2    0      0 
0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.13s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny85 is 1E 93 0B
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: reading input file "C:\firmwarev1.2\tvbgone.hex"
avrdude: input file C:\firmwarev1.2\tvbgone.hex auto detected as Intel 
Hex
avrdude: writing flash (8164 bytes):

Writing | ################################################## | 100% 
13.38s

avrdude: 8164 bytes of flash written
avrdude: verifying flash memory against C:\firmwarev1.2\tvbgone.hex:
avrdude: load data flash data from input file 
C:\firmwarev1.2\tvbgone.hex:
avrdude: input file C:\firmwarev1.2\tvbgone.hex auto detected as Intel 
Hex
avrdude: input file C:\firmwarev1.2\tvbgone.hex contains 8164 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 
14.66s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x1a != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: Verify error - unable to read efuse properly. 
Programmer may
not be reliable.
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

von Floh (Gast)


Lesenswert?

Der ekennt dir deinen uC nicht, da die Signatur immer 0 ist.
Verbindungen mal checken.
Eventuell mal genau beschreiben, welchen Progger du einsetzt, dann 
können dir auch Leute Tipps geben, die so ein Ding nicht daheim haben.
:-)

von holger (Gast)


Lesenswert?

Bei mir sieht das mit AVR ISP MKII so aus:

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
         Hardware Version: 1
         Firmware Version: 1.12
         Vtarget         : 5.0 V
         SCK period      : 8.00 us (125kHz)

Bei dir:

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

Was sehen wir da? Vtarget = 0V ist schon mal Scheiße.
Ohne Saft kann man auch nicht programmieren.
SCK period steht immer noch auf 10MHz.

von Jonas H. (fujitsu313)


Lesenswert?

Ich benutze den Progger(http://drug123.org.ua/mega-isp-shield/), mit dem 
Arduino Duemilanove und dem Sketch(http://code.google.com/p/mega-isp/) 
dazu.

von Floh (Gast)


Lesenswert?

Sicher, dass der tiny85V vom Progger unterstützt wird?
Schon mal mit dem Ding nen anderen uC geproggt?

von Jonas H. (fujitsu313)


Lesenswert?

Nee hab noch keinen anderen µc geproggt, ist wie gesagt mein erster..

von holger (Gast)


Lesenswert?

>Software that were tested and are NOT compatible
>
>    * AvrStudio 4

Dann schmeiss das Teil mal in die Tonne.

>List of tested MCUs
>
>    * ATTiny13
>    * ATTiny2313
>    * ATMega8
>    * ATMega168

Ich sehe keinen ATiny85:(

von Jonas H. (fujitsu313)


Lesenswert?

Mhh, das hab ich auch schon gesehen, aber irgendwie muss es doch möglich 
sein..

von Jonas H. (fujitsu313)


Lesenswert?

So neue Idee, ich verusch das ganze mit dem hier:
http://www.geocities.jp/arduino_diecimila/bootloader/bitbang_w_ide_en.html
Ganz unten scheint eien plausible Lösung zu sein, ich weiß aber ned 
genau, was ich alles dafür an Software brauch.

von Jonas H. (fujitsu313)


Lesenswert?

Ich hab nochmal gegoogelt...Es hat shcon jemand geschafft den Attiny85 
über den Arduino zu flashen, also müsste ich das doch auch hinbekommen..

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=639591

von Jonas H. (fujitsu313)


Lesenswert?

Wuhu ich glaube es hat geklappt. Sieht das so aus wenns geklappt hat?


C:\Users\Jonas>avrdude -p t85 -P com7 -c avrisp -b19200 -v -B10 -F -U 
flash:w:C:
\firmwarev1.2\tvbgone.hex:a

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is 
"C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 10.0
         AVR Part                      : ATtiny85
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         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  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ---
-- ---------
           eeprom        65     6     4    0 no        512    4      0 
4000  45
00 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128 
4500  45
00 0xff 0xff
           signature      0     0     0    0 no          3    0      0 
0
 0 0x00 0x00
           lock           0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           efuse          0     0     0    0 no          1    0      0 
9000  90
00 0x00 0x00
           calibration    0     0     0    0 no          2    0      0 
0
 0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.13s

avrdude: Device signature = 0x1e930b
avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be 
performed

         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: please define PAGEL and BS2 signals in the configuration file 
for part
ATtiny85
avrdude: reading input file "C:\firmwarev1.2\tvbgone.hex"
avrdude: input file C:\firmwarev1.2\tvbgone.hex auto detected as Intel 
Hex
avrdude: writing flash (8164 bytes):

Writing | ################################################## | 100% 
13.35s

avrdude: 8164 bytes of flash written
avrdude: verifying flash memory against C:\firmwarev1.2\tvbgone.hex:
avrdude: load data flash data from input file 
C:\firmwarev1.2\tvbgone.hex:
avrdude: input file C:\firmwarev1.2\tvbgone.hex auto detected as Intel 
Hex
avrdude: input file C:\firmwarev1.2\tvbgone.hex contains 8164 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 
14.68s

avrdude: verifying ...
avrdude: 8164 bytes of flash verified

avrdude: safemode: lfuse reads as 62
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

von DJGummikuh (Gast)


Lesenswert?

Hallo! Ich versuche hier gerade, auf den gleichen weg einen Atmega32 zu 
beflashen.Blöderweise bekomm ich das nicht hin. im gegensatz zu dir bin 
ich aber nicht mal in der lage, den code zurückzulesen bzw die fuses 
zuverlässig auszulesen - ich bekomm immer 0x00 zurück. Kannst du über 
den arduISP auch fuses setzen?

von Johannes F. (djgummikuh)


Lesenswert?

hey ich noch mal (jetzt mit account)
was genau hast du getan, damit das bei dir jetzt klappt? wie ich sehe 
hattest du ursprünglich auch das problem, dass du nur 0 und 0x00 für 
alles mögliche zurückbekommen hast - was hast du geändert, um die 
richtigen werte zu bekommen?

Ich habe zusätzlich noch das Problem, dass mein Chip auf externen takt 
gefused ist, reicht als taktgeber ein pwm auf 128 (~1kHz Frequenz) an 
XTAL1 aus?

von Fujitsu313 (Gast)


Lesenswert?

Was willst du denn auf den ATmega32 brennen? Den Arduino Bootloader oder 
irgendeine HEX-File?  Du könntest es mit folgender Anleitung versuchen:
http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Dort wird beschrieben wie man auf einen Atmega den Arduino Bootloader 
flasht.
Ich eigentlich nur am Code rumprobiert bis es funktioniert hat.

DJGummikuh schrieb:
> Kannst du über
> den arduISP auch fuses setzen?

Jop das geht auch. Der Arduino ist wie ein ISP-Programmer.

von Johannes F. (djgummikuh)


Lesenswert?

Ich habs heute hinbekommen spring

das problem war meine takt versorgung - der Atmega32 war auf externen 
takt eingestellt. Ich habe das dann damit gelöst, dass ich ein kabel bei 
meinem Atmega32 an XTAL1 angeschlossen habe und dann von hand gegen den 
XTAL2 pin des arduino gehalten habe - dadurch hat der arduino takt auch 
den atmega32 taktvorgegeben, wodurch ich den atmega32 dann auf internen 
taktgeber umfusen konnte. Coole sache :-)

Trotzdem danke für die Antwort.

von Fujitsu313 (Gast)


Lesenswert?

Kein Problem. Freut mich, dass es geht.

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.