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 Debugger Stops when external app attached (Read 3179 times)
WingedWilly
Newbies
*
Offline


Posts: 2
Joined: May 2nd, 2016
Debugger Stops when external app attached
May 3rd, 2016 at 12:38am
Print Post  
G'day
I am trying to debug a Mega script while the Mega is being controlled by and external app. I have the set the project properties local/remote to debug via the Mega's serial1/COM12. I upload the script via COM11.
As soon as I connect my external app to COM 11 loop() freezes/crashes. No errors are output. Is there a log file anywhere I can see what is going on? All the doco states that the VMD should release COM11 after the script is uploaded.
Thanks in advance
Tim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Stops when external app attached
Reply #1 - May 3rd, 2016 at 12:39pm
Print Post  
Hi,

Can you please zip and email your code to info [at] visualmicro.com

Thanks
  
Back to top
WWW  
IP Logged
 
WingedWilly
Newbies
*
Offline


Posts: 2
Joined: May 2nd, 2016
Re: Debugger Stops when external app attached
Reply #2 - May 16th, 2016 at 2:15am
Print Post  
G'day
My bad, bug in my code.
All working fine now.
Thanks
Tim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Stops when external app attached
Reply #3 - May 16th, 2016 at 2:38pm
Print Post  
Hi,

Great, thanks for the update.

Info if useful in the future...

It isn't visual micro that directly performs the upload, both visual micro and the arduino ide use a tool called avrdude.exe that is supplied with the arduino ide.

Yes avrdude shuts down the port after upload and we know that happened because your app connected using the port. Your app would fail to open the serial port if the port was still in use, therefore would not able to connect (or communicate the 2560).

If an app connects and it has enabled the DTR property on the windows COM port. then the 2560 will reboot.



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