I want to program using the ICSP from AVR on linux using the terminal. I have installed the AVR tool chain. My target is an ATMEGA328 chip. I made the assumption that the AVR tool chain comes with drivers for the ICSP. I went through the cd that came with the programmer and did not find any driver software. The circuit I was using was basic. Just a capacitor to smooth out the input voltage, an LED indicating there is power, and the ATMEGA328 chip (with power and ground connections) connected to the ICSP header. Nothing much at all, just a standard test circuit. The command that I ran in the terminal was:
sudo avrdude -p m328 -c avrispmkII
The message I got back was:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
The status LED on the programmer was green when power was connected to board, so I believe it identified the target. Do i need some special driver software for the programmer? What is the next step?