[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] Good news: STK500v2 and JTAG ICE mkII code committed t
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] Good news: STK500v2 and JTAG ICE mkII code committed to CVS |
Date: |
Fri, 27 May 2005 14:19:53 +0200 |
User-agent: |
Mutt/1.4.2.1i |
As Joerg Wunsch wrote:
> Back to the 5.0-BETA: using Colin's USB hack (for the JTAG ICE mkII)
> on Linux, I recently ran into reproducible troubles when trying to
> read back the flash of something I just had downloaded. It always
> hung at the same percentange, accompanied by a message that it
> received a preposterous packet length indication. The reason for
> this is not yet quite clear to me, perhaps it's even an ICE firmware
> bug where the ICE is intermixing two packets (a regular reply and an
> event packet for a break event).
I've analyzed and found that. It turned out to be a signedness
problem: shifting an unsigned char left causes it to be promoted to an
int which is signed. This had the effect of 0xf3 becoming a negative
number, which was then misinterpreted as an overly large unsigned
number.
Fix committed to CVS.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Re: [avrdude-dev] Good news: STK500v2 and JTAG ICE mkII code committed to CVS, Colin O'Flynn, 2005/05/11
Re: [avrdude-dev] Good news: STK500v2 and JTAG ICE mkII code committed to CVS, Brian Dean, 2005/05/13