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 DTR activated on opening serial monitor (Read 6290 times)
dkallergis
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2012
DTR activated on opening serial monitor
Dec 11th, 2012 at 1:39am
Print Post  
Each time I open the serial monitor, the Arduino board is reset. The board is also reset if I press Connect in the serial monitor to close and reopen the serial port connection.

Is it a bug or am I doing anything wrong because in an older version it would not reset the board unless I pressed the DTR checkbox on the serial monitor.

I have checked that Tools->Options->VisualMicro->Communications->DTR is false and tried changing Properties->StartupDelayOrDTR to false but no luck...

I am running version 1.1211.04 with latest debugger.

Thanks,Dimitris
« Last Edit: Dec 11th, 2012 at 1:44am by dkallergis »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: DTR activated on opening serial monitor
Reply #1 - Dec 11th, 2012 at 4:22pm
Print Post  
If you open the serial monitor when a non-debug/release version is uploaded to the arduino does it still reset when DTR is OFF or is this a debug problem only?
« Last Edit: Dec 11th, 2012 at 5:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
dkallergis
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2012
Re: DTR activated on opening serial monitor
Reply #2 - Dec 11th, 2012 at 8:36pm
Print Post  
I have two mega boards, one runs on an old 'sketch' that had been compiled on a previous version of visual micro without debugger, the other I tried with a debug compile and a release compile.
All cases had the same behaviour i.e. either when I open the serial monitor or when I uncheck and check the 'connect' box on an open serial monitor, the board resets.
The DTR checkbox is unchecked in all occasions on the serial monitor. If I check and uncheck DTR it also resets as it should. Hope that helps.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: DTR activated on opening serial monitor
Reply #3 - Dec 28th, 2012 at 7:36pm
Print Post  
I am having trouble replicating this.

One thing that might be of interest is that the StartUpDelayOrDtr setting only takes affect after next compile. 

So if you have a debug version of the program already uploaded to the arduino that had StartUpDelayOrDtr=True then the DTr will be forced on each time you open the serial monitor.

Two questions:-

Does this problem happen if you upload a non-debug version?

Have you tried to re-compile and upload a debug version with StartupDelayOrDtr=false?

  
Back to top
IP Logged
 
dkallergis
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2012
Re: DTR activated on opening serial monitor
Reply #4 - Jan 12th, 2013 at 2:58am
Print Post  
Tim@Visual Micro wrote on Dec 28th, 2012 at 7:36pm:
only takes affect after next compile


You are right! Problem solved!

Sorry about that, I guess I somehow forgot to recompile before returning StartUpDelayOrDtr to True... Roll Eyes
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint