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
Hot Topic (More than 8 Replies) Intermittent problem uploading to Pro Mini in VisualStudio 2013 (Read 9332 times)
Gyan Penrose-Kafka
Newbies
*
Offline


Posts: 4
Joined: Jan 7th, 2014
Intermittent problem uploading to Pro Mini in VisualStudio 2013
May 30th, 2014 at 4:35am
Print Post  
I never had this problem with the Arduino IDE, but in VisualStudio 2013, I'm having intermittent errors on upload to the Arduino Pro Mini. (maybe other boards too, but I haven't tried them). 

Compilation is fine, but I will often times have to start with (or without) debugging several times before it uploads the code to the controller.

I may be able to upload several times in a row and then several times it won't upload after compile.

The error isn't always the same, but usually looks like the output message below:

Compiling 'Marvel_Electro' for 'Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328'
Binary sketch size: 19,458 bytes (used 63% of a 30,720 byte maximum) (3.07 secs)
.
The usb debugger has been activated in 'Automatic Debugging' mode
.
Compiling debug version of 'Marvel_Electro' for 'Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328'
Binary sketch size: 20,974 bytes (used 68% of a 30,720 byte maximum) (3.44 secs)
Uploading to I/O board using 'COM12'
avrdude: ser_open(): can't open device "\\.\COM12": Access is denied.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #1 - May 31st, 2014 at 2:37am
Print Post  
Hi Gyan,

Please see if there is a difference if you switch off "Tools>Options>Visual Micro>Communications>Auto Reconnect"

Thanks
  
Back to top
IP Logged
 
Gyan Penrose-Kafka
Newbies
*
Offline


Posts: 4
Joined: Jan 7th, 2014
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #2 - May 31st, 2014 at 4:03pm
Print Post  
That doesn't seem to fix it. It just took 3 tries of hitting F5 before it would successfully upload.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #3 - May 31st, 2014 at 4:40pm
Print Post  
Hi Gyan,

Thanks for trying that. This sounds like we need a longer pause between opening and closing the port to force a reset prior to the upload.

I think I have a pro mini somewhere but it would be useful to confirm exactly which usb driver you have installed so we can replicate. Please ensure the board is plugged in then look in "device manager>port>properties". What is the date and time and make/manufacturer of the driver?

Thanks
  
Back to top
IP Logged
 
Gyan Penrose-Kafka
Newbies
*
Offline


Posts: 4
Joined: Jan 7th, 2014
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #4 - May 31st, 2014 at 5:08pm
Print Post  
Driver Provider: FTDI
Driver Date: 1/27/2014
Driver Version: 2.10.0.0

ftser2k.sys
File Version: 2.10.00.45 built by: WinDDK

serenum.sys
6.3.9600.16384 (winblue_rtm.130821-1623)

ftcserco.dll
2.01.03.1

ftserui2.dll
2.10.00 built by WinDDK
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #5 - May 31st, 2014 at 5:21pm
Print Post  
Thanks, I forgot to ask which version of windows, 32/64 bit and which usb cable/adapter are you using.

Thanks
  
Back to top
IP Logged
 
Gyan Penrose-Kafka
Newbies
*
Offline


Posts: 4
Joined: Jan 7th, 2014
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #6 - May 31st, 2014 at 5:31pm
Print Post  
Windows 8.1 pro with media center. 64bit (OS and processor, VS2013 Ultimate. Sparkfun FTDI with usb2 cable and port.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #7 - May 31st, 2014 at 6:20pm
Print Post  
Thanks, Sparkfun ftdi cable or board? Can you provide a link to the product.
  
Back to top
IP Logged
 
Gyan Penrose-Kafka
Newbies
*
Offline


Posts: 4
Joined: Jan 7th, 2014
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #8 - Jun 1st, 2014 at 1:13am
Print Post  
It looks like it's the following: 

https://www.sparkfun.com/products/retired/9115
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intermittent problem uploading to Pro Mini in VisualStudio 2013
Reply #9 - Jun 1st, 2014 at 2:05am
Print Post  
Thanks. I will re-test with an ftdi cable and have ordered a board and cable. 

Hopefully get the same results as you.

It might take a few days before I get any results. I'll let you know when I do.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint