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 AVRDUDE timeout (Read 5777 times)
keithf
Newbies
*
Offline


Posts: 3
Joined: Sep 8th, 2015
AVRDUDE timeout
Sep 8th, 2015 at 5:01am
Print Post  
I am new to Atmel studio and Visual Micro.  I have installed both and can create and edit Arduino sketches ok but am not managing to get any sense out of the Visual Micro debugging capability. Breakpoints just seem to be ignored. When I compile my sketch with F7 all appears perfectly normal but if I compile with F5 for debugging there are a bunch of timeout errors as below.  How do I fix the timeouts? 

Compiling 'Inverter_link_to_Exosite_V1' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Binary sketch size: 29,612 bytes (used 12% of a 253,952 byte maximum) (2.40 secs)
Minimum Memory Usage: 1736 bytes (21% of a 8192 byte maximum)
.
Tutorial Mode
.
The usb debugger has been activated in 'Automatic Debugging' mode. Switch off this feature? Untick 'Tools>Visual Micro>Automatic Debugging'
Any one of the following will stop the debugger:- Ctrl+F5, the blue square on the serial port tool bar, untick 'Connect', building the project.
.
Compiling debug version of 'Inverter_link_to_Exosite_V1' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
Binary sketch size: 30,208 bytes (used 12% of a 253,952 byte maximum) (2.82 secs)
Minimum Memory Usage: 1909 bytes (23% of a 8192 byte maximum)
Uploading to I/O board using 'COM18'
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
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE timeout
Reply #1 - Sep 8th, 2015 at 12:15pm
Print Post  
Hi,

It doesn't actually appear related to debugging. 

It appears that usb upload is failing on Com18

Does it upload okay using the Arduino Ide?

  
Back to top
IP Logged
 
keithf
Newbies
*
Offline


Posts: 3
Joined: Sep 8th, 2015
Re: AVRDUDE timeout
Reply #2 - Sep 8th, 2015 at 8:34pm
Print Post  
Hi
Same timeout happens with Arduino IDE now. There was no problem prior to installing Atmel Studio and Visual Micro. I have just tried a new Arduino and it works fine so perhaps something is deteriorating in my old Arduino although a Google search shows it to be a common problem with the Mega2560 with perhaps some issues between it and AVRDUDE versions. I have also recently updated the Arduino IDE to the latest version - perhaps that altered something for AVRDUDE.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: AVRDUDE timeout
Reply #3 - Sep 8th, 2015 at 8:46pm
Print Post  
Hi,

Visual Micro does not install anything like usb drivers or avrdude etc. It just uses whatever is installed so can't affect things.

Atmel studio installs jungo usb drivers which can affect programmers such as "avrisp mkii" but I haven't heard it affecting std arduino usb before so I think we can also remove atmel studio from consideration.

The windows installer for the Arduino Ide is the only software that installs the Arduino usb drivers so updating arduino will change this area.

When you have a working system you can normally just download the arduino zip for version upgrades. The windows installer isn't really required.

I agree with you that some change to the arduino ide and its tool chain are the things to look at. The best way to see what you are using is to switch on "tools>visual micro>verbose" then attempt the upload and email the output window text to info [at] visualmicro.com. In the arduino ide the same verbose feature is available in the "file>preferences" dialog. 

If you send an email with the attempted upload outputs please include a link back to this post

Thanks

  
Back to top
IP Logged
 
keithf
Newbies
*
Offline


Posts: 3
Joined: Sep 8th, 2015
Re: AVRDUDE timeout
Reply #4 - Sep 8th, 2015 at 9:19pm
Print Post  
Thanks for your help.
Attached is the verbose output
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint