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 Upload retry count? (Read 2364 times)
TomDuffin
Newbies
*
Offline


Posts: 1
Joined: Oct 14th, 2014
Upload retry count?
Oct 14th, 2014 at 5:46pm
Print Post  
I recently both upgraded and purchased a commercial license for Visual Micro and this (small) issue of mine has appeared since then.

When I hit compile and upload, without a board plugged in to a COM port, it seems to try the upload 7? times before failing. The output from this is just:

Code
Select All
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer 



Is there a setting somewhere to change this back to a single attempt? Or is this not a feature?

I actually often upload to a custom Atmel board that is plugged into the Serial port of a linux server in another workshop. I upload to this device using a plugin I wrote for visual studio which waits for the normal compilation to finish before finding and pushing the new .hex file to the server. With only one attempt to upload, this worked flawlessly and also lets me upload to local boards with the same button but now Visual Studio actually stops responding for a few minutes whilst it does these 7 or so retries.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upload retry count?
Reply #1 - Oct 14th, 2014 at 6:02pm
Print Post  
Hi,

Thanks for the post and buying Visual Micro.

If you have Visual Micro set to upload via COM port then it will not attempt to run avrdude if the COM port is unavailable. Instead you will see the following message and no attempt to upload will be made:-

Code
Select All
Uploading via Bootloader
Flushing the serial port
The port 'COM3' does not exist.
 



It would be helpful to see the verbose upload commands (see tools>visual micro>verbose) but it looks like avrdude it attempting a programmer upload. Is this your code causing avrdude to run or maybe you have inadvertently clicked tools>upload using programmer?

Any retries shown are a result of avrdude which is part of the Arduino IDE tool chain? When you upgraded Visual Micro if you also upgraded your Arduino Ide then this would account for any change in avrdude performance.

You might also like to know that you can create custom programmers with arduino 1.5.x and Visual Micro. This would allow you to push your hex files using your own exe code or batch files allowing Visual Micro to upload without need for an addin and also preventing any other form of upload attempt other than your own commands.

Hopefully some of this points you to a solution if not the please post the verbose upload command

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