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] 2  Send TopicPrint
Hot Topic (More than 8 Replies) Upload Problems... (Read 26227 times)
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Upload Problems...
Jun 12th, 2013 at 6:44pm
Print Post  
Not sure if this is a VisualMicro problem, an AtmelStudio problem, or a possible hardware problem....  Sometimes, when I click on Run, it will indicate it is uploading to the board, then hang for about 10 seconds, before aborting with:

avrdude: stk500_getsync(): not in sync: resp=0x00

If I hold down the reset button on the board (ProMini 328, 5V, 16MHz), until after the "Uploading to I/O board using ..." message appears, the download is successful 100% of the time.  The odd thing is, it will, sometimes, work perfectly for quite some time without using the reset button.  But, once I get the first "not in sync" message, it rarely goes back to working correctly unless I close AtmelStudio for some time, then re-open it.  It was acting up last night, so I gave up and close Atmel Studio.  This morning, it worked perfectly for perhaps a half hour before I got the first "not in sync", and hasnt' worked right in the hour or more since then.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #1 - Jun 12th, 2013 at 7:44pm
Print Post  
Hi Ray,

This sounds like a usb/serial problem. You mentioned previously you are using a prolific serial adapter (if I recall correctly)

Can you explain more about your hardware setup please.

Thanks
  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #2 - Jun 12th, 2013 at 11:48pm
Print Post  
At the moment, I have a kind of Frankenstein setup.   I have an FTDI USB/Serial adaptor.  Plugged onto that is an RS232<->TTL level shifter board, and the TTL side of that board is wired to the connector on the ProMini.

Am I correct in thinking DTR would be the suspect signal to explain this?

Funny thing is, I've BEEN running with a Prolific adaptor, but I was forced to get a new PC a few weeks ago, and the Prolific is not supported under (Yuck!) Win8.  This FTDI cable is the only thing I have on-hand that works at all.  Never had a problem with it under XP.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #3 - Jun 13th, 2013 at 2:35am
Print Post  
Hello
With chip PL2302 Prolific Technology has had problems for use by another driver.
Not native Arduino.
Worked poorly.Sometimes there were problems with the load.
I windows XP.
Now I use only the FT232BL. FTDI
Sincerely.
Yuri.
« Last Edit: Jun 13th, 2013 at 3:08am by gelius59 »  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #4 - Jun 13th, 2013 at 1:46pm
Print Post  

Try the driver using the link.

Can solve the problem, not sure exactly!

http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #5 - Jun 14th, 2013 at 3:33pm
Print Post  
H Ray,

Please enable "RTS On Close" for the USB driver

Device Manager > Comm Ports > USB Serial Port > Port Settings > Advanced button > Set RTS On Close
« Last Edit: Jun 14th, 2013 at 3:34pm by Tim@Visual Micro »  
Back to top
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #6 - Jun 14th, 2013 at 5:58pm
Print Post  
Hmm ,that's strange."RTS On Close"
How can it affect the operation of the adapter USB COM.
I do not understand ?
« Last Edit: Jun 15th, 2013 at 4:44am by gelius59 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #7 - Jun 14th, 2013 at 8:45pm
Print Post  
I don't know Smiley 

It is documented on the internet as a solution for problems where upload works once but after that uploads throws the stk500_getsync(): not in sync: resp=0x00 error.

I know you have a lot of experience with this so your suggestions are the best but I thought this might help. or maybe not Smiley
  
Back to top
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #8 - Jun 15th, 2013 at 3:13am
Print Post  
Ok.
I agree. Trying to be all that will lead to the solution of the problem!!!
It is interesting to see just what is the Problem?
I have such an adapter I stopped using it.
  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #9 - Jun 15th, 2013 at 5:03am
Print Post  
Could not resist Smiley


PL2303 pulled adapter.
1. I Install the driver PL2303_Prolific_DriverInstaller v1.8.0.
2. Previously used PL2303_Prolific_DriverInstaller v1.7.0
3."RTS"did not change 
So far everything is working fine

