Pro Micro "USB device not recognised" after loading sketch

Hi all,

My Pro Micro gives the below error after uploading my sketch. Any ideas why? I have tried with multiple Pro Micros and have checked with nothing connected to it at all except the USB cable. Something about the sketch appears to be breaking USB functionality.

https://images.drivereasy.com/wp-conten … a17d6c.png

This is my sketch:

https://pastebin.com/RK33gNs1

In addition to solving the issue with the sketch, any ideas how I can restore my Pro Micros so I can flash them again?

Thanks!

Double tap the reset button usually puts 32u4 boards into upload mode. If there is no reset button, connect a wire to GND then double tap the other end to the RST pin.

There’s a step-by-step for reviving a bricked ProMicro at https://learn.sparkfun.com/tutorials/pr … ng-and-faq.

Try commenting out sections of your code until it stops bricking the ProMicro, then focus on that section to find the problematic code.

I did getting going again with the double-press to enter the bootloader for 8 sec, thank you very much for that

Not sure why but it seemed to be setting INPUT_PULLUP on pin 20, but doing so on it’s own in a blank sketch doesn’t cause the issue. No matter, I used a different pin and it doesn’t happen any more

Thanks for this thread - I have a similar problem. Uploaded the BLINKY sketch to my Pro Micro 5v - and the sketch does run on the Micro, but now Win7 no longer sees it. Win 7 does chime, and shows Unknown USB device. I’ll try the suggestions in this thread.

Before, when it worked I was able to load driver after which it was COM7 & IDE worked well with it.

My other Micro has no power LED at all - Am I correct in assuming nothing can be done with that one ?

Hi Xriva18707,

Most likely, you uploaded with the wrong board definitions and bricked the first board. Uploading to it in bootloader mode should fix that one. As for the other Micro without a power LED, it may not be recoverable but you could try forcing bootloader mode and recovering the board. If you have a multimeter available, you could test if it is getting power from the USB connector by probing the Vcc and RAW pins for voltage.

I may have found a way to brick a Pro Micro. Actually two Pro Micros. I hit the serial monitor button before the upload was complete. After I did that both LEDs on the board end opposite the USB connector were on steady and the unrecognized USB message.

Using the uploading and double click on the reset line method I was able to get them both working again. Whew! Thanks much for the help on the forum!

Opening the serial monitor resets the the board. If it’s in the middle of an upload this can lead to problems, as you experienced.

Yes, that’s exactly what happened. I was in a hurry to see my clever edit. SLOW DOWN! I’ve made a mental note not to do that again. I just hope I remember where I put the note.