2
\$\begingroup\$

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).

\$\endgroup\$
  • 1
    \$\begingroup\$ Why do you want to use OpenOCD? Use the tool that works. \$\endgroup\$ – Turbo J Jul 7 '12 at 7:28
  • \$\begingroup\$ @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! \$\endgroup\$ – aaaidan Jul 9 '12 at 1:25
  • \$\begingroup\$ Also, if you think the answer is "you can't, out of the box", post that and I'll accept it! \$\endgroup\$ – aaaidan Jul 9 '12 at 1:25
3
\$\begingroup\$

I don't believe openOCD even supports the Atmel AVRISP mk2. The list of supported dongles is here. OpenOCD uses the JTAG communication protocol to communicate with, set breakpoints, and control its target processors and FPGA's (IEEE standard 1149.1 in case you care). The Atmel AVRISP mk2 does not communicate using this protocol (in general). In limited cases it supports programming using something like it, but it isn't fully 1149.1 compatible -- so it isn't even likely that someone will add support for it to OpenOCD.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.