Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

ATtiny85 - problem z wgraniem programu

$
0
0

No cześć. 

Sprawiłem sobie programator USBasp 2.0 w celach oczywistych. Podpiąłem go do ATtiny85-20PU aby wgrać program korzystając z avrdude i nie ważne, co bym wgrywał - dostaję ten sam błąd: 

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

Kwarc 8 MHz wraz z dwoma kondensatorami 15 pF są wpięte tak, jak na schemacie w dokumentacji ATtiny85 (p. 6.2.6). Dodatkowo jest elektrolit 22 uF między VCC a GND.

Próbowałem programować 3 sztuki ATtiny85 - na każdym jest identyczny błąd. Przy ATmedze 8A oraz 328P wszystko jest w porządku. 

Próbowałem zewrzeć w programatorze zworkę JP3 (Slow SCK) - bez skutku. 

Co robić? 

 

----

Windows 10 x64 | avrdude 6.3 | libusbK 3.0.7.0 | USBasp 2.0 -> link | ATtiny85 -> link

pełny log z avrdude:

C:\Users\root\Desktop>avrdude -p t85 -P usb -c USBasp -v -U flash:w:asdf.hex

avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\root\Desktop\avrdude.conf"

         Using Port                    : usb
         Using Programmer              : USBasp
         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  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65     6    32    0 yes      8192   64    128  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  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp, http://www.fischl.de/usbasp/

avrdude: auto set sck period (because given equals null)
avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e930b (probably t85)
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: auto set sck period (because given equals null)
avrdude: reading input file "asdf.hex"
avrdude: input file asdf.hex auto detected as Intel Hex
avrdude: writing flash (8132 bytes):

Writing | ################################################## | 100% 3.37s

avrdude: 8132 bytes of flash written
avrdude: verifying flash memory against asdf.hex:
avrdude: load data flash data from input file asdf.hex:
avrdude: input file asdf.hex auto detected as Intel Hex
avrdude: input file asdf.hex contains 8132 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 3.17s

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

avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: lfuse changed! Was fe, and is now 0
Would you like this fuse to be changed back? [y/n]
avrdude: safemode: hfuse changed! Was df, and is now 0
Would you like this fuse to be changed back? [y/n]
avrdude: safemode: efuse changed! Was ff, and is now 0
Would you like this fuse to be changed back? [y/n]
avrdude: safemode: Fuses OK (E:FF, H:DF, L:FE)

avrdude done.  Thank you.

 


Viewing all articles
Browse latest Browse all 21942