Go Down

Topic: [Problem] avrdude: stk500_getsync(): not in syn (Read 1 time) previous topic - next topic

rfrp

I have the following problem trying to upload a very simple program. This is the program:
Quote

avrdude: Version 5.4-arduino, compiled on Oct 22 2007 at 13:15:12
        Copyright (c) 2000-2005 Brian Dean,

        System wide configuration file is "hardware/tools/avrdude.conf"
        User configuration file is "/home/roberto/.avrduderc"
        User configuration file does not exist or is not a regular file, skipping

        Using Port            : /dev/ttyUSB0
        Using Programmer      : stk500v1
        Overriding Baud Rate  : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [06]
avrdude: stk500_getsync(): not in sync: resp=0x06
avrdude: Send: Q [51]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding


The program is:
Quote

#define BAUDIOS 9600
boolean ejecutar = true;
void setup(){
   Serial.begin(BAUDIOS);
}

void loop(){
 if(ejecutar){
   Serial.println("AT+iRP11");
   ejecutar=false;
 }
}


I have discarded a problem in the hardware, because if only i had the arduino board conected to the usb port and nothing conected to it, the program upload without problems, so I suspect that my circuit it has a problem, (but it is working). The circuit is in the next post (i can upload images with my first post):


I'm not an expert with this, but i thing that it's posible to get the main idea.

Someone can give me a hand?

Thanks a lot!
Roberto

rfrp

The image of the circuit is here.

Thanks for the help!
Roberto

rfrp

I have discovered that if I disconnect the pin of TX and RX of arduino, the problem it's avoided.
Now, i'm curious to know what is the reason of this. Anybody know?
Roberto

weirdo557

#3
Mar 20, 2009, 12:58 am Last Edit: Mar 20, 2009, 01:02 am by weirdo557 Reason: 1
i cant see your circuit, but if you have anything on pins 0 or 1 while you try to upload, you can run into problems. those are the pins that connect to the usb interface, and if something else is connected to them, it can interfere with the signals causing a failed program upload. you cant have more than one serial device on the serial lines at a time, if one were to go high and the other low, or the both wrote high one after another, the data would get garbled.

rfrp

Thanks for your answer. Yesterday I conclude the same... This allow me to understand another things!
Thank you again!.
Roberto

Go Up