Atmega328 uploading sketch via ICSP: programmer is not responding

Hi to everyone! :slight_smile:

I need to upload a sketch to Atmega328 placed on my custom PCB using ICSP, but I've got some problems.

The micro works perfectly when I plug it into my Uno board and I upload the sketch directly.

When I try instead, to use ICSP to load a sketch from Arduino Uno connected to my computer to my custom board, the upload fails.

To cable the ICSP i followed this guide from Sparkfun.

I double-checked the PCB routes, the jumper wires connections ICSP to ICSP and the Arduino IDE settings.

IDE settings under "Tools" menu:

Board: Arduino/Genuino Uno
Port: /dev/cu.usbmodem1421 Arduino/Genuino Uno
Programmer: Arduino as ISP

Is there someone who knows how to solve this problem?

The error I get is:

Arduino:1.6.5 (Mac OS X), Scheda:"Arduino/Genuino Uno"

Lo sketch usa 1.030 byte (3%) dello spazio disponibile per i programmi. Il massimo è 32.256 byte.
Le variabili globali usano 9 byte (0%) di memoria dinamica, lasciando altri 2.039 byte liberi per le variabili locali. Il massimo è 2.048 byte.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problema di caricamento sulla scheda. Guarda http://www.arduino.cc/en/Guide/Troubleshooting#upload per suggerimenti

Questo report potrebbe essere più ricco
di informazioni con
"Mostra un output dettagliato durante la compilazione"
abilitato in "File > Impostazioni"

Did you put the ~10uf cap between rst and ground on the uno you're using as programmer? Otherwise, the auto reset will confuse it

Are you doing upload using programmer, or normal upload?

Is the Arduino as ISP sketch running on the uno being used as programmer?

Minor procedural point - please go back to your post, select "More -> Modify" and correct your "quote" mark-up to "code" when posting program (sketch) files or diagnostic output.