# Is it possible to use openocd to program an atmega using an AVR ISP (mk2)?

I have an ATMega2560 on a custom board which I want to program with my AVRISP mkii.

I have successfully programmed it using the Arduino IDE, and also over the commandline using avrdude.

Is there a built-in "interface" config/script which is likely to work? I'm not even really sure what setting to use for the "interface" (e.g. ft2232, buspirate).

• Why do you want to use OpenOCD? Use the tool that works. – Turbo J Jul 7 '12 at 7:28
• @TurboJ Good point. I guess I'm wanting to minimise the difference between configuratons if possible. I thought OpenOCD was somewhat of an abstraction, potentially allowing different chips to be uploaded/debugged with only a few small changes. Cheers tho! – aaaidan Jul 9 '12 at 1:25
• Also, if you think the answer is "you can't, out of the box", post that and I'll accept it! – aaaidan Jul 9 '12 at 1:25