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
Hot Topic (More than 8 Replies) problem with serial output debugger window using softwareserial (Read 7669 times)
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
problem with serial output debugger window using softwareserial
Jan 20th, 2016 at 5:39pm
Print Post  
I have followed : http://www.visualmicro.com/post/2012/05/06/Configure-debug-for-other-types-of-se...

yet still have issues.


my code includes "softwareserial.h
rx and tx on pin 8 and 9

vis micro:

local port: com22
speed 9600
rx tx set to 8 and 9

when I compile I get the error:


Speedo.ino:70:20: fatal error: VM_DBG.h: No such file or directory
:compilation terminated
Error compiling project sources

What is wrong? Thank you.
  
Back to top
 
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #1 - Jan 20th, 2016 at 6:04pm
Print Post  
also what i really want is to use software serial on arduino to output data that I can see in VisMicros Debugger Serial window.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: problem with serial output debugger window using softwareserial
Reply #2 - Jan 21st, 2016 at 1:46am
Print Post  
Hi,

There is an updated release of visual micro (1601.21) which contains a fix for SoftwareSerial debug when the new "Visual Micro>Deep search includes" feature is enabled (it is by default)

As an alternative you can not bother specifying the Rx and Tx in project properties and you can enter the name of your own SoftwareSerial object into the RemotePort project property.

For example if you create the following code in your .ino source you can set the RemotePort project property to be MySoftSerial

Code
Select All
#include <SoftwareSerial.h>
SoftwareSerial MySoftSerial = SoftwareSerial(5, 6);
 



With this combination you are able to use the MySoftwareSerial in your own code and when you switch from Debug compile to Release your own code will continue to work.

If you want your own code to also be excluded in Release mode then surround it with #ifdef VM_DEBUG
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #3 - Jan 29th, 2016 at 5:16pm
Print Post  
no luck.   when I set remoteport to mysoftserial I get the below errors.
Help ASAP ! ?

Speedo.ino:In function 'void setup()
Speedo.ino:170:79: error: no matching function for call to 'VisualMicroDebug::begin(SoftwareSerial*, int)
:void setup () { 
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
Speedo.ino:candidates are
Speedo.ino:In file included from
VM_DBG.h:begin(HardwareSerial*)
:void begin(HardwareSerial *theSerial)
VM_DBG.h:candidate expects 1 argument, 2 provided
VM_DBG.h:begin(HardwareSerial*, long unsigned int)
:void begin(HardwareSerial *theSerial, unsigned long baud)
VM_DBG.h:no known conversion for argument 1 from 'SoftwareSerial*' to 'HardwareSerial*
Error compiling project sources
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: problem with serial output debugger window using softwareserial
Reply #4 - Jan 29th, 2016 at 5:20pm
Print Post  
You need to say what properties you have set in Remote Transport, Port, Pins etc. so I can know what you are doing.
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #5 - Jan 29th, 2016 at 5:21pm
Print Post  
and i also have this error.   using the vis micro serial debugger, the debugger shows output from my ard uno using softwareserial and the fdti cable however,   if I type data in the top field, the ard does not see any data coming into it.  also mySoftwareSerial.isListening ()  always returns FALSE  when I did do a begin()
  
Back to top
 
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #6 - Jan 29th, 2016 at 5:23pm
Print Post  
your instructions did not say to set any rx tx pins in yur ide.   only to set the port.  i also set the transport  to sws and now it compiles but I can not send data from vis studio ide debugger into the aduino.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: problem with serial output debugger window using softwareserial
Reply #7 - Jan 29th, 2016 at 5:24pm
Print Post  
You need to explain what breakpoint properties you have set

If you want to read the serial you can not use debug breakpoints you must use Trace Only

Please create a single thread for each topic otherwise things get confusing and other users don't get good support.

I am confused by your other post in this same forum board where you say it was working

http://www.visualmicro.com/forums/YaBB.pl?num=1453421768
  
Back to top
WWW  
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #8 - Jan 29th, 2016 at 5:26pm
Print Post  
what do you want me to send you?

I want the ardunio uno via softwareserial and fdti cable to read what I tyoe in your vis micro serial window  (as it could do if i were using hardware RX).

Help?
  
Back to top
 
IP Logged
 
GeeTee
Member
***
Offline


Posts: 103
Joined: Nov 10th, 2014
Re: problem with serial output debugger window using softwareserial
Reply #9 - Jan 29th, 2016 at 5:39pm
Print Post  
advice please?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: problem with serial output debugger window using softwareserial
Reply #10 - Feb 1st, 2016 at 1:22pm
Print Post  
I don't understand. It works the same as hardware serial except it can't work well at higher speeds.

Depending on the board the software serial must be assigned to pins that are interruptible.

Until you have it working and understand software serial I suggest you switch off debug.

Then your Serial.read() code should be the same for software serial and hardware serial.

I can't guess what you know and what code you have created so the above is all I can say.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint