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 Can't upload program to Sparkfun Pro Micro 3.3V (Read 1995 times)
BioEngr
Newbies
*
Offline


Posts: 5
Joined: Dec 21st, 2016
Can't upload program to Sparkfun Pro Micro 3.3V
Mar 15th, 2018 at 2:50am
Print Post  
When I attempt to upload my program in VisualMicro in VisualStudio Community V14.0 with "Start without debugging" I get this error message:
Uploading 'BluetoothMaster' to 'SparkFun Pro Micro w/ ATmega32U4 (3.3V, 8 MHz)' using 'COM25'
Unable to 'touch' hardware serial port: COM25. Now assuming selected port is bootloader port. This might still fail, have you got the correct board selected?
The uploader returned an error
avrdude: ser_open(): can't open device "\\.\COM25": Access is denied.

However, when I copy the program into the Arduino IDE, it uploads and runs fine.  Since it's using the same COM device driver, board configuration, etc, I assume the bug is in Visual Micro.

Any ideas? workarounds?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't upload program to Sparkfun Pro Micro 3.3V
Reply #1 - Mar 16th, 2018 at 12:23pm
Print Post  
Might be usb driver related. Arduino uses java and visual micro uses C# which sometimes shows some differences but not often.

The arduino ide has file>preferences>upload verbose and visual micro has vmicro>compiler>Verbose

We can compare the outputs of these two after upload attempt to see if there is a difference.

You can copy and paste the output into .txt files so we can compare them.

With usb issues it is also useful to state the driver name, version and date from device manager



  
Back to top
WWW  
IP Logged
 
BioEngr
Newbies
*
Offline


Posts: 5
Joined: Dec 21st, 2016
Re: Can't upload program to Sparkfun Pro Micro 3.3V
Reply #2 - Mar 16th, 2018 at 1:40pm
Print Post  
I'll run the tests you suggest and provide the additional information about the drivers, etc.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint