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 How to stop a build (Read 2450 times)
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
How to stop a build
Dec 1st, 2021 at 11:18am
Print Post  
Hi,

When I tried to complie and upload sketch to my Arduino Mega2560 board. If somehow COM got disconnected when uploading in progress, it will fall to loop error as attached screenshoot. I can't do anything with visual studio but End Task it via Task Manager. So I can't copy full log to upload here, only when perform screenshot, the screen freeze to show log Smiley
« Last Edit: Dec 4th, 2021 at 3:53pm 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: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #1 - Dec 1st, 2021 at 12:05pm
Print Post  
The manufacturer of your board provides the toolchain which performs the upload. In this case it is avrdude.exe and I think, from memory, it has 90 second timeout.

We will try it to see what happens
« Last Edit: Dec 1st, 2021 at 12:07pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #2 - Dec 1st, 2021 at 1:03pm
Print Post  
From further testing it seems to depend when the board is unplugged as to whether avrdude times out or not, however this is unrelated to Visual Micro as it behaves the same in the command line, and in the Arduino IDE.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #3 - Dec 1st, 2021 at 8:02pm
Print Post  
We looked at this. Visual Micro should kill the process if it hangs around too long. We will look at why that doesn't happen. For now you can kill the avrdude.exe process in task manager.

Thanks for the report.
  
Back to top
WWW  
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #4 - Dec 4th, 2021 at 6:35am
Print Post  
Tim@Visual Micro wrote on Dec 1st, 2021 at 8:02pm:
We looked at this. Visual Micro should kill the process if it hangs around too long. We will look at why that doesn't happen. For now you can kill the avrdude.exe process in task manager.

Thanks for the report.


Kill avrdude.exe help a lots. It save times for reopen visual studio. Thank you so much.
  
Back to top
 
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #5 - Dec 4th, 2021 at 10:43am
Print Post  
I have another query: Is that possible to support a stop build/upload sketch?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #6 - Dec 4th, 2021 at 3:16pm
Print Post  
Yes, if you click the build button again during a build it stops.
  
Back to top
WWW  
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: VS2019 - Upload sketch go to loop error when accident got COM disconnected
Reply #7 - Dec 8th, 2021 at 11:48pm
Print Post  
Tim@Visual Micro wrote on Dec 4th, 2021 at 3:16pm:
Yes, if you click the build button again during a build it stops.


It help a lots. Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint