Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00) (Read 9196 times)
cygnetuk
Newbies
*
Offline


Posts: 7
Location: Farnworth Bolton Lancs UK
Joined: Mar 22nd, 2013
Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Jun 30th, 2013 at 7:39am
Print Post  
Hi all 
Hoping someone may have some inspiration to help me get rid of the dreaded avrdude: stk500_getsync(): not in sync: resp=0x00 bug ! .

I have built a  stripboard Uno using the mcu from one of my commercial Unos. I have  been trying to program it using a FT232RL serial connector and got the above error, and after trying for several hours to solve the problem I decided to try to use the Arduino as ISP method instead, only to find I had the same error message. As is required  I had the DTR pin of the FT232RL connected to the mcu  reset pin via a 100nf capacitor and the pin was also pulled high with a 10k resistor so that is eliminated as being the cause.

I then decided to build a basic breadboard version just to try to overcome this problem. This is just the mcu plus the usual crystal and capacitors along with the above resistor and capacitor configuration. I am still getting the same error messages both using the FT232RL, Arduino as ISP as well as by using a Baite CP2102 serial converter. 

I have tried with a different MCU, increasing the 100nf capacitor to 1uf, different usb cables, different usb ports, using the native arduino.exe program, with the correct sketch in the uploading UNO, un-installed and reinstalled the serial converter drivers, all to no avail, the only thing that has changed was once the error code was  0x06 instead of 0x00 Sad 

I also installed the MCU back into the UNO to check it was still working that way, which it is .

I am only a beginner using arduino so hoping one of you experienced experts can shed some light on the problem before it drives me to drink, which I cannot do as it poses a severe health risk to me ! 

I am using Win7 x64 & arduino 1.0.4. 

Having tried all the above I feel confident that the problem must be with my PC Hope someone out there can save my sanity before google ban me for searching for a solution so many times ! 

Thanks for reading this ! 
« Last Edit: Jun 30th, 2013 at 9:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
cygnetuk
Newbies
*
Offline


Posts: 7
Location: Farnworth Bolton Lancs UK
Joined: Mar 22nd, 2013
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #1 - Jun 30th, 2013 at 2:31pm
Print Post  
Hi Gelius .. Thanks for replying.
If I put the chip back in the UNO  board it works well, I have also tried it with 2 other MCU's, both of which work ok if put into the UNO

This is the breadboard circuit I am using for the arduino as isp method. NB this is a schematic and on the actual project the crystal is situated right against the MCU and not distant from it  as this diagram would suggest.



When I have used the serial converters on the breadboard I am using this circuit 



I have tried the above with both 100nf and with 1uf capacitors connected between the wire and the reset pin.

I can confirm I am connecting TX-RX and RX-TX
I have tried 2 different crystals as well

Thanks 
« Last Edit: Jun 30th, 2013 at 9:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
cygnetuk
Newbies
*
Offline


Posts: 7
Location: Farnworth Bolton Lancs UK
Joined: Mar 22nd, 2013
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #2 - Jun 30th, 2013 at 5:23pm
Print Post  
Hi again Gelius

Thanks for your reply 

The images I posted are a bit misleading,  the crystal is right up against the MCU as shown in your photo, I have tried without C2 & C3  but it still doesn't work Sad 
« Last Edit: Jun 30th, 2013 at 9:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #3 - Jun 30th, 2013 at 9:09pm
Print Post  
Thanks for all the info, I have cleaned up the thread because it was getting confusing for others.

Gelius has the best questions/suggestions but he has removed them Cry

I think he was worried that the problem was something different but actually he is right and it is a matter of getting your hardware right.

Because we have so little resource we try to help people in this forum with Visual Micro support and/or usage discussions.

I think your questions will be best answered by a larger and more experienced community over at arduino.cc/forum

I hope you understand and don't mind using the arduino forum for this. 

Thanks for the great reports
« Last Edit: Jun 30th, 2013 at 9:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
cygnetuk
Newbies
*
Offline


Posts: 7
Location: Farnworth Bolton Lancs UK
Joined: Mar 22nd, 2013
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #4 - Jul 2nd, 2013 at 12:23am
Print Post  
Partly solved the problem and got it working with the CP2102 serial converter!

Apparently there are a large number of these around with the TX and RX pins labelling transposed so they need connecting with TX on the module to  TX on the board and likewise RX - RX.   

In addition some modules do not have DTR  connected to the actual output pins so it is necessary to connect a wire from DTR to the MCU reset pin via a 1uf capacitor.  Doing all of this and the module facilitates uploads to the  board  perfectly. 

I suspect that my FR232 module may well be faulty so have ordered a replacement . 
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #5 - Jul 2nd, 2013 at 11:29am
Print Post  
Thanks for the clear update. I think other DIY makers will benefit from this.
  
Back to top
IP Logged
 
cygnetuk
Newbies
*
Offline


Posts: 7
Location: Farnworth Bolton Lancs UK
Joined: Mar 22nd, 2013
Re: Homemade board - Upload fails in VM and Arduino Ide (not in sync: resp=0x00)
Reply #6 - Jul 5th, 2013 at 10:41am
Print Post  
Some more information has come to light which probably answers why so many people have this problem. It appears the reset pin as it is labelled on some USB converters  is actually to reset the converter and not the Arduino ! 

So if you are buying a CP2102 converter like this or a similar alternative then ensure it clearly states that it supports auto reset or that the DTR output pin as above is available. If not then it is necessary to reset the MCU immediately prior to upload .. but the timing can be a little tricky at first
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint