Recovering Arduino Pro Micro Atmega32u4

I was doing something with foolish in avrdude, ending in me killing the bootloader on my Arduino Pro Micro . The Arduino Pro Micro bootloader creates a USB connection which the user can upload code, however by overwriting the bootloader, the chip no longer enumerates as a USB device and can no longer accept new sketches. Fortunately, I hadn’t messed up the fuse bits, so I can still upload using ISP. There wasn’t much documentation on doing this for a Pro Micro, so I had to look up the data sheets for the chip and trace the Eagle PCB schematics. Fortunately, all of the ISP connections are accessible via the pin headers. I used my USBasp, but any ISP programmer including another Arduino running Arduino ISP should work.

USBasp_ISP_KANDAupdfrm_1pro_micro_pins

USB-ASP Arduino
1 MOSI D16
2 VCC VCC
5 RST RST
7 SCK D15
9 MISO D14
10 GND GND

I was then able install the bootloader in the Arduino app using “tools->Burn Bootloader” after choosing “Tools->Board->Arduino Leonardo” and “Tools->Programmer->USBasp.