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 Debug: Tracing and Serial communication (Read 3774 times)
cybermec
Junior Member
**
Offline


Posts: 19
Joined: Jun 3rd, 2013
Debug: Tracing and Serial communication
Jun 29th, 2013 at 1:05pm
Print Post  
Hello,
I would like to communicate with my Arduino program through USB using Serial library and using Visual Studio Trace points together when debugging. Is it possible? And how?
Thanks for your help
Regards
« Last Edit: Jun 29th, 2013 at 1:06pm by cybermec »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug: Tracing and Serial communication
Reply #1 - Jun 29th, 2013 at 2:24pm
Print Post  
Hello,

With the default config your arduino code can send serial text messages during debug. These message will display in the Serial Monitor. This is called shared USB mode. In this mode you can also send messages to the Arduino from the Serial Monitor.

Alternatively you can set the debugger to use different hardware serial port if available with the board you are using. See project properties called RemoteTransport, RemotePort and LocalPort

Or the debugger can use SoftwareSerial on any two digital pins if you have something like an FTDI cable. RemoteTransport, RemoteTx, RemoteTx and LocalPort

The latter parts of this video describes some of this http://www.youtube.com/watch?v=fFM8_RhIG0U

This wiki article also describes some of this http://www.visualmicro.com/post/2012/05/06/Configure-debug-for-other-types-of-se...

Also you can see the tool tip help below each project property for more info.

  
Back to top
IP Logged
 
cybermec
Junior Member
**
Offline


Posts: 19
Joined: Jun 3rd, 2013
Re: Debug: Tracing and Serial communication
Reply #2 - Jun 29th, 2013 at 10:20pm
Print Post  
Thanks I will test that.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint