[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] stk500v2 // ATmega8
From: |
tias |
Subject: |
[avrdude-dev] stk500v2 // ATmega8 |
Date: |
Mon, 2 Jan 2006 14:24:06 +0100 (CET) |
User-agent: |
SquirrelMail/1.4.2 |
Hi,
I experience troubles uploading any program to ATmega8, using stk500v2
and avrdude-5.0.
the upload does not succeed, also the signature is wrong (0xFF 0xFF 0xFF).
if i use avr studio in windows then the upload works ok.
(so i guess my stk500 hardware settings are ok: high voltage parallel)
the atmega8 is in socket: sckt3200A2
10pin connection between PROG CTRL and PORT D
10pin connection between PROG DATA and PORT B
1 pin connection between (right pin)BSEL2 and PC2
2 pin connection for PJUMP
my system is linux debian testing/unstable, running kernel 2.6.14.
here is the cmd and output:
$ sudo avrdude -p m8 -c stk500v2 -P /dev/ttyS0 -F -v -U
flash:w:chenillard.hex
avrdude: Version 5.0
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/avr/etc/avrdude.conf"
User configuration file is "/home/tias/.avrduderc"
Using Port : /dev/ttyS0
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 10 128 0 no 512 0 0
9000 9000 0xff 0xff
flash 33 6 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 V2
Hardware Version: 2
Firmware Version: 2.4
Topcard : Unknown
Vtarget : 5.1 V
Varef : 4.9 V
Oscillator : 3.686 MHz
SCK period : 10.9 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
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 "chenillard.hex"
avrdude: input file chenillard.hex auto detected as Intel Hex
avrdude: writing flash (436 bytes):
Writing | | 0%
0.00savrdude: stk500v2_paged_write: write command failed with 128
Writing | ################################################## | 100% 0.10s
avrdude: failed to write flash memory, rc=-1
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as FF
avrdude: safemode: Fuses OK
avrdude done. Thank you.
any help greatly appreciated.
thanks
Mathias
PS: if i have to RTFM, please post some urls for me to read.
thanks a lot.
- [avrdude-dev] stk500v2 // ATmega8,
tias <=