23
\$\begingroup\$

Can anyone advise what hardware and software is required for debugging AVR in circuit.

\$\endgroup\$
14
\$\begingroup\$

Normal ISP programmers have no JTAG debugging capabilities. For this you will need slightly more expensive hardware. A JTAG in circuit emulator will enable you to let your circuit communicate with your PC while you are running the firmware. This way you can set breakpoints, watch the memory, enable/disable pins and see the exact status of your micro controller. The ISP programmers from EMSL and Adafruit will not let you do this.

One of the cheapest programmers that have in-circuit emulation capabilities is the AVR Dragon. It will cost you about $50,-. It is cheap for a reason though: it's too easy to overload the circuit and break the programmer. If you get one I recommend that you find some form of protection like a DragonRider or a DragonHide. (I already killed my first dragon which is surprisingly easy to do)

A more robust solution would be an AVR-JTAG-ICE-MKII but this thing is much more expensive.

You can also try and build one yourself.

\$\endgroup\$
7
\$\begingroup\$

Another option for hardware may be the Bus Pirate at $27.15(sold though seedstudio) which also do other things. I haven't used it for JTAG yet, but this is what the manual says: link.

\$\endgroup\$
6
\$\begingroup\$

For the hardware, see my answer to a similar question.

For the software, you can start with AVR Studio on Windows. If you're using Linux for your development platform, then read this Linux Journal article.

\$\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.