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
Very Hot Topic (More than 25 Replies) No COM ports in drop down list (Read 10726 times)
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
No COM ports in drop down list
Jun 18th, 2018 at 9:09pm
Print Post  
I'm on windows 10 and there are no com ports listed in the drop down list, so I can't run my code in the debug mode.

How can I get the com ports list to populate in the IDE?

Thanks for any help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #1 - Jun 18th, 2018 at 9:17pm
Print Post  
You have to plug a board in to the usb
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #2 - Jun 18th, 2018 at 10:08pm
Print Post  
I have a board plugged into the USB cable (a Teensy 3.5 board).
« Last Edit: Jun 18th, 2018 at 10:57pm by RalphF »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #3 - Jun 19th, 2018 at 11:25am
Print Post  
Does the board show in the arduino ide ports list?
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #4 - Jun 19th, 2018 at 1:35pm
Print Post  
>Does the board show in the arduino ide ports list?

No, the list is empty.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #5 - Jun 19th, 2018 at 2:17pm
Print Post  
This sounds like missing usb driver. Please ask on the Teensy forum how to install usb drivers for your hardware.

Thanks
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #6 - Jun 19th, 2018 at 4:40pm
Print Post  
Turns out my Teensy board went bad. I installed a new one and the ports list now populates correctly.

However, I am now seeing this message when I try to run a debug build:

   Debug Build Error: This hardware might not support the default Visual Micro Debugger.
     If this project is using OTA/WiFi upload then please use the vMicro>Debugger menu to set the Serial COM and Remote port for the debugger.

I'm connecting with my USB cable to my Teensy board.


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #7 - Jun 19th, 2018 at 5:16pm
Print Post  
That's a generic error if you encounter a real error during DEBUG builds. Normally it's best to post the entire error message not just the bit at the end.

Switch the tool bar to from Debug to Release so you replicate a simple arduino build for first tests and to prove your system.
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #8 - Jun 19th, 2018 at 5:28pm
Print Post  
In Release mode my code runs fine.

In Debug mode here is the full message:

Compiling debug version of 'FS1000' for 'Teensy 3.2 / 3.1'
   usb_serial_class *transport
   void begin(usb_serial_class *theSerial)
   void begin(usb_serial_class *theSerial, unsigned long baud)
Error compiling libraries
   Debug Build Error: This hardware might not support the default Visual Micro Debugger.
     If this project is using OTA/WiFi upload then please use the vMicro>Debugger menu to set the Serial COM and Remote port for the debugger.
     Otherwise switch the toolbar from 'Debug' to 'Release' and build again. 
           or switch off Automatic Debugging
           or configure the SoftwareSerial debugger option.
Debug build failed for project 'FS1000'
« Last Edit: Jun 19th, 2018 at 5:28pm by RalphF »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #9 - Jun 19th, 2018 at 5:57pm
Print Post  
Thanks. It can be one of two things.

1) Each Teensy board has some board options. If you do not have serial enabled then the default debug config can not work. You can find the board specific options (option1, 2 etc) on the vmicro menu. If you need to work without serial then you need to implement the softwareSerial debugger option if your board supports it. That means setting the "debugger>remote transport" to software serial and also connecting two pins to an ftdi or other usb cable.

2) Less likely is that the  latest teensy core changes the serial spec of the 3.2/3.1 boards. I suspect this is not the problem because the 3.2/3.1 boards have been around for quite a while now and not been an issue before. I would be surprised if they have changed it but can test if 1) proves no to be the issue.
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #10 - Jun 19th, 2018 at 8:48pm
Print Post  
I need to be able to attach screen shots of my settings but the forum won't let me upload files...can you give me permissions to do that?

Where do I enable serial? I'm using the USB cable to connect to my Teensy 3.2 board. I don't see where I enable the serial for the Teensy board.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #11 - Jun 19th, 2018 at 8:54pm
Print Post  
sometimes you have to click "Update session" on the top bar of this page or click Reply instead of using the quick message below.

the options for boards such as Teensy are shown on the vmicro menu at the top of the ide.

but you need to copy and paste the FULL error into a post. images are not so helpful.
« Last Edit: Jun 19th, 2018 at 8:56pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #12 - Jun 19th, 2018 at 8:56pm
Print Post  
I got the serial monitor window to finally connect and my serial debug statements are displaying in this window as expected.

My break point however isn't catching, that is, my code sequence isn't stopping at the break point. I think if we can get it to break then I'm in business.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #13 - Jun 19th, 2018 at 9:00pm
Print Post  
are you seeing a trace message for the breakpoint?
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #14 - Jun 19th, 2018 at 9:01pm
Print Post  
I don't think so but I am not sure what a trace message looks like or what window it shows up in?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #15 - Jun 19th, 2018 at 9:07pm
Print Post  
The trace messages appear in place of the build output.

Have you tried it in a simple project/code such as blink?

Does your breakpoint have a message?
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #16 - Jun 19th, 2018 at 9:09pm
Print Post  
That's why I wanted to be able to attach a screen shot of my IDE.

My break is on an if statement.

I will try the Blink sketch.
  
Back to top
 
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #17 - Jun 19th, 2018 at 9:15pm
Print Post  
I loaded the Blink sketch. It loads and runs OK but does not break on the break line which is commented below, the first line in the loop()

Code (C++)
Select All
void loop() {
  digitalWrite(13, HIGH);   // break is on this line
  delay(1000);
  digitalWrite(13, LOW);
  delay(1000);
}
 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #18 - Jun 19th, 2018 at 9:27pm
Print Post  
Sometimes a screen shot can be useful but you had a build error earlier and the error text is best posted as text.

What properties have you set, if any, for your break point.

Does the serial monitor show 115200 speed?

Does the "Micro Trace" appear when debug starts?
  
Back to top
WWW  
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #19 - Jun 19th, 2018 at 9:30pm
Print Post  
I set auto debugging on.

A small window opens saying its waiting for break data then closes.

I have not set any properties for the break but I will try setting something.

I see this in the output window:

Launching Debugger...
Debugging has exited
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint