23
\$\begingroup\$

Can anyone advise what hardware and software is required for debugging AVR in circuits?

Mitu Raj
11k6 gold badges25 silver badges49 bronze badges
asked Nov 5, 2009 at 21:42
\$\endgroup\$

3 Answers 3

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

answered Nov 6, 2009 at 5:27
\$\endgroup\$
8
\$\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.

answered Nov 12, 2009 at 8:07
\$\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.

answered Nov 5, 2009 at 22:13
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.