Hello everybody! My arduino leo is pretty much dead and I don't know what to do. I tried icsp dozens of times nothing worked. I tried to upload it from a mega and from an uno and yet nothing worked. I tried to upload the sketch and press and release and hold the reset button dozens and dozens of times and nothing works. When I try to upload the bootloader, and press the reset button its like something happens it disconnects for like 2 seconds and reconnects again. I should've mentioned this started when I wanted to see what chatgpt could do. So I gave it the task of making an hid controller with x axis. So it spit out a half baked product that didn't work. I saw that in the descriptor part(this is a bit technical its basically defines the devices and axes that dinput expects from the hid device) didn't have enough parameters. I've become pretty familiar with dinput from before. It was basically insanely shortened. A normal one I think has around 15 parameters maybe even more depends on what you're making. Microsofts papers around dinput and usb hid explain which parameter does what. So what I think is going on is computer tries to get information from the leo and the leo sends a couple of the parameters which aren't nearly enough for the computer to recognize the device and just gives up and spits out the infamous "Usb device not recognized" message in the bottom right corner. And also the arduino ide doesn't recognize it because the computer doesn't recognize it. Any ideas?
Hi @azur123123. Please try this experiment and then report back with the results:
- Connect the Arduino board to your computer with the USB cable.
- Press and release the reset button on the Arduino board.
Now please reply here on the forum thread with the answer to the following question:
- Do you see the LED marked "L" on the board pulse after performing the above instructions?
Yes, when I press the reset button the led does get a pulse.
In that case the bootloader is not dead. Upload a sketch; when the IDE reports the memory usage, tap the reset button.
If you can not select the correct port, you can use any port that your PC provides (e.g. COM1 on a Windows PC (if available), the port of an Uno that is connected to your PC or the port of a serial-to-usb adapter). Keep the Leonatdo as the target board.
I've tried icsp dozens of times as I said.
I was not talking about ICSP; just a normal upload via USB.
One pulse or does it pulsate for approximately 8 seconds. The earlier approach only works if it pulsates which indicates bootloader activity.
One pulse.
I mean it is not really a pulse. As long as i hold the reset button the led stays on. When I release it the led turns off.
OK, in that case it's a different story. No pulsating L-LED indicates that the bootloader is not behaving as expected (if it's still there).
And I'm not sure if I can help further. Others might like to know which operating system you're using?
Windows 10. The board disconnects for about 2 seconds when I press the reset button. So maybe it is there but heavily corrupted.
Not even icsp works. Nor does the sketch upload reset switch trick.
You are aware that the SPI pins on the Leonardo are not pins 11/12/13? ICSP can only be done via the 6-pin header. Just checking.
What did chatgpt tell you to do? Just upload a sketch or upload a sketch via ICSP which would wipe the bootloader.
I know that only the icsp header works on leonardo. Chatgpt didn't tell me anything I uploaded it via the arduino ide.
If it's got stuck HID'ing then it might be worth trying --
► load a blink sketch, anything simple will do
► plug in the Leo's USB and hold down its Reset button
► as you continue to hold down the Reset button, click the Upload button (IDE)
► right when the IDE notes "Uploading..", Release the Reset button
(Jacking with the bootloader should have been "Plan Z", way down the list of 'intervention and remediation')
I tried that dozens of times if you have read my thread you would've known. It doesn't work. I tried it right now a dozen times and it doesn't work.
I did read and re-read and saw no mention of your working the Reset button.
Best of luck, old horse.
If you can't burn the bootloader, I suspect that the 32U4 processor has died. chatgpt would in that case not have been the cause of the problem.
I see no reason for it to die. All I did was upload the code. And it happened to both of my arduinos so I would say that it is very unlikely for both of them to die just infront of me. And if they did why? Cuz of a simple code, nah I don't think so.
Hello everybody! So wanted to see what chatgpt could do in terms of arduino. So I let it write a couple of simple sketches and after those worked I wanted to see if it could write an hid controller with one axis but with no library. And I uploaded the code and it doesn't work now. Can't do anything with it. I tried the hold reset button, upload, release when memory usage pops up didn't work. Tried that 20-30 times nothing. If I am not wrong ICSP always works with these kinds of problems so I tried that too, but It doesn't work. The processor isn't broken it does run the code but I get the infamous USB device not recognized message from windows. So how to program with ICSP? I have an uno, a mega another leo So how to do it? I tried with the uno and I am totally confused. Do I connect both boards with their ICSP pins or I have to connect the uno with the leonardo by the 10,11,12,13 pins. I know only ICSP pins work on leonardo. I've seen lots of tutorials and nothing works. The 10uF capacitor for burning the bootloader makes my arduino uno not wanna reset when I upload. Could anybody explain it better to me?
I have merged your cross-posts @azur123123.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.