http://bugzilla.novell.com/show_bug.cgi?id=564303
http://bugzilla.novell.com/show_bug.cgi?id=564303#c12
--- Comment #12 from robert spitzenpfeil 2010-01-04 15:04:49 UTC ---
OK. Currently I can only test with ATmega168 chips. I need to buy a few 328PA
ones.
Observations when compared to a custom built avrdude (Version 5.4-arduino):
A)
Using the arduino IDE, avrdude is called like this:
--- snip ---
avrdude -Cavrdude.conf -v -v -v -v -pm168 -cstk500v1 -P/dev/ttyUSB0
-b19200 -D -Uflash:w:AnalogInOutSerial.cpp.hex:i
avrdude: Version 5.8, compiled on Dec 17 2009 at 01:04:02
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is
"/black_hole/home/robert/arduino-0017/hardware/tools/avrdude.conf"
User configuration file is "/home/robert/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : /dev/ttyUSB0
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: ` [60]
avrdude: stk500_getsync(): not in sync: resp=0x60
avrdude: Send: Q [51] [20]
avrdude: Recv: ` [60]
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x60
avrdude done. Thank you.
--- snip ---
This does _not_ work anymore. I can see activity on the serial port, some data
gets sent to the target, but there are syncing problems.
The bootloader on the mcu is stk500v1 compatible. And the bootloader also
hasn't timed out yet in this case.
B)
Trying to just talk to the mcu using stk500v1 protocol results in a wrong
device signature. Apparently it can't read or understand what gets sent back,
if at all.
--- snip ---
/avrdude -c stk500v1 -P /dev/ttyUSB0 -b 19200 -pm168
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
--- snip ---
C)
Switching to the lately added 'arduino' procotol, which should just be an alias
for stk500v1 (as far as I know that is) works though:
--- snip ---
/avrdude -c arduino -P /dev/ttyUSB0 -b 19200 -pm168
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9406
avrdude: safemode: Fuses OK
avrdude done. Thank you.
--- snip ---
Testing newer chips has to wait until I get them.
Something seems to be wrong with stk500v1.
I've also read somewhere that there is a bug in the latest avrdude regarding
the avr_dragon programmer.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.