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) Serial Monitor issues (Read 8387 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Serial Monitor issues
Jan 24th, 2014 at 3:49pm
Print Post  
Hi,

I have some issues with the Serial Monitor. The program writes to the port (I write directly to serial port for debug purposes), but sometimes I dont get the output. Strangely I can upload the program fine, but the output is not displayed. I the unplug the device from the USB cable, try this and that and suddently it works  Undecided.

It is an issue with AtmelStudio, or is the problem on my chair ? Auto Re-Connect is True.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor issues
Reply #1 - Jan 24th, 2014 at 3:51pm
Print Post  
We can do some more testing. 

1)
Are you using print() or println()

2)

Uploading with or without debug?
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor issues
Reply #2 - Jan 24th, 2014 at 3:56pm
Print Post  
1) Both Serial.print() and Serial.println

2) Right from the program, I don't use the Debugger *sight*.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor issues
Reply #3 - Jan 24th, 2014 at 3:58pm
Print Post  
What is you leave auto-reconnect unticked?

  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor issues
Reply #4 - Jan 24th, 2014 at 4:20pm
Print Post  
Tried it, afterward I had to close the monitor window and open it again.

Now it seems to be Ok. I don't always looks at the monitor window, and for some time AtmelStudio is minimsed or under another program window. Could that have an impact on the monitor window ?

I am in the hardest part of my development. To sum up, two devices talks to each other via XBees, and I look at the output window of the remote command wich use a different tool. Thing is I don't know wich devive fails (or both). Most of the time when I get back to the AtmelStudio monitor, it does not wotk  Cry.

I tried agin to send the AS monitor window behind, send commands to my device and brought back the window, it still works.

Hum, may be the auto-reconnect has to do with my issues, can't tell for sure.
  
Back to top
 
IP Logged
 
drpeej
Junior Member
**
Offline


Posts: 27
Location: UK
Joined: Dec 22nd, 2013
Re: Serial Monitor issues
Reply #5 - Jan 24th, 2014 at 4:34pm
Print Post  
I regularly find the serial port fails to open in which case I reclose and reopen it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor issues
Reply #6 - Jan 24th, 2014 at 4:38pm
Print Post  
Giles, if you are using a different app to use serial and have reconnect switched on it should be okay but maybe causing this issue.

Please don't use auto reconnect for a few days and let's see if this settles down. Auto reconnect is q relatively new feature, maybe it should default to off now that we have any easy checkbox on the serial window.

@drpeej did you try untick and then tick the connect box to close and re-open? with or without auto-reconnect? please create a new thread so we can discuss this more clearly. thanks!
« Last Edit: Jan 24th, 2014 at 4:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor issues
Reply #7 - Jan 24th, 2014 at 4:48pm
Print Post  
Tim,

each of my development tools uses a different serial port, I don't switch from one to the other.

Is it me or does Windows have a hard time dealing with peripherals.

As for serial ports, I simply HATE THEM Angry whether on a PC or any other device.

I will leave auto re-connect False for a while.
« Last Edit: Jan 24th, 2014 at 4:49pm by Gilles Plante »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial Monitor issues
Reply #8 - Jan 24th, 2014 at 5:01pm
Print Post  
Thanks, okay separate ports should have no affect on each other.

Let's see what happens with re-connect off, look forward to hear results
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Serial Monitor issues
Reply #9 - Feb 3rd, 2014 at 5:59pm
Print Post  
Hi Tim,

no special issues with auto-reconnect disable, except that each time I disconnect and reconnect the board from the port, I need to reset the connection  Wink.

I just downloaded the latest version, I will re-enable auto-reconnect, and clean up all the Serial.print() calls to make room for using your debugger.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint