AVR Device not responding

Hello, sorry to hijack this post, but i’m having the same problem. The arduberry was working great, and suddenly it stopped working with the errors posted above, i.e. initialization failed, rc=-1. I currently have nothing plugged into the Arduberry (just trying to upload the blink sketch) and the Rpi has a Wi-Pi wifi adapter plugged in… Both lights on the Arduberry are lit solid green. There doesn’t appear to be any loose pins/chips on the board. please help.

i’ve run sudo avrdude -c gpio -p m328p

it gives:

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

The troubleshooting script gives:

troubleshooting_script_v1
Check for dependencies
======================
python 2.7.3-4+deb7u1 install ok installed
python-pip 1.1-3 install ok installed
git 1:1.7.10.4-1+wheezy1+rpi2 install ok installed
libi2c-dev 3.1.0-2 install ok installed
python-serial 2.5-2.1 install ok installed
python-rpi.gpio 0.5.7-1 install ok installed
i2c-tools 3.1.0-2 install ok installed
python-smbus 3.1.0-2 install ok installed
arduino 1:1.0.1+dfsg-7 install ok installed
minicom 2.6.1-1 install ok installed
scratch 1.4.20131203-2 install ok installed

wiringPi Found
wiringPi Found
I2C already removed from blacklist
SPI already removed from blacklist

Check for addition in /modules
==============================
I2C-dev already there
i2c-bcm2708 already there
spi-dev already there

Setup for Serial for BrickPi
============================
Clock speed not Configured(ERR)
Serial Port Enabled
Serial Port Login Already Disabled

Hardware revision
=================
gpio version: 2.20
Copyright (c) 2012-2014 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Model B+, Revision: 1.2, Memory: 512MB, Maker: Sony

Read pins
=========
 +-----+-----+---------+------+---+--B Plus--+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |
 |   2 |   8 |   SDA.1 | ALT0 | 1 |  3 || 4  |   |      | 5V      |     |     |
 |   3 |   9 |   SCL.1 | ALT0 | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 0 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |  OUT | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 1 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |  OUT | 0 | 23 || 24 | 1 | OUT  | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 1 | ALT0 | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 0 | 27 || 28 | 0 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 0 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |   IN | 0 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 1 | OUT  | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+--B Plus--+---+------+---------+-----+-----+

Check I2C
=========
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Check the /dev folder
=====================
i2c-1
spidev0.0
spidev0.1
ttyAMA0

============
=USER STATS=
============
BrickPi Found
Arduberry Found
grovePi Found
GoPiGo Found

BrickPiStatus
=============

BrickPi Not Found (ERR)

Hi,
Do you remember what exactly were you doing when the Arduberry stopped working.

Does starting with a fresh SD Card help or do you get the same problem.

-Karan

Hello,

I’ve the same problem since this morning. It seems that problem occurred when I relaunch by error a sketch upload while another one was still in progress.

I join the troubleshooting output script.

Thanks by advance for help !

Hi eric222,
Are you unable to upload the code to Arduberry. Have you tried restarting the Raspberry Pi and disconnecting anything connected to the Arduberry and then try to re-upload the code from the Arduberry.

The Arduberry was work fine for you earlier, right.

-Karan

Hi Karan,

No, I’m unable to upload any code to Arduberry. I’ve tried with only Arduberry connected to raspberry but I’ve still the same error message from avrdude. It seems that the Arduberry is invisible. The 2 green Leds on Arduberry are lighted.

I tried with the Dexter raspbian flavour, but without any success.

The problem occured suddenly yesterday. It seems to me that it happened after I launch a sketch upload while another upload was still in progress (strange …).

Before everything always worked properly, and I used the Arduberry from some months without any problem at all.

Thanks for your help again !

Hi,
Can you try running avrdude -c gpio -p m328p on the terminal and post us what you see.

-Karan

Hi,

Here the output of the command :

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Eric

Your Arduberry was working properly before, right? And are you sure that you had just uploaded code twice on the Arduberry? Is there any chance that something shorted on the Arduberry?

Do you have an Arduino UNO or an AVR programmer in hand?

-Karan

