avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #6530] Arduino improvement


From: Joerg Wunsch
Subject: [avrdude-dev] [patch #6530] Arduino improvement
Date: Mon, 16 Feb 2009 11:00:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.19) Gecko/20081217 SeaMonkey/1.1.14

Follow-up Comment #2, patch #6530 (project avrdude):

Sorry, this patch is IMHO completely broken.  Did you ever try
this on a real STK500 with a V1 firmware?

According to appnote AVR068, CMD_READ_SIGNATURE_ISP takes
6 bytes: Command ID, RetAddr, cmd1, cmd2, cmd3, and cmd4.
It reads exactly *one* signature byte, which must be encoded
into the lower two bits of cmd3, so the command must be
issued three times, to get all three signature bytes.
Essentially, it's not all that different than using spi_multi
directly (which is what avr_read() falls back to if there's
no read_sig_bytes() method).

So please resubmit the patch in a way that has been tested
with an original Atmel STK500 running V1 firmware.

Also, backwards compatibility issues are to be considered.
AVRDUDE has been around using the method as currently imple-
mented for more than 6 years.  As Atmel abandoned V1 many
years ago, it can be assumed that there are enough implemen-
tations (like bootloaders) that can be found in the wild
which rely on AVRDUDE's current behaviour.  For that reason,
I'd like to have the Arduino-compliant functionality
explicitly enabled (like, through a -x extension option)
rather than defaulting to it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6530>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]