Leonardo identifies as a Micro

After dusting off a Leonardo I've had for a while it seems to be misbehaving. I have the IDE up with a sketch I want to upload. I connect the Leonardo and it shows correctly as a Leonardo. Then after a second or two it now shows as a Micro. I can upload the code to the board with some "errors", and it successfully uploads and the programming works, but I would very much want for this board to be a Leonardo. How can I fix this?

UPDATE: I just burnt the Leonardo bootloader again and it still says Arduino Micro when checking the board info.

Hi @Ruudscorner. Select Tools > Board > Arduino AVR Boards > Arduino Leonardo from the Arduino IDE menus, then upload any sketch to the board. After that it should be identified as a Leonardo as expected.

1 Like

Yes, I just figured out what was wrong. Normally your solution would help, but not if I made changes to the boards.txt file. The project.pid was set to 0x8037 that looks like is for the Micro, and not 0x8036 that is for the Leonardo. Most likely me setting it probably a year ago trying to have more than one Leonardo connected as USB at the same time, not realising this was a side effect.

Great work on finding the cause of the problem! I'm glad it is working now. Thank you for taking the time to post an update.

Regards, Per

1 Like