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 Teensy 3.2 Serial Monitor Problem (Read 3707 times)
Aaron Ryan
Newbies
*
Offline


Posts: 2
Joined: Feb 12th, 2014
Teensy 3.2 Serial Monitor Problem
Sep 9th, 2016 at 5:52pm
Print Post  
Visual Micro with Visual Studio 2015 looks like a great development platform for helping take my Teensy project to the next level of complexity, but I'm having an issue with the Serial Monitor.

When I connect the board to the COM port and upload the sketch, everything is fine...input and debugging output work great.  When I disconnect the Serial COM port from the board, by unplugging it, clicking the CONNECT button or "stopping" the Serial monitor, the sketch freezes and won't restart, even after power down and resetting the board.

Is there any advice on how to gracefully disconnect the board and have it run the sketch properly?  I really don't want to have to comment and uncomment my Serial.println() code, and re-upload  every time I wan to run the sketch standalone.  It seems that is what is being suggested at the bottom of this page:

http://www.visualmicro.com/page/Teensy-for-Microsoft-Visual-Studio.aspx

Thanks for any help.  If I can solve this problem, then I'm sold and will buy the pro license.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.2 Serial Monitor Problem
Reply #1 - Sep 9th, 2016 at 9:55pm
Print Post  
Hi,

I am not sure this is anything to do with Visual Micro. Let;s try a few tests

Switch the tool bar from Debug to Release then upload and confirm if problem still exists.

Your own serial should be the only factor to consider in this test.

Thanks
  
Back to top
IP Logged
 
Aaron Ryan
Newbies
*
Offline


Posts: 2
Joined: Feb 12th, 2014
Re: Teensy 3.2 Serial Monitor Problem
Reply #2 - Sep 10th, 2016 at 5:21pm
Print Post  
Switching from Debug to Release solved the problem!  Thanks!  Sold.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 3.2 Serial Monitor Problem
Reply #3 - Sep 10th, 2016 at 8:08pm
Print Post  
Great thanks for the update.

What was happening was that one or more of the breakpoints (red spots next to code) where set to "stop and wait for the Continue/F5 command". 

So it is always best to make a "Release" upload when you finish debugging, as you have done. 

fyi:

  • Check the "Continue Execution" checkbox on each break-point if you ever want "Trace Only" debugging. 
  • The "vMicro>Debugger>Trace only" command is another alternative which forces all breaks points to continue.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint