when trying to program via avrdude and STK500 my ATMEGA8
avrdude -p atmega8 -c stk500 -P /dev/ttyUSB0 -U first.out -F
I get an error message regarding invalide device signature: (attached the whole, verbose output)
avrdude: stk500v2_command(): command failed avrdude: initialization failed, rc=-1 avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x70f049 avrdude: Expected signature for ATmega8 is 1E 93 07
Unfortunately the device signature reported by avrdude (0x70f049) changes each time.
Same problem when replacing the Atmega8 with an Atmega16.
The STK itself seem to work, as the program which is currenylt on the Microcontroller works, and the status LED is green.
My setup already worked. But i think I broke it/the STK when i attach a stepmotor to the Atmega.. :( The Status Led switched immediately to red (short circuit), I assume this was because too much current has been drained..
Is there a way to fix this?