Hi Guys
I'm using USBASP to upload a small sketch to an ATtiny841 on a standalone board. The sketch uploads properly and quickly, so no problem there. However I need to program up to 20 identical boards with the same sketch. I can't just upload the sketch then remove the programming probes (I am using 6 pogo pins onto programming pads on the pcb) and then transfer them to the next board and repeat the upload process as I get this error message when trying to upload on any subsequent board:
avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbasp
AVR Part : ATtiny841
Chip Erase delay : 4500 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 6 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 6 32 0 yes 8192 16 512 4500 4500 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 : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude: auto set sck period (because given equals null)
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Doing the same operation using a UNO as ISP but using a standard ICSP 6way connector produces the same result, and I have to disconnect the USB connection to the pc each time otherwise I get the same sort of error. However, with the USBASP, its more awkward as its plugged into my pc directly and I don't want to wear out the USB connector or risk damaging the programmer by handling it all the time. Simply removing the programmer onboard power jumper (3.3/5v choice) to remove power from the USBASP during swapping the boards doesn't help, I still get the error message and have to go through removing the programmer from the usb connection and reconnecting and reconfirming the COM port all over again.
Is there a more elegant way around this? If I buy a USB extension cable (which will be a good idea anyway) I could add a switch into it, but which of the lines would have to be switched? D+, D- or ID? I've already established that removing just 5v has no effect? Any suggestions gratefully received!
Bernie