Hi,
Today I got a AVR-ISP500 programmer and a ATmega8 MCU. I followed the tutorial on this website (http://www.sparkfun.com/commerce/tutori … ials_id=93). I managed to install the GNU toolchain on Linux and compiling blink_1MHz.c using the Makefile also worked. However, I’m having problems with uploading the hex-file to the microcontroller. I use the following command.
sudo avrdude -p m8 -P /dev/ttyACM0 -c stk500v2 -vv -U flash:w:blink_1MHz.hex
The output is the following.
avrdude: Version 5.5, compiled on Feb 25 2009 at 11:47:45
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is “/etc/avrdude.conf”
User configuration file is “/home/yoran/.avrduderc”
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : stk500v2
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
eeprom 4 20 128 0 no 512 0 0 9000 9000 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500V2
Description : Atmel STK500 Version 2.x firmware
Programmer Model: STK500
Hardware Version: 2
Firmware Version: 2.10
Topcard : Unknown
Vtarget : 5.0 V
Varef : 5.0 V
Oscillator : 60.433 kHz
SCK period : 31.5 us
avrdude: stk500v2_command(): unknown status 0x80
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
I already triple-checked the connections on the connector. I read on this forum that I should try adding the argument “-B 10” but that doesn’t work either for me.
Does anyone know what the problem might be and how I can solve it?
Thank you,
Yoran