Yes all worked properly before. I saw the error message in Arduino IDE after I launched an upload process, and so I realized that the previous wasn’t finished.

I didn’t touch either the raspberry or the Arduberry. I had 2 “Adafruit PWM Driver 16 channel” shields with I2C adresses 0x40 and 0x41, and 3 servos attached on the 0x40 shield.

Unfortunately, I doesn’t have any Arduino card or AVR programmer.

Hey Eric, we think your Arduberry may have been permanently damaged. I don’t think there’s much that can be done at this point.

I had this exact problem with my first experience with the ArduBerry. The first program I tried to run was the “blink” sketch as this is recommended on http://www.dexterindustries.com/Arduberry/getting-started/ in step 8. Blink by default uses pin 13 and, as the ArduBerry doesn’t have an LED on pin 13, the obvious thing is to hook an LED up to pin 13 to confirm that is it working. However, this is what causes the upload problem. As Karan pointed out in a previous reply, the GPIO programmer uses pins 10 - 13 to send the code to the ArduBerry and with an LED on pin 13, it fails. I tested the other pins and it fails if the LED is on pin 11 as well, but it seems to work if the LED is attached to pins 10 or 12. Unhooking the LED from pin 13, uploading the sketch, and then hooking the LED back up to pin 13 solved the problem and the sketch works as advertised. So if you are using pins 10 - 13 in a sketch, you can continue to use them, you just need to disconnect them from your circuit before you upload the sketch. It would be a good idea to make mention of this in step 8 on http://www.dexterindustries.com/Arduberry/getting-started/.

Great advice. We will try to make these changes in the documentation. Thank you!

Okay now I’m seeing this. All I was trying to do is run the simple blink example. I am using pin 8.

Here is the output from ‘avrdude -c gpio -p m328p’:
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

Problem ID is 246 for troubleshooting.sh.

Also I do not have an Arduino UNO or an AVR programmer.

Any ideas?

Thanks.

Hey,
Was the Arduberry working properly before? Are you running the Dexter Industries flavor of Raspbian or something of your own? Does sudo avrdude -c gpio -p m328p also give the same result and can you add a picture of your setup.

-Karan

Hi Karan.

Okay this is very strange. I posted a response yesterday night but its gone now.

I am using default Raspbian. The command you provided gives the same output as what I ran before (without sudo).

Yes. The Arduberry was working fine. I bought the board quite some time ago and when I first got it I loaded a blank sketch just to see if I could get it to load. That worked fine and I really didn’t do anything with it again until just a few weeks ago.

I tried the blink example (using pin 8) and that worked fine. I did a few more loads with lower delays (faster blink) and it was on one of these that sketches stopped loading.

Hey,
Do you still get the same output with the LED disconnected and with just the Arduberry connected to the Raspberry Pi.

-Karan

Yes. I still get the same output (with everything removed) when I attempt to upload a blank sketch (bare minimum) using ctrl-shift-u.

Hey,
There is a very big chance that you might have accidentally destroyed the chip on the Arduberry. The easiest thing that you can do to is to get an Atmega chip from Adafruit or SParkfun (https://www.sparkfun.com/products/9061) and try replacing it.

-Karan

Hi,

I am responding to this post because I am having the same error when I plug in my Adafruit Ultimate GPS Logger Shield. I just did a fresh install and got the blink program to work when attaching an LED. I then removed the LED and added the GPS shield.

I am using a Raspberry Pi 2.

Here is my output for "avrdude -c gpio -p m328p"
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

I have used this same aruberry and gps shield on another Pi I have but that one is a B+ and I do not receive the error there.

Any help is much appreciated.

-Dan

Hey Dan,
Not really sure what’s causing the problem. You might see the problem if there are other devices on the SPI bus. This shield has an SD card slot which is connected to the SPI bus, can you make sure that you don;t have anything in the SD card slot. Also, can you try downloading our Raspbian image image and try that to see if that helps: http://www.dexterindustries.com/howto/install-raspbian-for-robots-image-on-an-sd-card/. The hostname to login is dex.local, the username: pi and the password: robots1234.

Do let us know if this helps.

-Karan