Arduino UNO bootloader su 328 attempt 10 of 10: not in sync: resp=0x03

Salve!

Ho acquistato un atmega328P vergine, per tutto il pomeriggio sono stato a provare a caricarci il bootloader da IDE con UNO. Dopo un po' mi dà l'errore sotto riportato

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03
Errore durante la scrittura del bootloader

Ovviamente prima di scrivere qui, ho cercato su internet il problema. Si dice che sia un condensatore da 10uF tra Vcc e RESET di arduino...ovviamente non ha funzionato.

Riguardo il circuito:

  • Arduino 10 a pin 1 di Atmega
  • 11 a 17
  • 12 a 18
  • 13 a 19
  • Vcc a 7 e 20
  • GND a 8 e 22

Cosa sto sbagliando?

p.s. Lo sketch di ArduinoISP fa riferimento a OLD_STYLE_WIRING, spulciando un po' il file ho notato che si riferisce proprio ai pin 11-12-13. Essendo commentato mi fa pensare che questo metodo che sto utilizzando sia obsoleto...

Che tipo di scheda hai selezionato?

Ciao,
P.

Scheda: Arduino Uno
Programmatore: Arduino as ISP

Per programmare un ATMEGA328P vergine devi selezionare la configurazione stand alone che vuoi implementare. Il tipo di processore lo selezioni da Strumenti->Scheda, ma prima ti conviene scaricare il pacchetto schede MiniCore e scegliere il componente da lì.

Ciao,
P.

>dynoz: Segui alla lettera la seguente GUIDA, un po' vecchiotta ma sempre valida :wink:

Guglielmo

Grazie a entrambi. Una domanda, forse retorica:
Se non sbaglio posso anche omettere l'oscillatore e i due ceramici, giusto?

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

Errore durante la scrittura del bootloader

Da quello che ho letto in rete, è dovuto al oscillatore esterno assente...?

NO, se ti studi il datasheet del ATmega328P vedi che i chip vergini (come quello che dici di voler programmare), vengono consegnati con i FUSE impostati in modo da usare il clock interno ed il divisore per 8 attivo, ovvero ...
... lavorano ad 1MHz clock interno.

Se cerchi c'è già stata qui, sul forum italiano, un altra lunga discussione su un problema simile al tuo ... ::slight_smile:

Guglielmo

A dire il vero già sapevo che i chip vergini venissero venduti col divisore attivo... E io infatti ho chiesto se posso caricare il bootloader senza oscillatore esterno o se devo per forza disattivarlo e usare un esterno...

Edit: risolto. Ho seguito il consiglio di pgiagno. Grazie a tutti

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.