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) "Upload requires a serial port or programmer" Error? (Read 9971 times)
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
"Upload requires a serial port or programmer" Error?
Feb 23rd, 2016 at 7:07pm
Print Post  
I'm re-asking this question because it took me over a week to respond to my original topic thus resulting in its abandonment. My fault, sorry!  Undecided 

Anyway, I am using the arduino visual studio plugin. It builds just fine with no errors but when I go to upload to my Mega 2650 I get the error "Upload requires a serial port or programmer. Upload cancelled." 
I've used the actual Arduino IDE before and uploaded to Arduino boards with no issue on the same laptop.
Thus far I have tried all four USB ports on my labtop and recieved the error. I also made sure the correct board type was selected. I looked through the options under the tools tab but honestly didn't know what I was looking at and got a little overwhelmed.

Clicking on the empty drop down box brings up an empty list, where I'm told there's supposed to be a list of ports. But there's frustratingly nothing. 

What am I doing wrong?  Huh

Thanks! 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #1 - Feb 24th, 2016 at 2:06am
Print Post  
Sorry for the delay and thanks for the info. Another user reported this issue.

Visual micro uses c# instead of java to ask windows for a list of serial ports and it appear to be failing to do so.

You could try to switch off the following 3 "Tools>options>visual micro>communications" 
networkDiscovery
friendlyPortLists
friendlyPortMenus

If that fails try changing the com port number in "control panel>device manager" by right clicking the com port and clicking "properties"
  
Back to top
IP Logged
 
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #2 - Feb 26th, 2016 at 4:17am
Print Post  
So!

I switched off networkDiscovery, friendlyPortLists and friendlyPortLists in the options menu where you said. Doing so now adds COM4 to the drop-down list when the arduino is plugged in, however clicking on it doesn't slect it (the box the list drops down from remains blank) and I still get the "upload requires a serial port or programmer. Upload cancelled" error.  Undecided

Just so I can make sure that I know how to upload to the arduino with the IDE, I'm supposed to write my program, debug it, plug the board into the chosen USB port, click the build and upload button which looks like a play button in a circle, then sit back and profit, right? 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #3 - Feb 27th, 2016 at 1:54pm
Print Post  
Hi,

You are doing the right things. The serial port list should show the port.

This means that visual micro can't see the port hence the error during upload.

Can you please give the usb driver details for the port from device manager. Name, manufacturer, version, date etc.

Thanks very much

Short term workaround: You can switch on "File>Preference>External Editor" in the arduino ide. This allows you to have the same sketch open in visual studio and the arduino ide at the same time. You can edit/save in Visual Studio then click Arduino Ide Upload.
  
Back to top
IP Logged
 
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #4 - Mar 1st, 2016 at 3:12am
Print Post  
I am going to sound so dumb but how can I tell which driver I'm using from the control panel? 

I'm looking at the USB controllers and I'm seing well more than the four that I have on my computer. 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #5 - Mar 1st, 2016 at 12:29pm
Print Post  
Not at all. It's a good question. Why are your COM ports missing from device manager? Normally they are shown in a tree branch somewhere above the Universal Bus Controller that you have expanded.

It might be an idea to post a screen shot of your entire device manager with Universal bus collapsed.

Which version of windows are you using?

Are com ports set to "auto detect" in the BIOS?

« Last Edit: Mar 1st, 2016 at 12:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #6 - Mar 3rd, 2016 at 10:24pm
Print Post  
Here is my device manager with the USB controller branch closed. 

I'm using windows 10, and where would I find the BIOS settings?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #7 - Mar 3rd, 2016 at 11:14pm
Print Post  
You should be seeing a com ports section. Please see if they are hidden and disabled.

http://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/com-p...
« Last Edit: Mar 3rd, 2016 at 11:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #8 - Mar 7th, 2016 at 10:38pm
Print Post  
I followed the directions in the link and found the Ports branch Cheesy
« Last Edit: Mar 7th, 2016 at 10:38pm by Gozer »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #9 - Mar 7th, 2016 at 11:07pm
Print Post  
Great. Is upload working now?
  
Back to top
IP Logged
 
John D
Newbies
*
Offline


Posts: 1
Joined: Mar 10th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #10 - Mar 10th, 2016 at 2:48pm
Print Post  
Hi,
I have the same problem :
"Upload requires a serial port or programmer. Upload cancelled."
Using Windows 7.
Device Manager shows Arduino as COM8.
No problem uploading using Arduino IDE.

Any solution to problem ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Upload requires a serial port or programmer" Error?
Reply #11 - Mar 11th, 2016 at 11:55am
Print Post  
Can you see the port in Visual Micro?
  
Back to top
IP Logged
 
Gozer
Newbies
*
Offline


Posts: 9
Joined: Feb 5th, 2016
Re: "Upload requires a serial port or programmer" Error?
Reply #12 - Mar 15th, 2016 at 9:10pm
Print Post  
Yes, AND it uploads now!!! 

I'm super excited to get started now Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint