Arduino leonardo is recognized as arduino yun

Hello, I need help with my arduino leonardo, this morning I was trying to use a sd module by using icsp, from one moment to another I could not upload codes and I checked the devices and my arduino leonardo was being recognized by my computer as an arduino yun, I uninstalled the drivers and reinstalled but not I had no results, I also tried the arduino on another computer and it also appears as an arduino yun. Unable to upload codes to the arduino. Please tell me if I can repair it or should I buy another one.

Thanks in advance.

Your question has NOTHING to do with the Arduino website or Forum so I have suggested to the Moderator to move it to the Project Guidance section.

What PC operating system are you using?

What version of the Arduino IDE are you using?

...R

Ah. That's an interesting way of "bricking" a Leonardo. You must have done an upload with Tools > Board > Arduino Yun selected.

Here's how to fix it:

  • File > Preferences
  • Check the box next to "Show verbose output during: upload".
  • Click "OK".
  • Tools > Board > Arduino Leonardo
  • Resize the black console window at the bottom of the Arduino IDE window until it's big enough that you can see a reasonable amount of text.
  • Sketch > Upload
  • Watch the black console window. After the compilation finishes, you'll see some text like "Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes." As soon as you see that, press the reset button on the Leonardo.

The upload should complete successfully and your board should be recognized as a Leonardo and be able to be uploaded to normally again.

Thank you very much, it has served me, I am very grateful.

You're welcome. I'm glad to hear it's working again. Enjoy!
Per