Hey guys. I recently made a pcb in KiCad based on the leonardo design. I used atmega32u4 and fabricated it. When the board arrvied, it didn't have the regular avrdude bootloader, but instead it is showing up as Atmega32u4, under lib-usb. When I searched it, I found out that it is in DFU mode. Is there a way that I can change it to avrdude? I already tried the ICSP pins using an arduino uno rev.3 board. I have a .ino file I want to upload onto it. Is there a way I can do that without changing the firmware? Will serial work in DFU mode? I'm on a deadline can you guys help? Thanks in advance.
P.S. Let me know if you need anything from my side and I'll upload them.
I used Arduino UNO rev 3 as programmer with Arduino as ISP and i used ICSP pins connected accordingly and finally attached the pin 10 to reset of the target board.
The problem was with my pcb. While making the ICSP headers for my custom board I forgot to connect the RESET pin to the micro-controller. I connceted pin 10 of the arduino uno to the pin pad of the reset button of my board and it worked like a charm. For all the people who might have this problem in the future:
First, just check if your connections are tight enough. Check if the wires you are using are working properly. Sometimes it's as simple as that.
Second, check your pcb connections. The name of the pin is "RESET WITH A BAR ON TOP", incase you are auto routing.
Thirdly, you can use Atmel FLIP to check if your device is being recognized by the software itself. You can also run the operations flow menu to verify that your chip is indeed working.
These are the very steps I used to troubleshoot and rectify my problem. Finally, as @nadepp and @Juraj said, I used Arduino uno (rev. 3)(it doesn't need the capacitor between reset and ground), uploaded the arduino isp code and followed the standard tutorial. Hope this helps someone else.