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 Debugging when Hardware or Software Serial is on (Read 2518 times)
katanga
Newbies
*
Offline


Posts: 2
Joined: Jun 18th, 2016
Debugging when Hardware or Software Serial is on
Jun 18th, 2016 at 12:57pm
Print Post  
Hello, 
As I can understand, debugging made by sending some serial data from/to Arduino to/from Visual Micro.
So, to use the Hardware serial at debugging time, I need to configure the Visual Micro Debugger to Software Serial and I should to connect some USB-Serial adapter (FTDI for example).
Am I right?
If I can use all pins for this Software Serial Debugging (Dn and An) or it should be the specific pins?
Is it the same thing with the Hardware Serial?
If I use Hardware and Software serial, can I use the Visual Micro to upload/debug the code?

Thank you a lot!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging when Hardware or Software Serial is on
Reply #1 - Jun 18th, 2016 at 1:11pm
Print Post  
Hi,

You are doing a lot with Serial already so it might all depend on what you are doing.

1)

If you are simply sending messages (from the Arduino Serial with line terminators) then the debugger can share the Serial port. If your code uses Serial.available() and Serial.read() then then you can only use the debugger in "Trace Only - No Break" mode.

That applies to any connection regardless of port or pin. 

2)

For SoftwareSerial if you are using that already it might be a problem but probably okay but again in Trace only mode. You will read in the following documentation how to change the Port, Pin(s) or Speed for debug.

SoftwareSerial can work with one pin for Trace and a second pin if you want to break or update the values of variables during debug. The pin or pins you choose must comply to the the SoftwareSerial specification where applicable.

I hope this starts to help you. I realize it might not entirely answer your questions so feel free to request clarification. 

Thanks
  
Back to top
IP Logged
 
katanga
Newbies
*
Offline


Posts: 2
Joined: Jun 18th, 2016
Re: Debugging when Hardware or Software Serial is on
Reply #2 - Jun 18th, 2016 at 1:15pm
Print Post  
Thanks! It's understood now.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint