Hi,
Just built by USBtiny and have successfully loaded the software, etc. on Ubunutu Linux (Natty). The computer recognises the USBtiny and I can probe the attached chip (part ID, fuses, settings, etc).
My objective is to upgrade the firmware in my Ice Tube Clock.
The apparent problem is when I go to download a hex file to my clock the write progress bar freezes (see output below).
I have disabled the jumper for power. I have followed the instructions on the Ice Tube mod webpage (I removed the tube, etc.). I have also tried reading the contents of the flash memory but received the same result. I have tried different hex files. Initially the Ice Tube Clock would beep when powered-up, after the first run it hasn't beeped since. I figure the flash has been erased in preparation for the write.
This is my first time programming a microcontroller, I've read a lot about all this prior to starting. I've check the programmer; the LED indicators work as expected (per instructions), i've double checked the wiring (especially diodes, polarized caps, IC's, etc.). Again the computer-to-programmer interface appears to work just fine. The clock has been working well for just over a year (though it doesn't keep good time, hence the new Ultimate GPS module and USBtiny programmer which should keep it sorted).
Am I missing something? Any suggestions on things I should check? Thank you in advance for any assistance.
OUTPUT FOLLOWS:
rob@tubby:~/Desktop/dec_22_2011$ avrdude -c usbtiny -p m168 -U flash:w:iv.hex -v
avrdude: Version 5.11svn-20111019, compiled on Sep 15 2012 at 21:04:41
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/rob/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/parport0
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 002:013
AVR Part : ATMEGA168
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
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 20 4 0 no 512 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 16384 128 128 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9406
avrdude: safemode: lfuse reads as E2
avrdude: safemode: hfuse reads as C6
avrdude: safemode: efuse reads as 1
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Using SCK period of 10 usec
avrdude: reading input file "iv.hex"
avrdude: input file iv.hex auto detected as Intel Hex
avrdude: writing flash (15296 bytes):
Writing | | 0% 0.00s^C