[RESOLVED] Leonardo device not connected?

userHead trubel 2018-04-03 05:06:36 9535 Views9 Replies
I ran my first sketch using the arduino ide and it performed as expected. To get the sketch to stop, I loaded in blink, which performed as expected.

Now I have lost visibility and access to the serial port that I was using earlier. USB7 showed up with Leonardo immediately adjacent to it. Now its gone.

I have no idea what I did wrong or how to fix it.

When I goto to device manager in W10, I find two hidden listings under usb, one showing a Leonardo (USB7), another showing a Leonardo bootloader(USB8). The are greyed out. When I click them, they show as code 45, this device is not connected to this computer.

I have tried rebooting W10, resetting arduino with the reset button, but cannot get the Leonardo usb 7 (or 8 which is bootloader) to show in port selections.



When I try to run blink on the only visible port which can "get board info", I get this
Arduino: 1.8.5 (Windows 10), Board: "Arduino Leonardo"

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "þ"; type = ¸
Software Version = h.
2020-07-19 04:27:05 In case this helps others that find this thread - the basic issue is that in the Blink sketch, the Leo is not initiating a serial connection using Serial.begin(<baud rate>). As I found out through trial and error when I encountered this issue, any time you have a sketch the runs on the Leo you MUST have Serial.begin() in your setup() even if you do not intend to use the serial port for communication. If you don't, you will end up in the situation described in this thread where the Leo will not connect to the IDE to get a sketch download.

The solution in this thread does tell you how to get the Leo 'onboarded' again, but as you can imagine, it is hit and miss as to whether you'll actually talk to that Leo again. But it does work - until you run ANY sketch that doesn't have Serial.begin().

In Summary, if you always make sure that a Leo-bound sketch has Serial.begin() in it, you'll be ok.
userHeadPic AtlasInOc
2018-08-15 01:55:20
trubel wrote: ↑Sun Apr 15, 2018 7:26 pm RESOLVED

Answer is here https://www.dfrobot.com/forum/viewtopic.php?t=216
My steps
Load blink into arduino ide. Select leonardo. The Leo usb won't appear yet/still.

press Arduino reset button. Leo usb port will momentarily appear. Select it quickly and try to upload. But by the time blink is compiled, it can't upload because the usb has disappeared again. Persevere.

Using the same setup as your first (failed) attempt, click upload again. Wait until the compiler has almost finished, then press arduino reset button again. Just as the ide starts to try and upload, your Leo usb port momentarily reappears again, long enough for the upload to succeed.

Your Leo port will now appear in the dropdown menu again! Permanently...until the next time
Thank you very much!!!! It works!
userHeadPic ChristopherGalicia
2018-04-17 17:03:08 Sounds great! Thanks for your sharing ! :) userHeadPic LattePanda
2018-04-16 03:26:47 RESOLVED

Answer is here https://www.dfrobot.com/forum/viewtopic.php?t=216
My steps
Load blink into arduino ide. Select leonardo. The Leo usb won't appear yet/still.

press Arduino reset button. Leo usb port will momentarily appear. Select it quickly and try to upload. But by the time blink is compiled, it can't upload because the usb has disappeared again. Persevere.

Using the same setup as your first (failed) attempt, click upload again. Wait until the compiler has almost finished, then press arduino reset button again. Just as the ide starts to try and upload, your Leo usb port momentarily reappears again, long enough for the upload to succeed.

Your Leo port will now appear in the dropdown menu again! Permanently...until the next time
userHeadPic trubel
2018-04-11 06:43:46 I cannot connect to Leonardo to upload sketches. I have tried reinstalling drivers and am told I have the latest drivers already installed. I can work around it using an external arduino connected via USB but that kind of defeats the whole point of lattepanda. Very disappointed. I have searched all that google has to offer, and these forums, but no solutions have worked for me. I am sure there is an easy fix,
I just can't find it.
userHeadPic trubel
2018-04-10 14:19:38 Hi, first I have to say sorry for the delay getting back to you!
How's everything going?
userHeadPic LattePanda
2018-04-03 22:41:47 When I hit the arduino reset button, the blue lights flash and blink.

Prior to reset, device manager shows two greyed out USBs, one labeled USB7 Leonardo, the other USB8 Leonardo bootloader. Both only show if I change "view" to show hidden devices.

Upon reset, the USB 8 Leonardo bootloader momentarily turns black but at the end of the recycle returns to grey.
userHeadPic trubel
2018-04-03 21:35:33 I went to https://github.com/LattePandaTeam/Latte ... 0-Software and downloaded the 4G64GB driver set.

I applied the contents of the UART folder and received the message back that for Leonardo USB 7 the best driver was already installed.

Is there another package that I am missing? Some of the other folders have labels eg GNSS that are unknown to me.

Thanks
userHeadPic trubel
2018-04-03 14:56:51 Hi, did you try to reinstall the driver of Arduino? userHeadPic LattePanda