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 10794 times)
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #20 - Jun 19th, 2018 at 9:33pm
Print Post  
I set Action to log message 'break test' to output window but it doesn't show up.

I think we have a problem with the message:

Launching Debugger...
Debugging has exited

Something is causing the debugger to exit and not be able to break.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #21 - Jun 19th, 2018 at 9:33pm
Print Post  
Great thanks.

Don't set any breakpoint properties it was just a question. if you set a "message" then it auto enabled the "continue execution" checkbox which will confuse things for you.

Auto debugging is on by default.

Debug can only exit if the serial/usb disconnects so that is the issue. The debugger needs a reliable serial connection.

  
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 #22 - Jun 19th, 2018 at 9:37pm
Print Post  
My com4 port works fine when I run in Release mode. The serial windows connects successfully. I can change the code and see the changes.

When I switch to Debug mode, the serial window fails to connect. That's probably related to the debug trace message:

Launching Debugger...
Debugging has exited

I still don't have something set up correctly for debug mode.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #23 - Jun 19th, 2018 at 9:44pm
Print Post  
Make sure you didn't change any other settings. Worth clicking vmicro>debugger>reset settings

  
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 #24 - Jun 19th, 2018 at 9:59pm
Print Post  
I did a debug reset but still the same results: serial window fails to connect to com4 port with the same message:

Launching Debugger...
Debugging has exited

Release mode connects fine and works fine.

I tried a different USB cable with the same results.

What about the debug serial speed? Is 115200 too fast? I set 57600 in the vmicro->debug menu but the serial window still opens at 115200.
« Last Edit: Jun 19th, 2018 at 10:02pm by RalphF »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #25 - Jun 19th, 2018 at 10:03pm
Print Post  
No 115200 is the default that everyone uses.

I suggest use your board in release mode for a while and get to know it. I think the solution will then become obvious. 

I will try a teensy 3 when I get a chance but it's not normally an 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 #26 - Jun 19th, 2018 at 10:09pm
Print Post  
I've been using my board in release mode for the last two days...just recently needed to get into the debug mode to do some deeper checking when I discovered debug wasn't working.

The Blink sketch is pretty simple. Not much to it. If it doesn't work in debug mode, me playing around with it in the Release mode isn't going to 'show me a solution' to the debug problem I am having I don't think.

So it sounds like I am stuck and can't use the debugger.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #27 - Jun 19th, 2018 at 10:14pm
Print Post  
I see, I thought from what you said at first you had been programming without com ports or upload so was confused.

The debugger is a simple serial system, nothing clever. It might be the teensy doesn't like the DTR being enabled for debug. There is a debug option to switch that off as with most settings but have run out of time to look at this more for a few days.
  
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 #28 - Jun 20th, 2018 at 12:05am
Print Post  
Just an FYI

I switched boards to a Ardunio Nano and I can debug the Blink sketch.

Here is the output window text. I can press F10 and run to the next break point in the loop(). F10 step doesn't seem to step but that's OK as it does stop at the two break points I put in the loop() code block.

So something must be wrong with the Teensy boards.

Here is the output from the Blink debug session:

Launching Debugger...
Program Running 'Blink1'
17:02:33.566    Blink1.ino, line 25      loop()
Blink1 is paused at Blink1.ino, line 25, loop()
Blink1 Running
17:02:39.302 [up:08s:828ms perf:1100ms]   Blink1.ino, line 28      loop()
Blink1 is paused at Blink1.ino, line 28, loop()
Blink1 Running
17:02:44.003 [up:13s:504ms perf:0ms]   Blink1.ino, line 25      loop()
Blink1 is paused at Blink1.ino, line 25, loop()
Blink1 Running
17:02:49.269 [up:18s:768ms perf:1100ms]   Blink1.ino, line 28      loop()
Blink1 is paused at Blink1.ino, line 28, loop()
« Last Edit: Jun 20th, 2018 at 12:06am by RalphF »  
Back to top
 
IP Logged
 
RalphF
Junior Member
**
Offline


Posts: 29
Joined: Dec 2nd, 2016
Re: No COM ports in drop down list
Reply #29 - Jun 20th, 2018 at 4:22am
Print Post  
I switched cables and finally got my Teensy 3.2 to work in debug mode.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No COM ports in drop down list
Reply #30 - Jun 20th, 2018 at 10:12am
Print Post  
Well done and thanks for the update.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint