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 Wrong Serial port opening (Read 3701 times)
DrOldies
Junior Member
**
Offline


Posts: 16
Location: Iowa, USA
Joined: Feb 3rd, 2015
Wrong Serial port opening
Jun 5th, 2015 at 1:36am
Print Post  
I have been debugging my code on a UNO on com6 which  worked well. I have now changed to the MEGA2560 on com3 in the release mode. Here's the problem - I can open the serial Monitor (defaults to com3). During upload a second window for com6 opens and reports:

Opening port
Debug break is enabled
Debug on

tip: if your hardware does not support auto-reset and was already running when the debugger was launched then send the 'c' char using this window to force the 'current' breakpoint to continue. After that F5 or the Green tool bar arrow can be used to step between breakpoints as normal.

Debug off
Port failed to open

In the properties window Micro Debug = false, and upload port = com3.

« Last Edit: Jun 5th, 2015 at 1:37am by DrOldies »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wrong Serial port opening
Reply #1 - Jun 5th, 2015 at 1:54am
Print Post  
Hi,

Not sure I can answer all straight away but first some info.

For some months now we have implemented a simpler system to enable debugging for newer users. The simple system auto detects if the configuration name (on the tool bar) contains the word "release" or "debug".   

So if you switch to "Release" the debugger will be off. 

Alternatively to use the project property (Micro debug)=True/False switch "tools>visual micro>automatic debugging" to false.

Remember that you have to upload once after switching board or switching off debug.

If you have specified COM6 in the LocalPort Project Property this would account for debug attempting to start on COM6 yet upload happens on COM3

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint