0
\$\begingroup\$

I have built Arduino with Atmega8A PU on Vero board. My problem is first when I Upload the firmware with my parallel port programmer into ATmega8 chip and then I try to upload sketch of arduino blink example. I successfully upload the sketch into hardware.

The problem is when I try to re-upload the sketch It got error of avrdude: stk500_getsync(): not in sync: resp=0xc0

Why is it able to upload at first? and why it is not uploading second time? I am really confused. I have tried lot of times and tested.

I haved followed this tutorial to make my arduino

Led is attached with pin13 of arduino

    // Pin 13 has an LED connected on most Arduino boards.
      // give it a name:
    int led = 13;

    // the setup routine runs once when you press reset:
      void setup() {                
   // initialize the digital pin as an output.
    pinMode(led, OUTPUT);     
      }

       // the loop routine runs over and over again forever:
     void loop() {
      digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage          level)
       delay(1000);               // wait for a second
       digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
      delay(1000);               // wait for a second
            }

and on text file of Boards I have made following modifications

         atmega8noxtal.build.variant=standard

when I program my Arduino with external hardware I uses following fuse bit configurations

enter image description here

\$\endgroup\$
  • \$\begingroup\$ Does the sketch work? Does the LED on your board blink at approx 0.5Hz? \$\endgroup\$ – jippie Oct 12 '13 at 14:45
  • \$\begingroup\$ Please add the circuit diagram of your board. \$\endgroup\$ – jippie Oct 12 '13 at 14:51
  • \$\begingroup\$ yes the LED blink and circuit works perfectly. but the when I try to upload second time it got sync error. Circuit Diagram is on link I mentioned. I followed the exact circuit described in link \$\endgroup\$ – Abdul Rehman Oct 12 '13 at 19:01
  • \$\begingroup\$ Are you sure the device blinks its LED and cannot be programmed? And you didn't connect a crystal to it? \$\endgroup\$ – jippie Oct 12 '13 at 19:43
  • \$\begingroup\$ Yes, I am quit sure, I have tested the atmega with different blink delays. also I have tested by reprogramming 3 to 4 times. \$\endgroup\$ – Abdul Rehman Oct 12 '13 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.