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 Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window (Read 2089 times)
CameronG
Newbies
*
Offline


Posts: 1
Joined: Aug 7th, 2019
Able to see serial debug info with Arduino IDE tools, but not in Visual Micro's Serial window
Aug 7th, 2019 at 5:52am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
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 10:10am
Print Post  
Which board? 
Is the DTR button on the monitor enabled?
Is this with Release or Debug mode enabled?
  
Back to top
IP Logged
 
milesf
Newbies
*
Offline


Posts: 8
Location: UK
Joined: Jun 11th, 2018
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 3:32pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
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 3:36pm
Print Post  
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.

« Last Edit: Sep 19th, 2019 at 3:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint