<div><div>Hi Trevyn,</div><div><br></div><div>Thanks. Funny I just came across that article. It looks like a lot of fidgeting but I think it could very well be worth it if one is to do much Arduino coding. </div><div><br></div>
</div>So when you say you've used it but not for arduino do you mean with the same chip that's in the Arduino?<div><br></div><div>I mean, this is a big enough deal that if its easier to debug on another chip, it's worth changing to that platform despite the fact that I've already got some arduinos and spent some time with them.</div>
<div><br></div><div>Darcy<br>
<br><br><div class="gmail_quote">On Sun, Aug 7, 2011 at 2:40 PM, Trevyn Watson <span dir="ltr"><<a href="mailto:trevyn@dybydx.ca">trevyn@dybydx.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Yeah, debugging is one area where Arduino falls a bit short, which is unfortunate since it's aimed at people new to programming.<br>
<br>
However, there is an option:<br>
<br>
AVRs support a protocol called DebugWIRE, which uses the reset pin as a two-way communication port to get debugging info into and out of the chip. You need a piece of hardware to interface DebugWIRE to your computer. The cheapest at the moment is the AVR Dragon, available at Digikey: <a href="http://bit.ly/o5jlke" target="_blank">http://bit.ly/o5jlke</a>. It supports a vast number of AVRs, and a few useful programming modes in addition to DebugWIRE - HVPP (useful if you screwed up the fuses on a chip), JTAG, and ISP (for loading the Arduino bootloader or using your AVR without it).<br>
<br>
The Dragon interfaces with AVR Studio and gives you direct control over the registers including IO, and the ability to single-step through your programs. I've used it, but never with an Arduino. I found a blog post that explains very thoroughly what it is and how to do it: <a href="https://husks.wordpress.com/2010/02/21/modify-an-arduino-for-debugwire/" target="_blank">https://husks.wordpress.com/<u></u>2010/02/21/modify-an-arduino-<u></u>for-debugwire/</a><div>
<div></div><div class="h5"><br>
<br>
<br>
On 07/08/2011 12|37, Darcy Whyte wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I worked on Baby Drawbot a bit this morning.<br>
<br>
I find that the method of streaming debug information into the serial<br>
monitor is pretty poor.<br>
<br>
Are there any methods of:<br>
<br>
1) using an emulator so we can do tracing and have better problem solving?<br>
<br>
2) a way of tapping into the processor to get real time information<br>
about what's going on (aside from those silly serial writes).<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Lab mailing list<br>
<a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a><br>
<a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/<u></u>listinfo/lab</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Lab mailing list<br>
<a href="mailto:Lab@artengine.ca" target="_blank">Lab@artengine.ca</a><br>
<a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/<u></u>listinfo/lab</a><br>
</blockquote></div><br></div>