Forum: Mikrocontroller und Digitale Elektronik Problem beim Upload der Firmware, AT45, STK500


von guest (Gast)


Lesenswert?

Einen guten Abend allerseits,

ich habe seit heute das Problem dass ich weder mit PlatformIO noch der 
Arduino IDE irgendeinen Sketch auf meine Attiny45 hochladen kann.
Was ich bis jetzt probiert habe:
- Anderer uC ausprobiert
- Mehrmals die Verkabelung gecheckt
- 10 Pin ISP Kabel getauscht und durchgeklingelt

Das ganze Setup hat schonmal geklappt, lag jetzt nur ein halbes Jahr in 
der Schublade ;)

Der Output von AVR-Dude ist:
1
 avrdude: Version 6.3-20190619
2
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
3
         Copyright (c) 2007-2014 Joerg Wunsch
4
5
         System wide configuration file is "C:\Users\freyb\Documents\ArduinoData\packages\ATTinyCore\hardware\avr\1.4.1/avrdude.conf"
6
7
         Using Port                    : COM5
8
         Using Programmer              : stk500
9
         Setting bit clk period        : 5.0
10
         AVR Part                      : ATtiny45
11
         Chip Erase delay              : 400000 us
12
         PAGEL                         : P00
13
         BS2                           : P00
14
         RESET disposition             : possible i/o
15
         RETRY pulse                   : SCK
16
         serial program mode           : yes
17
         parallel program mode         : yes
18
         Timeout                       : 200
19
         StabDelay                     : 100
20
         CmdexeDelay                   : 25
21
         SyncLoops                     : 32
22
         ByteDelay                     : 0
23
         PollIndex                     : 3
24
         PollValue                     : 0x53
25
         Memory Detail                 :
26
27
                                  Block Poll               Page                       Polled
28
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
29
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
30
           eeprom        65    12     4    0 no        256    4      0  4000  4500 0xff 0xff
31
           flash         65    12    32    0 yes      4096   64     64 30000 30000 0xff 0xff
32
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
33
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
34
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
35
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
36
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
37
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00
38
39
         Programmer Type : STK500V2
40
         Description     : Atmel STK500
41
         Programmer Model: STK500
42
         Hardware Version: 10
43
         Firmware Version Master : 2.10
44
avrdude: stk500v2_command(): command failed
45
avrdude: stk500v2_getparm(): failed to get parameter 0x9a
46
         Topcard         : Unknown
47
         Vtarget         : 2.3 V
48
         SCK period      : 8.7 us
49
         Varef           : 2.3 V
50
         Oscillator      : Off
51
52
avrdude: AVR device initialized and ready to accept instructions
53
54
Reading | ################################################## | 100% 0.00s
55
56
avrdude: Device signature = 0x1e9206 (probably t45)
57
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
58
         To disable this feature, specify the -D option.
59
avrdude: erasing chip
60
avrdude: reading input file "C:\Users\freyb\AppData\Local\Temp\arduino_build_374827/Blink.ino.hex"
61
avrdude: writing flash (636 bytes):
62
63
Writing | avrdude: stk500v2_command(): warning: Sampling of the RDY/nBSY pin timed out
64
avrdude: stk500v2_paged_write: write command failed
65
################################################## | 100% 1.30s
66
67
avrdude: 636 bytes of flash written
68
avrdude: verifying flash memory against C:\Users\freyb\AppData\Local\Temp\arduino_build_374827/Blink.ino.hex:
69
avrdude: load data flash data from input file C:\Users\freyb\AppData\Local\Temp\arduino_build_374827/Blink.ino.hex:
70
avrdude: input file C:\Users\freyb\AppData\Local\Temp\arduino_build_374827/Blink.ino.hex contains 636 bytes
71
avrdude: reading on-chip flash data:
72
73
Reading | ########################################Beim Hochladen des Sketches ist ein Fehler aufgetreten
74
########## | 100% 0.25s
75
76
avrdude: verifying ...
77
avrdude: verification error, first mismatch at byte 0x0000
78
         0xff != 0x1d
79
avrdude: verification error; content mismatch
80
81
avrdude done.  Thank you.

Vielen Dank schonmal für eure Hilfe.

von Alexander S. (alesi)


Lesenswert?

Hallo,

suchen mit duckduckgo nach "avrdude: stk500v2_command(): warning: 
Sampling of the RDY/nBSY pin timed out" liefert diesen Treffer:
http://fab.cba.mit.edu/classes/863.14/people/juliana_cherston/input.html
Auf der Seite steht "While programming, I got an error: "warning: 
Sampling of the RDY/nBSY pin timed out avrdude: stk500v2_paged_write: 
write command failed" Some helpful folks in my lab helped to debug, and 
we determined that my VCC pin on my input device isn't connected! (you 
can see this on my board). The board had appeared to work because 
internal protection diodes were supplying some power. I dumped some 
solder on the board to connect my VCC pin to a power trace and now 
things programmed smoothly."

Vielleicht hilft das. Es kommen noch weitere Treffer, die ich nicht 
angeschaut habe.

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.