PS.
Maybe should pay attention to this:

Windows 8 is NOT supported in PL-2303HXA and PL-2303X EOL chip versions.

Run PL2303 CheckChipVersion tool program in Windows XP/Vista/7 to check chip version.

I OS Windows XP .Win8 there is no way to check.

Chip Version  Chip Availability  Windows 8 (32 & 64 bit)
PL-2303H  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev A) or HXA  Discontinued (EOL)  No New Driver Support*
PL-2303X or XA  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev D) or HXD  Available  Yes
PL2303TA  Available  Yes
PL2303TB  Available  Yes
PL2303EA  Available  Yes
PL2303RA  Available  Yes
PL2303SA  Available  Yes
« Last Edit: Jun 15th, 2013 at 12:14pm by gelius59 »  
Back to top
 
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #10 - Jun 15th, 2013 at 2:38pm
Print Post  
FWIW - Prolific has apparently just released an updated driver that *appears* to work well with Win8.  My Prolific adaptors are now working well, in limited testing.  I'll continue running them, and see how it goes.  But this is further than I'd gotten with the old drivers.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #11 - Jun 15th, 2013 at 2:39pm
Print Post  
Tim@Visual Micro wrote on Jun 14th, 2013 at 3:33pm:
H Ray,

Please enable "RTS On Close" for the USB driver

Device Manager > Comm Ports > USB Serial Port > Port Settings > Advanced button > Set RTS On Close



Been away for a few days...  I'll give this a try later today, and report back.

Thanks!

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #12 - Jun 15th, 2013 at 4:23pm
Print Post  
Hi Ray,

It's good that you have progressed with this. My suggestion of RTS on close was just a guess based on some internet posts.

gelius59 has a good view of these things, he is very experienced with USB, I think his suggestions are more relevant

Tim
  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #13 - Jun 16th, 2013 at 12:15am
Print Post  
gelius59 wrote on Jun 15th, 2013 at 5:03am:
Could not resist Smiley


PL2303 pulled adapter.
1. I Install the driver PL2303_Prolific_DriverInstaller v1.8.0.
2. Previously used PL2303_Prolific_DriverInstaller v1.7.0
3."RTS"did not change 
So far everything is working fine

PS.
Maybe should pay attention to this:

Windows 8 is NOT supported in PL-2303HXA and PL-2303X EOL chip versions.

Run PL2303 CheckChipVersion tool program in Windows XP/Vista/7 to check chip version.

I OS Windows XP .Win8 there is no way to check.

Chip Version  Chip Availability  Windows 8 (32 & 64 bit)
PL-2303H  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev A) or HXA  Discontinued (EOL)  No New Driver Support*
PL-2303X or XA  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev D) or HXD  Available  Yes
PL2303TA  Available  Yes
PL2303TB  Available  Yes
PL2303EA  Available  Yes
PL2303RA  Available  Yes
PL2303SA  Available  Yes



The adaptors I have use the 2303HXD, so should be ok.  They still seem a bit flaky, but most work.  I find they don't always connect reliably to the PC, but once connected, with the latest driver, seem to work ok.  Not as reliable as FTDI (which has ALWAYS been my experience with Prolific, going back 7-8 years), but they are at least usable.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #14 - Jun 16th, 2013 at 3:49am
Print Post  
RayLivingston wrote on Jun 16th, 2013 at 12:15am:
gelius59 wrote on Jun 15th, 2013 at 5:03am:
Could not resist Smiley


PL2303 pulled adapter.
1. I Install the driver PL2303_Prolific_DriverInstaller v1.8.0.
2. Previously used PL2303_Prolific_DriverInstaller v1.7.0
3."RTS"did not change 
So far everything is working fine

PS.
Maybe should pay attention to this:

Windows 8 is NOT supported in PL-2303HXA and PL-2303X EOL chip versions.

Run PL2303 CheckChipVersion tool program in Windows XP/Vista/7 to check chip version.

I OS Windows XP .Win8 there is no way to check.

