So I bought an ATtiny85 20pu, and have been doing a lot of research as to burning bootloader, setting clock speeds, ect but I am at a total loss. First off this is my setup: tiny core, Mega 2650 as isp, triple checked pins, red LED on error, green on heartbeat, and yellow on programming. The green pulses fine, but the yellow pulses too when not programming. The yellow goes out when trying to program, is this normal.
Now on to the main problem, I know that Tools> burn bootloader doesn't actually burn a bootloader, it sets the clock fuses, I want to do this at 8Mhz so I select Board> ATtiny85 @8Mhz and hit burn bootloader and this is one of two errors I get:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x00
avrdude: verification error; content mismatch
and this is the other:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: Expected signature for ATtiny85 is 1E 93 0B
Double check chip, or use -F to override this check.
I know the default is 1Mhz so I select that as the board and try to upload the blink example and get the same error as the first except 0x1a instead of 0xff.
Any help is appreciated as I am a complete NOOB when it comes to this stuff.
Thank you for the quick response, but you just blew my mind out. Any tutorial on how to use it? I saw where you had one hooked up to an uno, I have a mega so are there things I need to change, I don't have an sd reader,....... AHHH who am I kidding, im totally lost. Thanks for any help.
After you figure it out. You may want to consider using a AVR USBtinyISP instead. You can make a programming adapter or include a ICSP on your ATtiny85 breadboard.
AVR USBtinyISP are available on eBay from China with a blue plastic case for about $14, which includes shipping to USA.
jonrobertd:
Thank you for the quick response, but you just blew my mind out. Any tutorial on how to use it? I saw where you had one hooked up to an uno, I have a mega so are there things I need to change, I don't have an sd reader,....... AHHH who am I kidding, im totally lost. Thanks for any help.
That particular sketch works without the SD card connected. You can verify the chip is OK, and change the fuses.
Yes there are resistors with the LEDs. And for wiring I followed the Arduino as ISP sketch following the pinout for the mega. As far as following a guide, I have tried the MIT, and a few others with no success.
Nick, do I upload your sketch to my mega, if so how do I see the commands, serial monitor or something.
Ok so I have everything wired up (D4-7) run the sketch, open serial monitor and watch, it hangs on attempting to enter programming mode. Where does D9 need to connect to attiny to see if that helps?