Strona 1 z 1

Mam oproblem z programowaniem Attiny13A w driverze

: czwartek 30 sty 2020, 22:16
autor: ptja
Postanowiłem pobawić się w przeprogramowanie drivera z AMC i Attiny13A.
Mam klon USBASP, klips, połączyłem VCC, GND, SCK, MISO, MOSI, RESET.

Po włączeniu USBASP do gniazdka mam:

Kod: Zaznacz cały

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x1e9007

avrdude.exe: safemode: Fuses OK (H:FF, E:FD, L:79)

avrdude.exe done.  Thank you.
Ale już kolejne wywołanie kończy się błędem odczytu sygnatury:

Kod: Zaznacz cały

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x000102
avrdude.exe: Expected signature for ATtiny13 is 1E 90 07
             Double check chip, or use -F to override this check.

avrdude.exe done.  Thank you.
Zachowanie jest powtarzalne: wystarczy wyjąć i włożyć USBASP z USB i znów jeden odczyt się udaje.

Gdzie tkwi błąd?

W trybie "verbose" pokazuje takie szczegóły:

Kod: Zaznacz cały

avrdude.exe: Version 6.0.1, compiled on Oct 17 2013 at 21:37:20
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "C:\Program Files (x86)\MHV AVR Tools\bin\avrdude.conf"

             Using Port                    : usb
             Using Programmer              : usbasp
avrdude.exe&#58; seen device from vendor ->www.fischl.de<-
avrdude.exe&#58; seen product ->USBasp<-
             AVR Part                      &#58; ATtiny13
             Chip Erase delay              &#58; 4000 us
             PAGEL                         &#58; P00
             BS2                           &#58; P00
             RESET disposition             &#58; dedicated
             RETRY pulse                   &#58; SCK
             serial program mode           &#58; yes
             parallel program mode         &#58; yes
             Timeout                       &#58; 200
             StabDelay                     &#58; 100
             CmdexeDelay                   &#58; 25
             SyncLoops                     &#58; 32
             ByteDelay                     &#58; 0
             PollIndex                     &#58; 3
             PollValue                     &#58; 0x53
             Memory Detail                 &#58;

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65     5     4    0 no         64    4      0  4000  4000 0xff 0xff
               flash         65     6    32    0 yes      1024   32     32  4500  4500 0xff 0xff
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
               lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
               calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00
               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

             Programmer Type &#58; usbasp
             Description     &#58; USBasp, http&#58;//www.fischl.de/usbasp/

avrdude.exe&#58; auto set sck period &#40;because given equals null&#41;
avrdude.exe&#58; warning&#58; cannot set sck period. please check for usbasp firmware update.
avrdude.exe&#58; AVR device initialized and ready to accept instructions

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

avrdude.exe&#58; Device signature = 0x1e9007
avrdude.exe&#58; safemode&#58; lfuse reads as 79
avrdude.exe&#58; safemode&#58; hfuse reads as FD

avrdude.exe&#58; safemode&#58; lfuse reads as 79
avrdude.exe&#58; safemode&#58; hfuse reads as FD
avrdude.exe&#58; safemode&#58; Fuses OK &#40;H&#58;FF, E&#58;FD, L&#58;79&#41;

avrdude.exe done.  Thank you.