Chip Version  Chip Availability  Windows 8 (32 & 64 bit)
PL-2303H  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev A) or HXA  Discontinued (EOL)  No New Driver Support*
PL-2303X or XA  Discontinued (EOL)  No New Driver Support*
PL-2303HX (Rev D) or HXD  Available  Yes
PL2303TA  Available  Yes
PL2303TB  Available  Yes
PL2303EA  Available  Yes
PL2303RA  Available  Yes
PL2303SA  Available  Yes



The adaptors I have use the 2303HXD, so should be ok.  They still seem a bit flaky, but most work.  I find they don't always connect reliably to the PC, but once connected, with the latest driver, seem to work ok.  Not as reliable as FTDI (which has ALWAYS been my experience with Prolific, going back 7-8 years), but they are at least usable.

Regards,
Ray L.

Ok.
Ray.
The chips PL2303 FT232 are very similar.
The quality of work I think a lot depends on the driver.
There is a chip CP2102 but unfortunately for me is not available.
I all electronics try to do on their own.
I do not buy ready-made products, only chips etc.
Sorry do not know much English.
 
I hope Prolific with the  new adapter driver will work well.

Good luck.
« Last Edit: Jun 16th, 2013 at 4:15am by gelius59 »  
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: Upload Problems...
Reply #15 - Jun 16th, 2013 at 5:04am
Print Post  
Reflections.
Some  Arduino Boards ,adapter chip Atmega8 /16 USB-COM.(The software solution protocol AVR-CDC)
It is necessary to pay attention to the exchange rate com port.
At high speed, they will not work properly.
Download the program, the debugger.
It is better to work with Arduino chips of specialized USB-COM.
for example FTDI, Profilic
« Last Edit: Jun 16th, 2013 at 7:34am by gelius59 »  
Back to top
 
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #16 - Jun 16th, 2013 at 8:11pm
Print Post  
There seems to be some kind of Serial Port flakiness in AtmelStudio.  Several times I've found it will stop acknowledging that ANY serial port is present, even when DeviceManager shows one or more are there.  Exiting AtmelStudio, and re-starting it always seems to get it working right again.

So far, working with the newest Prolific driver, I've had only a few problems.  It will, once in a while, give the avrdude sync error message, but holding the reset button on the target until the "downloading" message appears ALWAYS works.  Often, after a short time, it will simply start working again on its own.  Again, exiting, and re-starting AtmelStudio also seems to restore sanity.

Bottom line, while slightly annoying, none of this is significantly impacting productivity, which is nice.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #17 - Jun 16th, 2013 at 8:32pm
Print Post  
Thanks for the update. Sorry you are having this problem.

We don't have any other reports of this for FTDI or normal drivers so I think it's a windows/usb problem with the prolific driver under windows .net.

If I had a prolific driver/cable maybe I could see that some additional pause or setting might help but sadly I don't have one at the moment. It might also be a combination with windows 8.

I can tell you that this is nothing to do with Atmel Studio because it doesn't handle compile/upload/serial etc. Visual Micro does all this using the same .net code that is used in the Visual Studio plugin so I expect you would see the same problem in VS.

Sorry I can't be of more help, I'll try to find some time to setup a test over the next couple of months and see what can be seen.

Thanks for the report and your persistance, it is appreciated
  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Upload Problems...
Reply #18 - Jun 16th, 2013 at 9:07pm
Print Post  
Tim,

No problem.  I never cease to be amazed at how flaky USB serial seems to be on Windows, going back as far as I can remember.  I've written several .NET apps myself that use USB Serial, and sometimes see similar problems.  It seems like the drivers, or Windows, just weird out sometimes.   

Overall, I'm really happy with VisualMicro, and find it works very nicely with AtmelStudio - I don't really miss VS for the things I'm doing with it.

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload Problems...
Reply #19 - Jun 16th, 2013 at 9:18pm
Print Post  
Thanks Ray, I have to say that I upload lots to test vm and unplug and re-plugin lots of different boards. I never have a problem so if you can get an FTDI cable or standard usb if you can.

Thanks again
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint