logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Avrdude odczytuje inną sygnautrę uC

Nie_zajety_login 25 Lut 2009 22:47 1945 4
REKLAMA
  • #1 6205113
    Nie_zajety_login
    Poziom 10  
    Dziwne rzeczy się dzieją z programatorem pod isp i avrdude, w sumie nie pierwszy spotykam sie z takim problemem, ale co dziwne raz działa dobrze. W konsoli wpisuję komendę:
    
    bash-3.1$ avrdude -p m8 -c usbasp -v -F
    


    Dostaję taki wynik:
    
    avrdude: Version 5.5, compiled on Feb  4 2009 at 21:17:29
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    
             System wide configuration file is "/usr/local/etc/avrdude.conf"
             User configuration file is "/home/misiup/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port            : /dev/parport0
             Using Programmer      : usbasp
             AVR Part              : ATMEGA8
             Chip Erase delay      : 10000 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         4    20   128    0 no        512    0      0  9000  9000 0xff 0xff
               flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
               lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.03s
    
    avrdude: Device signature = 0x1e9307
    avrdude: safemode: lfuse reads as E4
    avrdude: safemode: hfuse reads as D9
    
    avrdude: safemode: lfuse reads as E4
    avrdude: safemode: hfuse reads as D9
    avrdude: safemode: Fuses OK
    
    avrdude done.  Thank you.
    


    Ale już następne wywołanie tego polecenia daje taki efekt:

    
    avrdude: Version 5.5, compiled on Feb  4 2009 at 21:17:29
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    
             System wide configuration file is "/usr/local/etc/avrdude.conf"
             User configuration file is "/home/misiup/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port            : /dev/parport0
             Using Programmer      : usbasp
             AVR Part              : ATMEGA8
             Chip Erase delay      : 10000 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         4    20   128    0 no        512    0      0  9000  9000 0xff 0xff
               flash         33    10    64    0 yes      8192   64    128  4500  4500 0xff 0x00
               lfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               lock           0     0     0    0 no          1    0      0  2000  2000 0x00 0x00
               calibration    0     0     0    0 no          4    0      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/
    
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.03s
    
    avrdude: Device signature = 0x000102
    avrdude: Expected signature for ATMEGA8 is 1E 93 07
    avrdude: safemode: lfuse reads as 0
    avrdude: safemode: hfuse reads as 0
    avrdude: current erase-rewrite cycle count is -50462977 (if being tracked)
    
    avrdude: safemode: lfuse reads as 0
    avrdude: safemode: hfuse reads as 0
    avrdude: safemode: Fuses OK
    
    avrdude done.  Thank you.
    


    Potrafi poradzić ktoś coś na ten problem? Za każdym razem tak jest - przy podłączeniu jest ok, ale następna jakakolwiek próba komunikacji konczy sie taką informacją :)
  • REKLAMA
  • #2 6205351
    kaktus_c++
    Poziom 18  
    czy to się dzieje z jedną atmegą czy z wieloma różnymi? Bo jeśli z wieloma to może być np coś nie tak z programatorem.
  • REKLAMA
  • #3 6205925
    Nie_zajety_login
    Poziom 10  
    No właśnie z różnymi tak się dzieje. Dzisiaj dostane inny programator i sprawdzę, czy będzie tak samo.
  • REKLAMA
  • #4 6206481
    Dr.Vee
    VIP Zasłużony dla elektroda
    Nie używaj -F bez powodu - po to programator sprawdza sygnaturę procesora żeby mieć pewność, że wszystko działa.

    Na próbę zwiększ opóźnienie, np przez -i 10. Jeśli możesz, to sprawdź z "gołym" procesorem - tj. żeby nic innego nie miał podłączonego do pinów MISO/MOSI/SCK.

    Poza tym w googlach jest trochę wyników dla avrdude signature 0x000102...

    Pozdrawiam,
    Dr.Vee
  • #5 6404205
    Pawel1812
    Poziom 26  
    Witam
    Miałem dziś taki sam problem. Identyczne teksty zwracał AVRDude. Przyczyną było zwarcie linii reset do masy na wtyczce ISP i kilka godzin zmarnowane na znalezienie buga plus wymiana 74HC244 SMD na programatorze ZL2PRG, ale to po świętach. Gdyby programator był bez bufora - nie miałbym teraz gdzie drukarki podłączyć :(
    Zmierz napięcie na linii reset CPU - jeśli jest cały czas zero - to jest właśnie taka przyczyna.
REKLAMA