My code is all correct and i wired it to the bread board correct. Why wont it work?
I keep getting this error code: avrdude: stk500_getsync(): not in sync: resp=0x00
And its a brand new UNO R3 that i bought from Mouser.
What do i do to get my sketch to the attiny84 correctly with no errors?
TheBossCookie:
My code is all correct and i wired it to the bread board correct. Why wont it work?
Since your code and wiring are correct the problem must be that your ATtiny84 is faulty.
ok ill try that
johnwasser:
Since your code and wiring are correct the problem must be that your ATtiny84 is faulty.
I just replaced it with a new one and it still gave me the same error code.
TheBossCookie:
johnwasser:
Since your code and wiring are correct the problem must be that your ATtiny84 is faulty.I just replaced it with a new one and it still gave me the same error code.
That's odd. Perhaps it is the method you used to determine that your code and wiring are perfect that is faulty.
if you wired it up fine...
you must have 2 faulty attiny chips! what the odds on that!
(maybe your wiring / something is wrong?)
well i have my wires hooked up like;
5v to pin 1-Vcc
Ground to pin 14-Ground
Digital pin 10 to pin 4-Reset
Digital pin 11 to pin 7-MOSI
Digital pin 12 to pin 8-MISO
Digital pin 13 to pin 9-SCK
TheBossCookie:
well i have my wires hooked up like;
5v to pin 1-Vcc
Ground to pin 14-Ground
Digital pin 10 to pin 4-Reset
Digital pin 11 to pin 7-MOSI
Digital pin 12 to pin 8-MISO
Digital pin 13 to pin 9-SCK
Did you remember to disable auto-reset on the UNO?
What ATtiny arduino core are you using?
Is this the project you are trying to duplicate? http://www.instructables.com/id/Full-Binary-Clock
johnwasser:
TheBossCookie:
well i have my wires hooked up like;
5v to pin 1-Vcc
Ground to pin 14-Ground
Digital pin 10 to pin 4-Reset
Digital pin 11 to pin 7-MOSI
Digital pin 12 to pin 8-MISO
Digital pin 13 to pin 9-SCKDid you remember to disable auto-reset on the UNO?
What ATtiny arduino core are you using?
Is this the project you are trying to duplicate? http://www.instructables.com/id/Full-Binary-Clock
Auto reset?
atmega328p
and yes
Did you miss any of these steps?
- Upload the ArduinoISP sketch to your UnoR3?
- (for the Uno R3 you do not need to disable auto-reset, Optiboot avoids the reset at different baud rate)
- Load the Binary_Clock sketch.
- Hook up your ISP wires as you indicated.
- Select ATtiny84 (internal 8MHz) board type.
- Select the Arduino as ISP programmer type.
- Burn Bootloader
- Upload Using Programmer
No clock on that clock... +/- .5% accuracy is do-able best case with the internal oscillator. +/- 7 mins 12 sec per day... I could probably make a better sundial... Digitally. Just cast the shadow from the longest one... A mirror helps too...
hiduino:
Did you miss any of these steps?
- Upload the ArduinoISP sketch to your UnoR3?
- (for the Uno R3 you do not need to disable auto-reset, Optiboot avoids the reset at different baud rate)
- Load the Binary_Clock sketch.
- Hook up your ISP wires as you indicated.
- Select ATtiny84 (internal 8MHz) board type.
- Select the Arduino as ISP programmer type.
- Burn Bootloader
- Upload Using Programmer
Error while burning boot loader
avrdude: stk500_getsync(): not in sync: resp=0x00
You have some unanswered questions, which makes it difficult to help:
What ATtiny core are you using?
this one:
https://code.google.com/p/arduino-tiny/
or this
http://hlt.media.mit.edu/?p=1706
or a completely different core
Which arduino core 1.01 or newer/older?
How do you disable reset on your UNO?
TheBossCookie:
Error while burning boot loader
avrdude: stk500_getsync(): not in sync: resp=0x00
If the wiring is perfect then it is possible that the fuses in the ATtiny84 have been set to expect an external crystal. Without that crystal there is no system clock and without a system clock you can't use serial programming (ICSP).
There are some versions of the ArduinoISP sketch that supply an 8MHz clock on Pin 9. You can then hook Pin 9 to the XTAL1 pin of the target processor (pin 2 of the ATtiny84) to provide an external system clock in place of the crystal. Give that a try: GitHub - adafruit/ArduinoISP: A fork of the ArduinoISP that has 8mhz output clock
johnwasser:
TheBossCookie:
Error while burning boot loader
avrdude: stk500_getsync(): not in sync: resp=0x00If the wiring is perfect then it is possible that the fuses in the ATtiny84 have been set to expect an external crystal. Without that crystal there is no system clock and without a system clock you can't use serial programming (ICSP).
There are some versions of the ArduinoISP sketch that supply an 8MHz clock on Pin 9. You can then hook Pin 9 to the XTAL1 pin of the target processor (pin 2 of the ATtiny84) to provide an external system clock in place of the crystal. Give that a try: GitHub - adafruit/ArduinoISP: A fork of the ArduinoISP that has 8mhz output clock
Same error code.
can u give me a pic with the wires where they need to be placed so i can commpair it to mine.
i do belive there perfect but i want to make sure
Erni:
You have some unanswered questions, which makes it difficult to help:What ATtiny core are you using?
this one:
Google Code Archive - Long-term storage for Google Code Project Hosting.
or this
http://hlt.media.mit.edu/?p=1706
or a completely different coreWhich arduino core 1.01 or newer/older?
How do you disable reset on your UNO?
Attiny84
Software: 1.0.4
Arduino UNO R3
Arduino as ISP
this is the project: http://www.instructables.com/id/Full-Binary-Clock/?ALLSTEPS
And i think thats every thing
TheBossCookie:
this is the project: http://www.instructables.com/id/Full-Binary-Clock/?ALLSTEPS
Did you follow these instructions they point to?
johnwasser:
TheBossCookie:
this is the project: http://www.instructables.com/id/Full-Binary-Clock/?ALLSTEPSDid you follow these instructions they point to?
yes
TheBossCookie:
johnwasser:
TheBossCookie:
this is the project: http://www.instructables.com/id/Full-Binary-Clock/?ALLSTEPSDid you follow these instructions they point to?
yes
And were you able to successfully load and run the Blink sketch according to those instructions?