Upload code to Pro Micro without usb

Hi,
I have a Pro Micro without the usb port (it came off), I'd like to upload code to it, I know this should be possible with ISP, but i only have a Leonardo which is also 32u4, will it work or it has to be a different chip?
I also have a itsy bitsy m4 (the ones with the cortex m4)

You can kill a USB cable and resolder the 4 wires according the schematics. USBISP may or may not work, so I cannot recomment it.

Never done it , but can’t see why it’s not worth a go - google shows programming via the ICSP connections , I’d read some of those hits, some relate to this forum

I have several Arduinos set up as ISP for different situations. There are a number of inexpensive solutions out there and hammy is correct what you seek can be found in google.

Best recommendation: get an inexpensive ISP programmer (like USBasp).

If you only have an Arduino Leonardo/Micro to act as ISP programmer:
Using a Leonardo as ISP programmer is possible but "less easy" than UNO or MEGA. Take a look at sketch "ArduinoISP" (Arduino IDE: File / Examples / ArduinoISP). There are some comments in the sketch regarding "Leonardo" you should follow.

Maybe it is also worth taking a look here: GitHub - per1234/ATmega32U4asISP: Allows ATmega32U4 based boards to be used as Arduino as ISP on Windows

zwieblum:
You can kill a USB cable and resolder the 4 wires according the schematics. USBISP may or may not work, so I cannot recomment it.

How would you solder such small connections on the pcb?

I did search on google but didn't find anywhere that they were programming a board with another that was the same, such as a leonardo programming another leonardo, that's why i thought they had to be different boards?

very carefully... use a good soldering iron with temp control and small tip. plenty of flux and remember to keep your iron tinned and clean. Pretin the wire, then solder together. I use transformer wire when I'm doing repairs like this.

amadeok:
I did search on google but didn't find anywhere that they were programming a board with another that was the same, such as a leonardo programming another leonardo, that's why i thought they had to be different boards?


Take a look here: Leonardo as ISP

perhaps you're looking for this? They pretty much all work like this:

I've used UNOs, NANO's and even attiny as ISP.

Thanks i was able to recotr 2 pro micros without the usb port. The arduino ide has the feature to upload sketches through a programmer. it worked perfectly.