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 Timeout when uploading to Mega clone using FTDI bridge (Read 3161 times)
Casey
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2014
Timeout when uploading to Mega clone using FTDI bridge
May 17th, 2018 at 1:06am
Print Post  
I'm bringing up Atmel Studio 7.0 for the first time and I'm not able to program a ATmega2560 clone using an FTDI bridge.  I get several timeout messages from avrdude and then an uploader process failed error.

Here's what I've done so far:
1. Verified upload is working for an Arduino Mega using the USB cable
2. I uploaded the bootloader using my AVR Dragon and that went fine
3. I've tried 2 different Mega clones (one of them is new so maybe it has a layout/ soldering problem) and both give the timeout error.
4. I've tried 2 different FTDI bridges (one from Sparkfun and the other from Adafruit) and both give the timeout error.

It feels like I'm not setting this up right in Visual Micro/ Atmel Studio 7.0.  My settings are all the same as when I got it to work using a regular Arduino Mega except I changed the COM port from the Mega to the FTDI bridge.   

I did notice that my "Programmer" menu in vMicro/Uploader has lots of stuff that isn't on the 'Arduino for Atmel Studio 7' page (http://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx). ; I also don't have a menu selection for "Atmel studio Device Programmer" however I don't think any of that matters because "Always user programmer for upload (Instead of Port/IP)" is not checked.

I think my next thing to try will be to install Atmel Studio 6.2 and try from there.  Any other ideas?  It's possible I've gotten unlucky on clones or FTDI bridges, but this really feels like a Visual Micro/ Atmel Studio 7.0 configuration issue.  Any thoughts?

Thanks.
  
Back to top
 
IP Logged
 
Casey
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2014
Re: Timeout when uploading to Mega clone using FTDI bridge
Reply #1 - May 18th, 2018 at 12:10am
Print Post  
Well, it's always where you aren't looking.  It turns out VisualMicro, Atmel Studio 7.0 and the FTDI bridges were all fine.  I had 2 problems:

1.  The "good" clone I had was in fact bad.  I found another one that uploaded code without issue, which led to:
2.  I was using the wrong bootloader.  The correct bootloader for the ATmega2560 is stk500boot_v2_mega2560.hex.  Stack exchange was helpful here: https://electronics.stackexchange.com/questions/7769/how-to-burn-arduino-mega-25...

The new clone is uploading code fine now from VisualMicro/ Atmel Studio 7 and the old clone is in the trash.

Hopefully this helps someone...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Timeout when uploading to Mega clone using FTDI bridge
Reply #2 - May 18th, 2018 at 1:08pm
Print Post  
Useful thanks for the update. There are a lot of dodgy cables, usb drivers and clones around so it can be confusing.

Just to confirm that standard upload uses the arduino bootloader over serial. All other programmer/atmel options don't use the bootloader so normally not needed.

The "vMicro>Uploader>Burn bootloader" will apply the correct bootloader (same as arduino ide) using the currently selected programmer regardless of the "use programmer for upload" setting.

The "Use Atmel Device Programming" programmer takes you outside of all Visual Micro (Arduino) upload and bootloader capabilities, hands over entirely to the atmel studio project properties and device programming dialogs.

« Last Edit: May 18th, 2018 at 1:09pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint