ATtiny 85 / Arduino Nano

Salute a Tutti,

Volevo programmare un ATtiny utilizzando un Arduino Nano (Clone) con oldbootloader

Sto ulilizzando IDE 1.8.5

Ho selezionato sul gestore schede AT 25/45/85 e selezionato CPU 85

Durante il caricamento del seguente programma :

void setup()
{
//PIN0 = PIN5
pinMode(0, OUTPUT);
}
void loop()
{
delay(500);
digitalWrite(0, HIGH);
delay(500);
digitalWrite(0, LOW);
}

===================================================

Mi compare il segueente errore in fase di compilazione :

===================================================

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\Salvatore\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

Using Port : usb
Using Programmer : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

avrdude done. Thank you.

Errore durante il caricamento dello sketch

==================================================================

Grazie del supporto

Ti sei presentato sul forum?

poi prova

A) Impostare il programmatore: arduino as ISP
B) Scrivi il bootLoader
C) Sketch/Carica tramite un programmatore

Mi sono prentato quando mi sono iscritto (da circa 1 mesetto).

ho seguito i suggerimenti ma mi compare il seguente errore durante la scrittura del bootLoader :

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\Salvatore\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

Using Port : COM4
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03

avrdude done. Thank you.

Errore durante la scrittura del bootloader

Ma ... hai selezionato il giusto "programmatore" tra gli strumenti del IDE? Tu stai usando un "Arduino as ISP" ... devi andare in Tools -> Programmer e selezionare quello.

Ti consiglio comunque lo studio di QUESTO documento.

Guglielmo

Grazie della guida Guglielmo

Questo sono le impostazioni dell' IDE :

Scheda : ATtyny 25/45/85
Processore ATtyny 85
Programmatore : Arduino as ISP

per verifica questi sono i collegamenti Arduino Nano e l' AT :

Piedino 7 SCK: D13
Piedino 6 MISO: D12
Piedino 5 MOSI: D11
Piedino 1 RST: RST

Piedino 8 : 5v
Piedino 4 : GND

condensatore 10uF tra RST e GND

Con le impostazioni di cui sopra questo รจ l' errore che riscontro

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\Salvatore\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

Using Port : COM4
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATtiny85
Chip Erase delay : 400000 us
PAGEL : P00
BS2 : P00
RESET disposition : possible i/o
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


eeprom 65 12 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : STK500
Description : Atmel STK500 Version 1.x firmware
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Errore durante il caricamento dello sketch
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x00ff00
avrdude: Expected signature for ATtiny85 is 1E 93 0B
Double check chip, or use -F to override this check.

avrdude done. Thank you.

Mi sono fatto una lista delle azioni per caricare un programma su un ATtiny85 con un Arduino Nano. Questa:

    • Selezionare la scheda "Arduino nano" (eventualmente "old bootloader")
    • Visualizzare sull'IDE dagli Esempi il programma "ArduinoISP"
    • Leggere le istruzioni in testa al programma
    • Caricare "ArduinoISP" sull'Arduino nano
    • Verificare che nell'IDE sia presente la scheda ATtiny25/45/85 dell'ATtinyCore e selezionarla. NON SELEZIONARE ATTINY85 DI AttinyClassic
    • Scrivere sull'IDE il programma per ATtiny85, tenendo conto della denominazione delle porte e evitando, se possibile, di usare la porta A0 (reset). NON SCHIACCIARE IL BOTTONE "CARICA"
    • Impostare "Strumenti => Programmatore => Arduino as ISP"
    • Impostare le seguenti connessioni Arduino => ATtiny: 10 => pin1; 11 => pin5; 12 => pin6; 13 => pin7; GND => pin4; 5V => pin8. Potete usare i pin dell'ICSP dell'Arduiono nano AD ESCLUSIONE DEL PIN DEL RESET DELL'ATTINY85 CHE VA CONNESSO AL PIN 10 DELL'ARDUINO NANO
  • Inserire un condensatore elettrolitico da 10uF fra reset e GND di Arduino nano (il + sul pin, il - su GND).
    • La prima volta di un ATtiny selezionare "Strumenti => Scrivi il bootloader"
    • Caricare il programma per ATtiny85 su ATtiny85

Vedi a che numero ti blocchi o ti viene segnalato un errore.

Ciao,
P.

Tiacico:
Piedino 1 RST: RST

Errore.
Il pin RST va collegato al pin D10.

Seguendo la procedura indicata e anche le infornazioni presenti nel documento suggerito da Guglielmo.
Problema risolto.
Grazie a tutti