Firmware update: GoPiGo not found

root@raspberrypi:/home/pi/Desktop/GoPiGo/Firmware# source firmware_update.sh
ATTENTION! Important!
BEFORE PROGRAMMING THE GOPIGO FIRMWARE, DISCONNECT THE MOTORS.
Please confirm that you’ve disconnected the motors.
Have you disconnected the motors before programming the firmware? (y/n)
y
Updating the GoPiGo firmware

Thu Jan 22 19:03:13 UTC 2015

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.

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.

=============================
Check for GoPiGo Present:

| IOError

GoPiGo Not Found

=============================

After that ran your troubleshooting.sh script obtained from github (via some of the other posts on the forum):

root@raspberrypi:/home/pi# source troubleshooting.sh

Welcome to Dexter Industries troubleshooting script

This may take a few minutes, please be patient
Press Enter to start…

Check for dependencies
Checking Serial for BrickPi
Checking Hardware revision
Read pins
Check I2C
Error: Could not open file /dev/i2c-0’ or/dev/i2c/0’: No such file or directory
Check the /dev folder
Check BrickPiStatus
python: can’t open file ‘ser.py’: [Errno 2] No such file or directory

Log File Generated

Contact Email:
chris@tetramatrix.com

Please enter your problem description. Press Enter to end
After trying the firmware update on my GoPiGo, I got an error:

python: can’t open file ‘form_fill.py’: [Errno 2] No such file or directory
Error logs sent successfully
Your Problem ID is 29452 . Please post the Problem ID along with the problem description to the Dexter Industries Forums so that we can get back to you with the solution as soon as possible.

Press Enter to exit


My blacklist for the rasp Pi are un-commented.

Thanks for any help!
Chris

Hey Chris,
How did you run the script? Was it directly from the terminal or from the shortcut on the Desktop. Can you try running it as root and see if that helps.

Sorry for the troubles.
-Karan

So I re-ran several things using sudo (see below). It appears that I don’t have /dev/i2c-0 but do have /dev/i2c-1

I then ran the same commands in the “Root terminal” without the sudo attached to each command (below) with the only difference being that the “Problem ID” was 7376 instead of what is shown below 31633.

Thanks!
Chris

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

pi@raspberrypi ~ sudo source Desktop/GoPiGo/Firmware/firmware_update.sh sudo: source: command not found pi@raspberrypi ~ sudo ./Desktop/GoPiGo/Firmware/firmware_update.sh
ATTENTION! Important!
BEFORE PROGRAMMING THE GOPIGO FIRMWARE, DISCONNECT THE MOTORS.
Please confirm that you’ve disconnected the motors.
Have you disconnected the motors before programming the firmware? (y/n)
y
Updating the GoPiGo firmware

Fri Jan 23 17:54:55 UTC 2015

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "0x7F"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0x7F:
avrdude: load data lfuse data from input file 0x7F:
avrdude: input file 0x7F contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying …
avrdude: 1 bytes of lfuse verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "fw_ver_11.cpp.hex"
avrdude: error opening fw_ver_11.cpp.hex: No such file or directory
avrdude: input file fw_ver_11.cpp.hex auto detected as invalid format
avrdude: can’t open input file fw_ver_11.cpp.hex: No such file or directory
avrdude: write to file ‘fw_ver_11.cpp.hex’ failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.

=============================
Check for GoPiGo Present:

| IOError

GoPiGo Not Found

=============================
pi@raspberrypi ~ sudo i2cdetect -y 1 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: -- -- -- -- -- -- -- -- pi@raspberrypi ~ sudo ./troubleshooting.sh

Welcome to Dexter Industries troubleshooting script

This may take a few minutes, please be patient
Press Enter to start…

Check for dependencies
Checking Serial for BrickPi
Checking Hardware revision
Read pins
Check I2C
Error: Could not open file /dev/i2c-0’ or/dev/i2c/0’: No such file or directory
Check the /dev folder
Check BrickPiStatus
python: can’t open file ‘ser.py’: [Errno 2] No such file or directory

Log File Generated

Contact Email:

Please enter your problem description. Press Enter to end

python: can’t open file ‘form_fill.py’: [Errno 2] No such file or directory
Error logs sent successfully
Your Problem ID is 31633 . Please post the Problem ID along with the problem description to the Dexter Industries Forums so that we can get back to you with the solution as soon as possible.

Press Enter to exit

pi@raspberrypi ~ $ ls /dev/i2*
/dev/i2c-1

Hey,
Are you using Dexter Industries Image or your own image?

-Karan

The SD card’s image was bad (after formatting and such), so I downloaded the Dexter Image, option 2 from:
http://www.dexterindustries.com/GoPiGo/getting-started-with-your-gopigo-raspberry-pi-robot-kit/sdcard/

-Chris

Sorry bad use of parentheses for emphasis:
The SD card’s image was bad, so I downloaded the Dexter Image (after formatting and such), option 2 from:

http://www.dexterindustries.com/GoPiGo/getting-started-with-your-gopigo-raspberry-pi-robot-kit/sdcard/

-Chris

Hi,
Looks like your firmware folder does not have the correct firmware file for the update or it is corrupted. It should have the files like this:https://github.com/DexterInd/GoPiGo/tree/master/Firmware . Can you try updating the files or use Git clone to clone the repository again .

-Karan