Upload problem and I can't reset the card

Hello,
I have an arduino leonardo in the form of a usb key. On which I try to emulate a keyboard. But at one point when I tried to upload it, it returned an error which was due to my leonardo card. I copied and pasted the message into a text editor. Here is a picture.

I saw on many forums that advised to reset the card by pressing the reset button. The problem is that my card is in the format of a metal usb key, which I can't open. I tried to see if I could reset it with a program but those I found only work when you can still upload programs to it, which is not my case.

Plese if you can help me.
Thank you for reading, if you need more information don't hesitate to ask.

To reset using USB, open and close the serial port with a baudrate of 1200 baud; you can use e.g. minicom. Does the L led fade in/out for approx 8 seconds after that? [edit: if you can see that]

If not, the bootloader is damaged. You can try to fix it by burning the bootloader [edit: which is probably not possible if you can't open the casing].
If yes, there is hope.

Or the code that you loaded before it?

Thank you very much, I tried what you told me but indeed I can't see the led. I will try to recover the card by melting the usb key but I will probably damage it. And the problem can't become from the program because I just change a delay and the leonardo dosn' t work let's with basic programs.

I'm more in the Windows camp; regarding Arduino, I have hardly any Linux experience.

If you do the excercise that I described, do you see anything in lsusb or dmesg? You might have to pipe dmesg through tail (can't remember exactly how it needed to be done).

if you have access to a Windows PC, you can observe the behaviour of the suggested excercise in Windows device manager.

And one advise; develop on a board that gives an easy way to restore it. Once development is complete, you can move it to your device.

1 Like

I thank you very much, finally I managed to open the usb. It is still not won but I have to find out how to reset it.

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