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 Use of Serial.begin (Read 3690 times)
cybermec
Junior Member
**
Offline


Posts: 19
Joined: Jun 3rd, 2013
Use of Serial.begin
Sep 2nd, 2013 at 9:56pm
Print Post  
Hello,

I'm writing a sketch and because I'm using debugger I removed Serial.begin instruction to have traces displayed. If I keep it, no trace is displayed in VisualStudio.

Is there a simple way to deactivate this instruction when using VisualMicro and activate it when using my own application to dialog with the arduino sketch?

Thanks for your help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Use of Serial.begin
Reply #1 - Sep 2nd, 2013 at 11:27pm
Print Post  
Hi,

It is okay to leave your seria.begin in your code. You don't need to change any code for debug

The problem will be that you are using a different speed, the debugger defaults to 115200

You can alter the default debug speed using project property "RemoteSpeed" it is in the "Micro Debug" section

Does this make sense and work okay for you?
« Last Edit: Sep 2nd, 2013 at 11:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
cybermec
Junior Member
**
Offline


Posts: 19
Joined: Jun 3rd, 2013
Re: Use of Serial.begin
Reply #2 - Sep 3rd, 2013 at 8:07pm
Print Post  
Yes thanks, it is working. 
Probably I did a mistake somewhere but it is working now that's the good news.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint