I'm fairly new to PCB design, and I've been trying to program the microcontrollers on the board I designed with no luck. The board uses an ATmega32u4 and an ATmega328P. I've been trying to program them with a cheap $10 ICSP programmer from Amazon, with no luck. avrdude tells me that "initialization failed" and if I try to force it, I get this:
I tested the pins and confirmed that the ICSP header is properly connected to the microcontrollers. I've been racking my brain trying to figure out what went wrong and the only thing I can think of is maybe it's a bad programmer?
I appreciate any feedback you might have.