I have code written for attiny85 digispark boards and I have been able to program them successfully using the USB micronucleus method with Arduino IDE 1.8.19.
What I want to do now is program the same code using AVR ISP method, and blow away the bootloader. Reason is that I want the program to run when first powered up, not after seconds (10?) of the bootloader running looking to see if I want to program the chip again.
I've read that I can use the AVR ISP method, so I programmed an Arduino Nano and wired it up to the Digispark. Problem is that I cannot get the Arduino IDE to allow me to program the Digispark using the AVR ISP method, even though I've chosen it. Whenever I try to upload to the device, I get a prompt to "Please plug in the device (will time out in 60 seconds)".
Reading other posts, some folks have used the Adafruit Trinket as the device instead of Digispark. Problem is my code uses the DigiKeyboard library for button checking. I could change the code but would rather just figure out how to program a Digispark, as an attiny85, using the AVR ISP method.
What am I missing that I cannot get the AVR ISP mode to work?
Here's a screenshot showing that I am choosing the programmer as AVR ISP.
Hi @AlpineJoe. You should double check all your wiring. The "Device signature = 0x000000" happens when there is no communication at all between the programmer and the target board.
Wiring looks correct, verified it a few times. I am hooking up to the P0 - P5 pads on the Digispark board and not to the bare chip. Maybe one of the signals is shared with something else on the board and goofing up communications.
Maybe if you power it via its usb connector, by plugging it in a pc the USB conflicts. I use to power them from the Arduino directly, to be sure only the required connections are made.
Solved - I tied the attiny85 reset to the Nano reset instead of pin 10. Once I corrected that, the nano programmed with the AVR ISP programmed the attiny85 on the Digispark board.