go_away

Author Topic: avrdude: initialization failed, rc=-1  (Read 616 times)

0 Members and 1 Guest are viewing this topic.

Offline MoyamoTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
avrdude: initialization failed, rc=-1
« on: July 07, 2013, 07:09:10 AM »
Hi,
I am trying to build the $50 robot. So far I have connected everything on the perf board and am trying to upload a .hex file to the microcontroller.

The programmer I am using is the Pocket AVR Programmer from SparkFun (https://www.sparkfun.com/products/9825). I am trying to upload hold_servo.hex (It zeroes the servos). I am trying to use AVRDude to upload the hex file, but I get this error:

Code: [Select]
> avrdude -c usbtiny -p m8 -U flash:w:hold_servo.hex

avrdude: initialization failed, rc=-1
        Double check the connections and try again, or use -F to override the check

avrdude done. Thank you.

All the connections are fine and the circuit is powered. The voltage regulator is outputting 4.6V. This is lower than it should be (5V) but it is still within the operating range of the ATMega8.

Does anyone know what could be wrong? Is it safe to use the -F flag?

P.S. I am using the 6-pin configuration.

Offline MoyamoTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: avrdude: initialization failed, rc=-1
« Reply #1 on: July 07, 2013, 07:15:55 AM »
Oops! Turns out I connected the programmer wrong way round. Sorry for the trouble.

 


Get Your Ad Here

data_list