Leonardo Programming Problems

Hi,
I have some problems programming my leonardo.
With my UNO as ISP I burned a new bootloader and, for testing, a little blink-sketch.
When connecting via USB I see the COM-Port. When start uploading a sketch with Arduino IDE the COM-Port disappears as the board is resetted, but never apperas again.
The RX and TX LEDs are flickering parallel. ON and L are on.

What could be the problem?

That's expected behaviour. If you're using Windows (your use of the word COM-port indicates that, you should see another COM-port appearing for a couple of seconds.

Please explain; you should get the original COM-port back after the upload.

Did you burn the blink-sketch with the Arduino-as-ISP or via USB. With the former, the bootloader will be wiped unless you burned the hex-file that also contains the bootloader.

The COM-Port does not come back, so the upload does not really start.
The blink-skrecth was uploaded with Arduino-as-ISP.
I think when using Arduino IDE the hex-file should contain a bootloader?!

Two files are generated, e.g. blink.ino.hex and blink.ino.with_bootloader.hex. With normal uploads via USB, it is definitely the former, when uploading via a programmer I'm 95% sure it's also the former.

I suggest that you burn the bootloader first with the Arduino-as-ISP. After that the behaviour of the Leonardo in Windows device manager should be as below (COM ports can be different).

Normal operation

image

After press/release reset button or when an upload starts

image

Next you can upload blink via USB and the above behaviour should not change. After that you can upload again with Arduino-as-ISP and see what happens.

You're right. After burning the bootloader and NOT uploading a sketch via Arduino-as-ISP i'm able to upload sketches via USB again.
I don't know why i missed that.

Thank you!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.