[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] avrdude, ATMega128
From: |
Torsten Mohr |
Subject: |
[avr-gcc-list] avrdude, ATMega128 |
Date: |
Sat, 4 Jun 2005 13:04:36 +0200 |
User-agent: |
KMail/1.8 |
Hi,
i just switched over from uisp to avrdude-5.0-BETA ("make" for 4.4 did not
execute properly).
I added a new programmer in avrdude.conf:
programmer
id = "dapa";
desc = "What 'uisp' understands as 'dapa'";
type = par;
vcc = 3;
reset = 16;
sck = 1;
mosi = 2;
miso = 13;
;
I doubt the value for "Device signature" that i read on the ATMega128,
which reads as 0x000102 whenever i connect to the target the second time.
When i connect an AT90S2343, the device signature looks ok to me as
0x1e9103
When i connect with avrdude the first time, i read the device code 0x1e9702
which looks ok to me. When i just re-type the same command, i get 0x000102.
This is the same problem that i experienced using "uisp".
As uisp and avrdude work on an AT90S2343, the programs and the settings and
the basic hardware seem to be ok, the problem seems to be related to the
ATMega128 and the hardware it is soldered on.
Does this look like some standard problem? What could it be?
Could it be that some internal pull-up/pull-down or whatever else is blown?
Can i use some more conservative settings for timing? I already tried to
increase predelay and postdelay from 1 to 5 and also to 100. No change.
Whenever i connect the second time, i get the problem described.
Are there any other values i can try?
The basic communication seems to work ok, as the values are not just 0x00
or 0xff.
There is no crystal soldered on the PCB.
The supply voltages look ok.
PEN is connected to GND.
I don't connect directly to the parallel port but use a PCB inbetween for
proper signal levels.
Is there any more information i can give?
Has anybody got a hint for me?
Best regards,
Torsten.
LOG of a second connect to the target:
avrdude -v -pm128 -cdapa -e
address@hidden:~/p/avr/hello_led> avrdude -v -pm128 -cdapa -e
avrdude: Version 5.0-BETA
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/tmohr/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : /dev/parport0
Using Programmer : dapa
AVR Part : ATMEGA128
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 12 64 0 no 4096 8 0 9000
9000 0xff 0xff
flash 33 6 128 0 yes 131072 256 512 4500
4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 0
0 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 0
0 0x00 0x00
efuse 0 0 0 0 no 1 0 0 0
0 0x00 0x00
lock 0 0 0 0 no 1 0 0 0
0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : PPI
Description : What 'uisp' understands as 'dapa'
VCC = 0x02 = pins 3
BUFF = 0x00 (not used)
RESET = 16
SCK = 1
MOSI = 2
MISO = 13
ERR LED = 0
RDY LED = 0
PGM LED = 0
VFY LED = 0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x000102
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude: erasing chip
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK
avrdude done. Thank you.
address@hidden:~/p/avr/hello_led>
LOG of AT90S2343:
address@hidden:~/p/avr/hello_led> avrdude -v -p2343 -cdapa
avrdude: Version 5.0-BETA
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/tmohr/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : /dev/parport0
Using Programmer : dapa
AVR Part : AT90S2343
Chip Erase delay : 18000 us
PAGEL : P00
BS2 : P00
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 12 64 0 no 128 0 0 9000
20000 0x00 0xff
flash 4 12 128 0 no 2048 0 0 9000
20000 0xff 0xff
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
fuse 0 0 0 0 no 1 0 0 9000
20000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000
20000 0x00 0x00
Programmer Type : PPI
Description : What 'uisp' understands as 'dapa'
VCC = 0x02 = pins 3
BUFF = 0x00 (not used)
RESET = 16
SCK = 1
MOSI = 2
MISO = 13
ERR LED = 0
RDY LED = 0
PGM LED = 0
VFY LED = 0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9103
avrdude: safemode: Fuses OK
avrdude done. Thank you.
address@hidden:~/p/avr/hello_led>
- [avr-gcc-list] avrdude, ATMega128,
Torsten Mohr <=