Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Usb/Serial/Udp Debugging >> Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
https://www.visualmicro.com/forums/YaBB.pl?num=1565157127

Message started by CameronG on Aug 7th, 2019 at 6:52am

Title: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Post by CameronG on 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?

Title: Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Post by Visual Micro on Aug 7th, 2019 at 11:10am
Which board?
Is the DTR button on the monitor enabled?
Is this with Release or Debug mode enabled?

Title: Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Post by milesf on 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

Title: Re: Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Post by Visual Micro on 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.


Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.