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 missing character in serial.print() when (MicroDebug) is set full (Read 3610 times)
klambert
Newbies
*
Offline


Posts: 6
Joined: Dec 5th, 2015
missing character in serial.print() when (MicroDebug) is set full
Apr 18th, 2017 at 8:58pm
Print Post  
I have written a little arduino sketch. Some librarys are bound in the background but not used in the sketch. (see SerialPrintError2.jpg)

When setting (MicroDebug) to full the last char of the string is missing. (see SerialPrintError2.jpg)

Switching to none the last char is in place. (see SerialPrintError1.jpg)

any hit to this problem could be be helpfull.

regards Knut
« Last Edit: May 10th, 2017 at 11:51am by Tim@Visual Micro »  

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: missing character in serial.print() when (MicroDebug) is set full
Reply #1 - Apr 18th, 2017 at 9:27pm
Print Post  
Hi,

thanks for the report I will look into it.

It might or might not help to know that in debug mode the serial monitor expects to read lines of input. So because you have not used Serial.println() or have not added \r\n to your output strings the serial reader will wait a few seconds before showing the incoming serial data. I expect the same routine has an issue that is not showing the last char.

So using Serial.println(s) will work better but might not be what you want to do.
  
Back to top
WWW  
IP Logged
 
klambert
Newbies
*
Offline


Posts: 6
Joined: Dec 5th, 2015
Re: missing character in serial.print() when (MicroDebug) is set full
Reply #2 - Apr 19th, 2017 at 6:59am
Print Post  
Hi,

thanks for your reply. 

If i instead print println or a secound it works. However, then the \n sign is too much for me. A second print() works. The first print() is complete and at the secont print() the last character is missing again. And the second print is over. A print(\n) after the first print() completes the string output.

Later, instead of the terminal a raspberry reads the messages and I can not be sure at present what output the program actually produces.

  

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: missing character in serial.print() when (MicroDebug) is set full
Reply #3 - Apr 19th, 2017 at 9:39am
Print Post  
Thanks

There will be a fix for the missing last char when not using line terminators.

However it might be useful to note that the debugger shares the serial port as a default.

You can use a different port for the debugger or you can use the softwareSerial option that requires one digital pin for trace and a second pin if you want to break/update vars.

Using an alternative port for debug would allow the pi to remain connected and working during debug.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing character in serial.print() when (MicroDebug) is set full
Reply #4 - Apr 19th, 2017 at 8:38pm
Print Post  
more

This is now resolved in the next release of visual studio version and will be resolved in atmel studio during the next few days/week.

http://www.visualmicro.com/forums/YaBB.pl?num=1491650979
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint