Problem z atmeg8 w AVRStudio

To forum jest dla wszystkich pasjonatów mikrokontrolerów AVR Atmela. Wymiana doświadczeń i pomoc dla początkujących w pisaniu programów zarówno w C, Asemblerze jak i BASCOM. Zapraszam znawców tematu, aby pomogli wszystkim początkującym!
ODPOWIEDZ
fiddle
-
Posty: 3
Rejestracja: 18 lis 2006, 20:56
Lokalizacja: Sieradz
Kontakt:

Problem z atmeg8 w AVRStudio

Post autor: fiddle » 09 mar 2009, 12:00

Cześć,
Zaczynam się dopiero uczyć także bez bicia... :sad:
Posiadam zestaw uruchomieniowy ZL2AVR oraz programator AVR taki jak tutaj
http://www.mikrosterowniki.pl/dokumenta ... _instr.pdf

Próbuje zgłębić tajniki asemblera, posiadam AVRStudio programator ustawiłem tak jak w instrukcji do programatora.
Mój programik wygląda tak
http://www.kmd2004.nasze.pl/Programowan ... wanie1.JPG
jak biorę żeby się skompilował to wszystko jest ok ale jak chce się połączyć z Atmegą to żaden z dostępnych programatorów nie chce się połączyć także zapisuje to przez avrdude
http://www.kmd2004.nasze.pl/Programowan ... wanie2.JPG
który także sobie nie bardzo radzi z tym ...
Doradźcie coś jak uruchomi tak prostą funkcję :sad:

To jest całość co wywala mi avrdude

Kod: Zaznacz cały

avrdude.exe: error: programm enable: target doesn't answer. 1 
avrdude.exe: initialization failed, rc=-1
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes!  Invalid device signature.
avrdude.exe: Expected signature for ATMEGA8 is 1E 93 07
avrdude.exe: reading flash memory:

Reading | ################################################## | 100% 2.17s

avrdude.exe: writing output file "C:\Documents and Settings\fiddle\Pulpit\AVRStudio Moje programy\qqqq.hex"
avrdude.exe: output file C:\Documents and Settings\fiddle\Pulpit\AVRStudio Moje programy\qqqq.hex auto detected as Intel Hex
avrdude.exe: reading input file "0x00"
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

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

Reading | ################################################## | 100% 0.02s

avrdude.exe: writing output file "hfuse.dat"
avrdude.exe: reading input file "0x00"
avrdude.exe: writing lock (1 bytes):

Writing | ################################################## | 100% 0.00s

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

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

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lock verified
"efuse" memory type not defined for part "ATMEGA8"

avrdude.exe done.  Thank you.

snow
Użytkownik
Posty: 794
Rejestracja: 16 sty 2007, 3:44
Lokalizacja: lubelskie
Kontakt:

Post autor: snow » 09 mar 2009, 18:37

Mogą być następujące powody:

1. Uszkodzony kabel między zestawem a programatorem
2. Uszkodzony programator
3. Błędy na płytce
4. Uszkodzony procesor
5. Złe parametry w avrdude
6. Niezasilony procesor
7. Brak sygnału zegarowego (kwarc, RC) w przypadku gdy jest ustawiony procesor na pracę z zewnętrznym taktowaniem.
8. Wyłączona funkcja pinu reset
9. Wyłączone programowanie po SPI

punkty 7 8 9 dotyczą przypadku gdy zmieniałeś fusebity, avrdude zgłosiło ci że nie widzi procesora.

fiddle
-
Posty: 3
Rejestracja: 18 lis 2006, 20:56
Lokalizacja: Sieradz
Kontakt:

Post autor: fiddle » 09 mar 2009, 19:02

Stawiam raczej na 5, 7 lub 8 punkt chodź punkt 8 jest bardziej prawdopodobny bo reset nie działa mi ;/ bo reszta jest raczej ok bo wcześniej w bascom chodziło wszystko jak trzeba

snow
Użytkownik
Posty: 794
Rejestracja: 16 sty 2007, 3:44
Lokalizacja: lubelskie
Kontakt:

Post autor: snow » 09 mar 2009, 19:03

Może masz starszą wersję avrdude która nie obsługuje usbasp( jak wnioskuję z opisu producenta taki właśnie masz programator). Znajdź plik avrdude.conf i zobacz czy jest tam usbasp
Ostatnio zmieniony 09 mar 2009, 19:06 przez snow, łącznie zmieniany 1 raz.

fiddle
-
Posty: 3
Rejestracja: 18 lis 2006, 20:56
Lokalizacja: Sieradz
Kontakt:

Post autor: fiddle » 09 mar 2009, 19:05

dokładnie jest to programator usbasp a wersja avrdude to v0.2.0 jak otworze plik który mówisz w notatniku to są tam krzaki ale jak wezmę uruchomię funkcję szukaj to znajduje wyrazy o nazwie usbasp czyli wychodzi że coś o usbasp wie avrdude

ODPOWIEDZ