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 VS Restarts when Serial Auto-Reconnects (Read 4000 times)
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
VS Restarts when Serial Auto-Reconnects
Sep 9th, 2013 at 3:43pm
Print Post  
I have an EtherMega application that powers itself down and then reattaches itself to power periodically.  
If I have Visual Micro running on the board when this happens it causes my VS 2012 to shut down and restart.

I assume its something to do with USB enumeration but is there a solution?
« Last Edit: Sep 9th, 2013 at 3:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS Restarts when Serial Auto-Reconnects
Reply #1 - Sep 9th, 2013 at 3:52pm
Print Post  
Hi James, we will have to test this some more. Can you confirm that the serial monitor is open and the "connect" checkbox is ticked when this problem happens?

If yes, then in the short term please untick the "connect" when your board is due to reboot.

We will, at least, try to make a service release over the next few days that will allow you to switch off the new "auto-connect" feature.
« Last Edit: Sep 9th, 2013 at 3:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
Re: VS Restarts when Serial Auto-Reconnects
Reply #2 - Sep 9th, 2013 at 4:15pm
Print Post  
Yes Tim unchecking the "connect" checkbox before a power cycle solves this problem.
My software knows when a power cycle is about to happen so it could disconnect itself but its unclear to me how you disconnect from the serial port.
Is this possible?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS Restarts when Serial Auto-Reconnects
Reply #3 - Sep 9th, 2013 at 4:16pm
Print Post  
Best to wait for the next release
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS Restarts when Serial Auto-Reconnects
Reply #4 - Sep 11th, 2013 at 4:36pm
Print Post  
James, would you please try the latest release 1309.11. 

Please see if VS disappears when your board reconnects? That means leaving the "Connect" button checked.

If it is still a problem there is a new Tools>options>visual micro setting called "Serial>Auto Reconnect". Set it to false and Visual Micro will work as it used to where you have to use the Connect checkbox to manually connect/disconnect

Thanks, look forward to hearing when you get a spare mo.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint