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 Serial DTR resetting on connection (Read 3795 times)
jljtgr
Newbies
*
Offline


Posts: 2
Joined: Apr 26th, 2016
Serial DTR resetting on connection
Apr 26th, 2016 at 6:18pm
Print Post  
I hope this is the correct place for bug reports, I couldn't be quite sure.

Visual Micro 1604.18.0
Visual Studio 14.0.25123.00 Update 2 (2015 Community)

I seem to have an issue with the DTR line resetting to enabled(low) when connecting the Serial Monitor.

The way my ESP8266 is wired, having the DTR line low will tell the bootloader to get ready for programming when it resets.  So having the DTR toggle was very convenient when wanting to program or run code.

I'm not really sure which update changed things, but this worked fairly well when the Serial Monitor had "checkbox" options.  Now with the checkbox buttons, it's exhibiting this strange behavior.  (Unrelated, but same timeframe)

Steps to reproduce:
  • Hook a meter to the DTR pin
  • Check DTR button, meter should read logic LOW(~0v)
  • Uncheck DTR button, meter should read logic HIGH(~3.3v)
  • Uncheck Connect button, re-check Connect button
  • DTR button is still unchecked, meter should read logic HIGH, but reads LOW
  • Check DTR button, meter should read logic LOW
  • Uncheck DTR button, meter should read logic HIGH


This is mainly a problem because when the program gets uploaded, the Serial Monitor unconnects and reconnects, which resets the DTR to LOW, regardless of the checkbox button state.  To get DTR HIGH again, you may need to click the DTR button twice.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial DTR resetting on connection
Reply #1 - Apr 26th, 2016 at 8:54pm
Print Post  
Thanks, that's a good bug found. 

It will be fixed in the next release but I think a workaround is to set the project property called "Micro Debug>Startup Delay or Dtr" = False

That debug setting is clashing with the serial monitor and forcing the dtr ON. After setting is to false the Dtr button should work as expect.

I think this has been a bug since July last hear! Oops!
« Last Edit: Apr 26th, 2016 at 8:55pm by Tim@Visual Micro »  
Back to top
IP Logged
 
jljtgr
Newbies
*
Offline


Posts: 2
Joined: Apr 26th, 2016
Re: Serial DTR resetting on connection
Reply #2 - Apr 26th, 2016 at 9:16pm
Print Post  
Yes, I think that did help.  Thank you.

It didn't quite at first, but after a compile/upload cycle it seemed to take effect.

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial DTR resetting on connection
Reply #3 - Apr 26th, 2016 at 9:19pm
Print Post  
Thanks, the next release should be available in a few days. After installing please switch the StartupDelayOrDtr back on if you need debugger breakpoints early in program load such as the setup().
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint