Hello, I also experienced such problems and found the reason for such file size depending behaviour. A description of what I have found out can be read here (in German language):
http://www.mikrocontroller.net/topic/96528 The problem is related to improper handling of USB zero-length packets (ZLP) which was introduced by the libusb 0.1 API wrapper for libusb 1.0. Some workarounds: - use a very old Linux system which doesn't support libusb 1.0 - use a very new Linux kernel >=2.6.31 AND libusb >= 1.0.3 This ZLP problem affects also many other projects which use USB bulk communication over libusb: http://www.libusb.org/ticket/6 With best regards Andreas Schweigstill Am 31.05.2010 14:37, schrieb Tobias Neumann:
Follow-up Comment #2, bug #29913 (project avrdude): I attached a tar file of all the contents you need to see the bug. I tested it and it still crashes. The program isnt doing anything usefull, it is just to demonstrade the crash. If you add or delete anything from the programm it will be burned on the µC without any problems. Greetings, Tobias Neumann. $ avrdude -v -c avrispmkII -P usb -p m16 avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0018759 AVR Part : ATMEGA16 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 10 128 0 no 512 4 0 9000 9000 0xff 0xff flash 33 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 Programmer Type : STK500V2 Description : Atmel AVR ISP mkII Programmer Model: AVRISP mkII Hardware Version: 1 Firmware Version Master : 1.13 Vtarget : 5.0 V SCK period : 4.00 us avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9403 avrdude: safemode: lfuse reads as FF avrdude: safemode: hfuse reads as 99 avrdude: safemode: lfuse reads as FF avrdude: safemode: hfuse reads as 99 avrdude: safemode: Fuses OK avrdude done. Thank you. (file #20663) _______________________________________________________ Additional Item Attachment: File name: 246_byte_crash.tgz Size:1 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?29913> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avrdude-dev
-- Dipl.-Phys. Andreas Schweigstill Schweigstill IT | Embedded Systems Schauenburgerstraße 116, D-24118 Kiel, Germany Phone: (+49) 431 53035-435, Fax: (+49) 431 53035-436 Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avrdude-dev