Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window (Read 220 times)
CameronG
Newbies
*
Offline



Posts: 1
Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Aug 7th, 2019 at 6:52am
 
Hi,
When I first started my project and ported it into Visual Micro I was able to see the debug info from the Serial window just fine.  However, at some point that stopped working.  I don't know what setting or configuration change I did to stop that.  The serial output is still there, I can fire up the Arduino IDE's tools and serial window and see the output just fine.

I've double checked that I've got the same port selected and that I'm looking at the correct baud rate.

Is there possibly something else that I may be missing that is keeping the Visual Micro serial window from seeing the debug output from my code?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Reply #1 - Aug 7th, 2019 at 11:10am
 
Which board?
Is the DTR button on the monitor enabled?
Is this with Release or Debug mode enabled?
Back to top
 
WWW  
IP Logged
 
milesf
Newbies
*
Offline



Posts: 8
UK
Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Reply #2 - Sep 19th, 2019 at 4:32pm
 
I had this problem too.
Serial.println working fine in arduino IDE and not vMicro.
If I set the debug option to Serial in the vMicro menu, it would work, but I would also get the bloated (for release) code, and all the expression windows coming up.
I had disabled DTR and RTS for another project.  Enabling DTR fixed the issue.

Using Arduino Uno WiFi Rev2
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10463
United Kingdom
Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Reply #3 - Sep 19th, 2019 at 4:36pm
 
Thanks, that's right, the default is DTR=ON.

The DTR causes the mcu to reboot when the serial connects. Arduino IDE has it on by default and Visual Micro forces it on for serial debug mode (unless that feature is disabled).

In release mode it's always up to the user and allows serial connection without upsetting the mcu which is useful sometimes. It's mainly serial in the setup() function that can't be seen if DTR is off.

Back to top
« Last Edit: Sep 19th, 2019 at 4:36pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print