Struggling with avrdude via ArduinoISP to talk to my other attiny.
The closest I came up to now is using the proper avrdude.conf file:
-C C:\Users\Micha\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2/avrdude.conf
I spyed how "Burn Bootloader" to an attiny85 (no bootloader) connects.
And I took the attiny85 from the digispark-clone environment put it to a breadboard and connected
UNO attiny85 pin
-----+-------------
5V 8 Vcc
GND 4 GND
13 7 PB2 (SCK)
12 6 PB1 (MISO)
11 5 PB0 (MOSI)
10 1 PB5 (RESET)
and a capacitor on the Uno between GND and RESET.
I understand the -n option does nothing but talking ISP to the target (getting/checking the signature and fuses)
C:\Users\Micha>AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino18\bin\avrdude.exe -C AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\avrdude.conf -v -p attiny85 -c stk500v1 -P COM3 -b 19200 -n
avrdude.exe: Version 6.3-20201216
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\avrdude.conf"
Using Port : COM3
Using Programmer : stk500v1
Overriding Baud Rate : 19200
Setting bit clk period : 5.0
AVR Part : ATtiny85
Chip Erase delay : 400000 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 12 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 12 32 0 yes 8192 64 128 30000 30000 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 2 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.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude.exe: Device signature = 0x1e930b (probably t85)
avrdude.exe: safemode: lfuse reads as E2
avrdude.exe: safemode: hfuse reads as D7
avrdude.exe: safemode: efuse reads as FF
avrdude.exe: safemode: lfuse reads as E2
avrdude.exe: safemode: hfuse reads as D7
avrdude.exe: safemode: efuse reads as FF
avrdude.exe: safemode: Fuses OK (E:FF, H:D7, L:E2)
avrdude.exe done. Thank you.
Probably the initial "Burn Bootloader" to an attiny85 (no bootloader) modified the fuses a bit.
Later:
Changed fuses to your (@GolamMostafa) suggestion
-Ulfuse:w:0xE1:m -Uhfuse:w:0xDD:m -Uefuse:w:0xFE:m
Updated flash to the micronucleus bootloader ( extracted and renamed from your zip file in #15
-Uflash:w:Documents\Arduino\DigistumpDrivers\DigisparkBootloader.hex:i
The programmer option -c avrisp , as it was suggested for the ArduinoISP Sketch somewhere in the internet, works as well by the way.
Then the attiny85 could be returned to the digispark clone and got a sketch via normal Arduino IDE upload.
Done
BTW: my "working" digispark clone has a pullup resistor of only 1k5 between PB3 (ADC3) and Vcc, and a 3V Zener Diode to GND. Probably for the USB connection. This disturbs its usage as analogRead pin. Not sure if I want to get rid of that digispark-clone board, now as I'm close to ISP programming 