So I built up the board now, but I have trouble programming it.
I'm using an Arduino Uno as programmer with a capacitor to disable the auto-reset.
I can programm other devices with this setup fine.
But when programming my board i always get a avrdude verification error.
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM4
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATtiny167
Chip Erase delay : 1000 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 10 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 10 64 0 yes 16384 128 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 : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9487 (probably t167)
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: reading input file "C:\Users\Tim\AppData\Local\Temp\arduino_build_637450/v1.ino.hex"
avrdude: writing flash (1114 bytes):
Writing | ################################################## | 100% 2.07s
avrdude: 1114 bytes of flash written
avrdude: verifying flash memory against C:\Users\Tim\AppData\Local\Temp\arduino_build_637450/v1.ino.hex:
avrdude: load data flash data from input file C:\Users\Tim\AppData\Local\Temp\arduino_build_637450/v1.ino.hex:
avrdude: input file C:\Users\Tim\AppData\Local\Temp\arduino_build_637450/v1.ino.hex contains 1114 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 12.82s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x007b
0x3d != 0x02
avrdude: verification error; content mismatch
The mismatched byte is always at a different position.
I suspected the solder joints, but they seem fine to me.
Did I fry my ATtiny due to the shared programming pin?
When the programm gets uploaded, the pin gets set as output and driven low or high but still has the shared connection to the programmer, could this cause a problem?