i have been testing around because i had to install the driver for my USBasp agian for some reason. and while doing so, i have extracted a little bit more information wich might come in handy:
output of the IDE whit ditailed uploading info
Binaire sketch-grootte: 808 bytes (van een 4.096-byte maximum)
C:\Users\nick\Desktop\hobby's\arduino\hardware/tools/avr/bin/avrdude -CC:\Users\nick\Desktop\hobby's\arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny45 -cusbasp -Pusb -Uflash:w:C:\Users\nick\AppData\Local\Temp\build85975423425650053.tmp\Blink.cpp.hex:i
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Users\nick\Desktop\hobby's\arduino\hardware/tools/avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbasp
avrdude: seen device from vendor ->www.fischl.de<-
avrdude: seen product ->USBasp<-
avrdude: Warning: Found USB device "USBasp" with old VID/PID! Please update firmware of USBasp!
AVR Part : ATtiny45
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 256 4 0 4000 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 32 0 yes 4096 64 64 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 2 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: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9206
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: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: reading input file "C:\Users\nick\AppData\Local\Temp\build85975423425650053.tmp\Blink.cpp.hex"
avrdude: writing flash (808 bytes):
Writing | ################################################## | 100% 18.66s
avrdude: 808 bytes of flash written
avrdude: verifying flash memory against C:\Users\nick\AppData\Local\Temp\build85975423425650053.tmp\Blink.cpp.hex:
avrdude: load data flash data from input file C:\Users\nick\AppData\Local\Temp\build85975423425650053.tmp\Blink.cpp.hex:
avrdude: input file C:\Users\nick\AppData\Local\Temp\build85975423425650053.tmp\Blink.cpp.hex contains 808 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.63s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x20 != 0xff
avrdude: verification error; content mismatch
avrdude done. Thank you.
still have those anouying errors about my firmware hehe. however, it shows me that the hex file have been uploaded/written to the flash memory, but still, when i test with an LED and blink sketch ("int led = 1;") none of my pins are blinking. the led is working just fine when hooked up to power suply.
i am new to the command line avrdude usage, so i won't be very good at using it if i need to.
at this point i am confused about what steps to take because i am having very many replies and much information to process in my head (headaches hehe).
regarding the post of @chagrin:
Before updating the firmware I'd be verifying the pinout of your device. Your original error is telling you that it cannot communicate with the chip ("avrdude: error: programm enable: target doesn't answer.") and I'll bet money it's because you have your USBAsp pins connected to the wrong pins on the ATTiny.
i am checking my connections double, triple and even more times. but stil that error will not be solved. maybe i am using a wrong refernce to connect mine jumper wires from the icsp cable header to mine attiny45.
the refernce is in the bottom of this post. please tell me if that is a wrong reference to use for mine connections.
i will also look into the other mentioned information from all you other guys. still not sure how to upgrade the firmware if this is needed. what software do i use to upload the firmware file, is it just avrdude + firmware.hex?
thank you very much so far!
nick
