TransWikia.com

Can't program ATmega with ICSP on custom pcb

Electrical Engineering Asked by Trey Jenkins on February 21, 2021

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:
avrdude error message

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?

Here’s the schematic:
Schematic

I appreciate any feedback you might have.

One Answer

Can you program the same chip outside the board? I hope you have put the chip in a DIP socket. Doesn't apply to SMD though. In that case make sure the chip itself isn't faulty. Although rarely, but sometimes it so happens that the chip is configured to expect a crystal oscillator at the XTAL pins. try providing that and see if it runs.

Answered by aditya444 on February 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP