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 compiles but doesn't upload to Uno because Com3 access is denied (Read 8397 times)
Mohammad
Newbies
*
Offline


Posts: 2
Joined: Oct 3rd, 2015
compiles but doesn't upload to Uno because Com3 access is denied
Oct 3rd, 2015 at 7:50pm
Print Post  
Hello Guys,

I am having trouble using Visual Micro extension on Visual studio, it complies fine, but when I run it it gives an error of COM3 access denied my specific configuration is as follows 
Ide: Arduino 1.6 
Board: Arduino Uno
Serial Port COM3 also tried changing the port to com9
tried both settings With always use programmer for upload and without Always use programmer for upload and still getting the same error 

I am using Visual Studio 2015, it takes long time to compile first and gives me this error

Error during upload using programmer

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM9
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200

Upload timed out waiting for a response

The uploader returned an error

if I re run it again it will give

Error during upload using programmer

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM9
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: ser_open(): can't open device "\\.\COM9": Access is denied.



avrdude done.  Thank you.


The uploader returned an error

if I unchecked the always use Programmer or uploading option it it gives
Binary sketch size: 3,010 bytes (used 9% of a 32,256 byte maximum) (0.56 secs)
Minimum Memory Usage: 279 bytes (14% of a 2048 byte maximum)
Uploading to I/O board using 'COM9'
Uploader started for board Arduino/Genuino Uno
Upload method will be: bootloader
Uploading via Bootloader 
Flushing the serial port
Access to the port 'COM9' is denied.


any suggestion would be helpful and appreciated 
Thank you
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compiles but doesn't upload to Uno because Com3 access is denied
Reply #1 - Oct 3rd, 2015 at 8:03pm
Print Post  
Hi,

Thanks for the clear info.

For usb upload you do not want to upload using a programmer. 

This error would normally mean that the com port is open in another application such as the serial monitor in the arduino ide. 

You have said you switch between com3 and com9 but what is the correct port that appears when you connect your board?

Does the upload work in the arduino ide? If so using which port?
  
Back to top
WWW  
IP Logged
 
Mohammad
Newbies
*
Offline


Posts: 2
Joined: Oct 3rd, 2015
Re: compiles but doesn't upload to Uno because Com3 access is denied
Reply #2 - Oct 3rd, 2015 at 8:41pm
Print Post  
Thank you for quick replay,I am sorry yes I forgot to mention it works on Arduino IDE on Port COM3 and worked as well on COM 9 when I changed it. I made sure that all other IDE are closed as well(so I closed Arduino IDE incenses, visual studio and reset the port again)

Right now I have it configured it back to COM3 port  and it is working on the Arduino IDE, when I reopen Visual studio , unchecked use Programmer for Upload, and runs and working now  on VS 2015 Smiley

Thank you very much Your advice helped a lot and now I am running Smoothly
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint