Pages: [1]   Go Down
Author Topic: AVRdude problem [solved]  (Read 764 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the verbose output, cut to meet the 9500 character limit. Any ideas on a fix?

Code:

avrdude: Version 5.11, compiled on Sep  2 2011 at 18:52:52
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/aurelius/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/tty.usbmodemfd16311
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.
« Last Edit: February 26, 2013, 01:30:10 am by Nick Gammon » Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12897
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


You have the wrong serial port or board selected.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Right board selection, and I'm pretty sure that is the right serial port.

I tried the loop-back test by connecting Rx and Tx with a jumper and setting the reset pin to ground. Nothing is echoed in terminal window.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12897
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


If the board uses an ATmega processor for USB-to-serial conversion you could try reflashing the processor.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmmm. Not really sure how to do that. Pressing reset on the board flashes the LED at L. If I try and upload any sketch, it hangs and the LED stays on. Not sure if that is helpful
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12897
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not really sure how to do that.

I don't know how to do that either because you haven't indicated which board you are trying to use.
« Last Edit: February 24, 2013, 05:38:16 pm by Coding Badly » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Uno on Mac OSX Lion.
Logged

Rome, Italy
Offline Offline
Sr. Member
****
Karma: 20
Posts: 442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Someone with the same setting solved the problem using a powered USB switch*. See http://arduino.cc/forum/index.php/topic,149500.msg1125561.html (please provide feedback if it works for you as well).

[edit] *I meant USB hub.
« Last Edit: February 24, 2013, 05:47:02 pm by spatula » Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12897
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The board uses either an ATmega16U2 or an ATmega8U2 for USB-to-serial conversion.

The processor supports "dfu" mode for reprogramming.  You may be able to restore the processor using that mode.  This should get you started...
https://www.google.com/search?q=atmega16u2+dfu+restore

If that doesn't work, you can use an "ISP" programmer (another Arduino compatible board will work) to try to restore the processor.  This should get you started...
https://www.google.com/search?q=arduino+atmega16u2+isp

I have not done it myself so that will very likely be the only guidance I can provide.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Spatula, I'm already plugged into a powered usb hub.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Coding Badly,

I uploaded the ArduinoISP sketch to a Mega2560, connected the appropriate pins (10-13, 5v,gnd) to the ICSP header on the Uno. Attempting to burn a bootloader with the board set to the Mega and Programmer with Arduino as ISP returns the same error. The yellow "L" LED stays lit on the uno until I reset it.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12897
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Burn bootloader doesn't work for the USB-to-serial processor.  You will have to use avrdude from the command-line.  The images are in this directory...

{Arduino IDE Root}\hardware\arduino\firmwares\atmegaxxu2\

Make certain you are using the correct ISP header.  The one closest to the USB connector is the correct choice.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And I feel like an Idiot. I was using the wrong sketch to upload. I need the Standalone AVR ISP programmer sketch from Adafruit, not the ArduinoISP sketch in the example folder. All seems to be well. Thanks everybody for trying to help me out.
Logged

Pages: [1]   Go Up
Jump to: