-1

I'm trying to program my ATtiny85 with Atmel ICE but I get this error:

avrdude: stk500v2_command(): unknown status 0xcc avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.

Does anyone know what problem is?

JYelton
  • 32,302
  • 33
  • 134
  • 249
Tova
  • 63
  • 1
  • 1
  • 4

1 Answers1

2

Common causes for this:

  1. Atmel ICE doesn't supply power to the microcontroller (as Tom mentioned in comments). It has a green LED that indicates target power, but you need to supply power separately.

  2. Make sure the RESET pin is not being held high by other parts of your circuit. The Atmel ICE needs to be able to pull it low during programming.

  3. Double check connections - just as the error suggests. I've been guilty of having MISO and MOSI swapped, having a loose wire, and having the microcontroller inserted into a breadboard backward.

  4. Make sure that the fuses haven't been set to prevent writing to the microcontroller. A good example is the RSTDISBL fuse. If that has been set, you have to use a high voltage programming mode to get around it.

  5. Swap the microcontroller out for a known working one. It's possible that the one you're trying to program has died (from static, high voltage or current, etc).

JYelton
  • 32,302
  • 33
  • 134
  • 249