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. ;-)


_______________________________________________
avrdude-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to