Go Down

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

zeveland



If you manually reset the board does the LED "breathe" for several seconds?  Once it stops breathing does it start blinking with a period of two seconds?

No.



On this part specifically, does the LED "breathe" after a manual reset? 

And, fter a few seconds of breathing does it start blinking with a period of two seconds? 

In normal operation those are two distinct phases.  Breathing indicates that the bootloader is running.  After the bootloader runs for a few seconds it starts the sketch.  On a fresh board you should see blinking because they load the Blink sketch at the factory to test.  Of course, if you've managed to upload any sketch it will overwrite Blink but it doesn't sound like you've ever had success?

Also, can you confirm that Device Manager shows the board enumerated and drivers loaded in both bootloader and sketch mode?  Just open Device Manager, check that you have an entry for the Leonardo without any errors or warnings (sketch mode), then manually reset the board and confirm that it comes up again with no errors or warnings (bootloader mode).  Eventually it should automatically reset and go back into sketch mode.  If you want to confirm which you're seeing, look at the PIDs: 0x0034 is bootloader, 0x8034 is sketch.

open_market

Good news - it's working now. I will summarize in a moment what was different, but first to the questions:

To Kd7eir's question, yes, I read the Guide for Leonardo.

On this part specifically, does the LED "breathe" after a manual reset?


Yes

And, after a few seconds of breathing does it start blinking with a period of two seconds?


No

On a fresh board you should see blinking because they load the Blink sketch at the factory to test.  Of course, if you've managed to upload any sketch it will overwrite Blink but it doesn't sound like you've ever had success?

No success up until now on uploading a sketch; It appears that this board did not come pre-loaded with blink?

Also, can you confirm that Device Manager shows the board enumerated and drivers loaded in both bootloader and sketch mode?

This time, which works loading the blink program, I loaded the driver twice, once when the cable was plugged in, and second time after checking the Device Manager and seeing that the driver was still no installed - Not sure what than means exactly.


Just open Device Manager, check that you have an entry for the Leonardo without any errors or warnings (sketch mode), then manually reset the board and confirm that it comes up again with no errors or warnings (bootloader mode).  Eventually it should automatically reset and go back into sketch mode.  If you want to confirm which you're seeing, look at the PIDs: 0x0034 is bootloader, 0x8034 is sketch.

Using the Device Manager this is what I saw as the Device Instance ID:

USB\VID_2341&PID_8036&MI_00\6&3557C49D&0&0000

This is while the Blink program is running.


Note: I did not hold the reset button during the compile phase and once the upload was complete, I did not press the reset button. It just started running the Blink program on its own.

This time, the driver was on Com6.

Not sure what this all means. Will try a more complex program next.

Thanks for all the suggestions. I think installing the driver twice made it start working.

                 - Rick



open_market

My final update on this topic. I connected an adafruit rgb lcd to my leonardo, everything is working as advertised! I'm delighted. Thanks for everyone's input and providing a great development tool!


                      - Rick


zeveland

Very glad to hear it! 

The driver issue is a strange one and the exact behavior varies across flavors of Windows.  Win7 x64 seems to be much more finicky than any other version including 32-bit Win7.  It shouldn't be necessary to explicitly install the driver twice since the same INF is used for both sketch and bootloader, but there you have it...

Just to confirm, for anyone having this problem in the future: you saw an entry in the Serial Port menu for your Leonardo but weren't able to upload.  Upload failed with strange values for programmer ID, type, and software version.  To fix it you opened Device Manager, saw that there was a driver problem when the board was in bootloader mode, and installed the driver a second time.  Is that all right?

open_market

you saw an entry in the Serial Port menu for your Leonardo but weren't able to upload.  Upload failed with strange values for programmer ID, type, and software version.  To fix it you opened Device Manager, saw that there was a driver problem when the board was in bootloader mode, and installed the driver a second time.  Is that all right?

Yes.

Now I'm trying to get the serial monitor working. I'll post more on that later once I've reviewed the relevant documents/forum notes.

Go Up