- This topic has 1 reply, 2 voices, and was last updated 11 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › debug usbasp
iam trying to program atmega16 using my usbasp programmer it produces this error. i double checked the connection and tried but ending in same error
“make.exe” program avrdude -p atmega16 -P usb -c usbasp -U flash:w:main.hex 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. make.exe: *** [program] Error 1 > Process Exit Code: 2 > Time Taken: 00:00
i think this is due to frimware problem, so i tryied to re-burn frimware using another usbtiny in winavr
this make file is found in www.fischl.de/usbasp
MCU_TARGET = atmega8
FLASHER = avrdude -c usbasp -p $(MCU_TARGET)
usbasp: fuses
$(FLASHER) -B 1 -U flash:w:usbasp.atmega8.2011-05-28.hex
fuses:
$(FLASHER) -B 200 -U hfuse:w:0xC9:m -U lfuse:w:0xEF:m
shell:
$(FLASHER) -t
the error i get while programming frimware hex winavr is
> “make.exe” all
make.exe: *** No rule to make target `all’. Stop.
> Process Exit Code: 2
> Time Taken: 00:02
then i tried pony prog…there also some error and probe test failed
Hi,
Check the connections especially the reset pin of the controller should be pulled up. There are also few jumpers in the usbasp and you must set them in the correct way.