Go Down

Topic: IDE 1.0.1 Problems with Leonardo, Windows XP and Windows 7 Enterprise (Read 7 times) previous topic - next topic

josto

I have similar problems.

At one Laptop (Lenovo T61, W7prof) all seems to be ok.
My second Laptop (T410, also W7) has problems. In device-manager all seems to be ok, but programming is only occasionally possible.
The funny thing: if i connect the leonardo at an USB-Hub, it seems to be better, but not ever...

I think there is a timing problem, eiter in bootloader or in avrdude. It seems, the time after resetting the leonardo is too short, so the changing of COM-Port will not be detected.

zeveland

josto, can you send the status messages after a failed upload attempt (turn on verbose output in preferences first)?  I'd have to see more to be sure, but your timing problem theory may be correct.  Some hubs (and, by extension, the root hub in each computer) introduce their own delay when a USB device is trying to enumerate. 

If nothing else, you should be able to manually reset the Leonardo and get a successful upload every time. 

josto

Quote
josto, can you send the status messages after a failed upload attempt (turn on verbose output in preferences first)?  I'd have to see more to be sure, but your timing problem theory may be correct.  Some hubs (and, by extension, the root hub in each computer) introduce their own delay when a USB device is trying to enumerate.

If nothing else, you should be able to manually reset the Leonardo and get a successful upload every time.

Binäre Sketchgröße: 8.652 Bytes (von einem Maximum von 28.672 Bytes)
Forcing reset using 1200bps open/close on port COM16
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM16, COM20, } => {}
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM16, COM20, } => {}
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM16, COM20, } => {}
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM16, COM20, } => {}
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM16, COM20, } => {}
PORTS {COM6, COM12, COM16, COM20, } / {COM6, COM12, COM20, } => {}
PORTS {COM6, COM12, COM20, } / {COM6, COM12, COM20, } => {}
avrdude: Recv:
avrdude: Send: v [76]
PORTS {COM6, COM12, COM20, } / {COM6, COM12, COM15, COM20, } => {COM15, }
Found Leonardo upload port: COM15
E:\arduino-1.0.1\hardware/tools/avr/bin/avrdude -CE:\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega32u4 -cavr109 -P\\.\COM15 -b57600 -D -Uflash:w:C:\Users\storchi\AppData\Local\Temp\build3689517327675424525.tmp\sketch_jun13a.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "E:\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM15
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         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        65    10     8    0 no       1024    8      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .avrdude: Send: . [1b]
avrdude: Send: S [53]
avrdude: Recv: C [43]

avrdude: Recv: A [41] T [54] E [45] R [52] I [49] N [4e]
avrdude: Send: V [56]
avrdude: Recv: 1 [31] 0 [30]
avrdude: Send: v [76]
avrdude: Recv: ? [3f]
avrdude: Send: p [70]
avrdude: Recv: S [53]
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
avrdude: Send: a [61]
avrdude: Recv: Y [59]
Programmer supports auto addr increment.
avrdude: Send: b [62]
avrdude: Recv: Y [59]
avrdude: Recv: . [00]
avrdude: Recv: . [80]
Programmer supports buffered memory access with buffersize=128 bytes.
avrdude: Send: t [74]

Programmer supports the following devices:
avrdude: Recv: D [44]
    Device code: 0x44
avrdude: Recv: . [00]

avrdude: Send: T [54] D [44]
avrdude: Recv: . [0d]
avrdude: devcode selected: 0x44
avrdude: Send: P [50]
avrdude: Recv: . [0d]
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: s [73]
avrdude: ser_send(): write error: sorry no info avail
avrdude: Recv:
avrdude: Recv:
avrdude: Send: p [70]
avrdude: Recv:
Found programmer: Id = "pÿ""; type = ç
    Software Version = E.

zeveland

Thanks for this.  From your results, the bootloader is definitely starting (see the "Found programmer: Id = "CATERIN"; type = S" line) but times out before the upload (see a little later when it gets a write error then reports "Found programmer: Id = "pÿ""; type = ç").  I'm surprised that it takes the Leonardo so long (at least six seconds) to reenumerate after reset - that's much longer than typical. 

How frequently do you get this upload problem on the T410 versus how often does upload work?  Are you running any virtual machine or security software on the T410 that could be interfering with or slowing down the enumeration of new USB devices? 

Go Up