<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=7690" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2012-01-08T02:13:34+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=7690</id>
<entry>
<author><name><![CDATA[planius]]></name></author>
<updated>2012-01-08T02:13:34+01:00</updated>
<published>2012-01-08T02:13:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33391#p33391</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33391#p33391"/>
<title type="html"><![CDATA[CM510 and AVR Dargon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33391#p33391"><![CDATA[
The JTAG port is not directly accessible on the CM510, the JTAG port signals are split up over ADC4-7, it would be quite easy to make a mistake in wiring it up, so check you got all the connections right. See here for correct wiring: <br /><a href="http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRDragon/AVRDragon_connecting_to_target_through_the_jtag_interface.htm" class="postlink">http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRDragon/AVRDragon_connecting_to_target_through_the_jtag_interface.htm</a><br />For the CM510 the pins are: <br />TCK = ADC4 <br />TMS = ADC5 <br />TDO = ADC6 <br />TDI = ADC7 <br /><br />According to the ATMega2561 datasheet fuse and lock bits need to be as follows: <br />The JTAGEN Fuse must be programmed to enable the JTAG Test Access Port. In addition, the <br />OCDEN Fuse must be programmed and no Lock bits must be set for the On-chip debug system <br />to work. As a security feature, the On-chip debug system is disabled when either of the LB1 or <br />LB2 Lock bits are set. <br /><br />In addition the code needs to be compiled with full debug support. Assuming you have done all of the above correctly, I don't know what the issue might be.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2823">planius</a> — Sun Jan 08, 2012 2:13 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2012-01-05T23:41:15+01:00</updated>
<published>2012-01-05T23:41:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33378#p33378</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33378#p33378"/>
<title type="html"><![CDATA[CM510 and AVR Dargon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33378#p33378"><![CDATA[
Even if you connect the JTAG pins there often problems on how the reset is wired. Also it may be that the JTAG is disabled in the ATMega fuses of the production CM-510 units.<br /><br />Debugging with JTAG is also quite a steep additional learning curve. If you can use the classic techniques suggested above without JTAG it might be quicker.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu Jan 05, 2012 11:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2012-01-05T20:19:41+01:00</updated>
<published>2012-01-05T20:19:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33377#p33377</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33377#p33377"/>
<title type="html"><![CDATA[CM510 and AVR Dargon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33377#p33377"><![CDATA[
I'm a little confused here... angelo wrote <br /><blockquote class="uncited"><div><br />I connected the Avr Dargon with the Biloid digital card with wires in ISP programming mode: MOSI, MISO, SCk etc...<br /></div></blockquote><br /><br />Are we talking about an add-on digital card with an AVR that you are programming or are we talking about the CM-510.  You seem to be trying to use the ISP interface which is common for programming add-on cards.  <br /><br />According to the schematic there's a JTAG interface on the CM-510 controller board, but you would need to open up the case to get at it.  Since all I have is an ISP I've never tried this myself.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Thu Jan 05, 2012 8:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2012-01-05T18:27:59+01:00</updated>
<published>2012-01-05T18:27:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33375#p33375</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33375#p33375"/>
<title type="html"><![CDATA[CM510 and AVR Dargon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33375#p33375"><![CDATA[
I think that CM-510 doesn't have the connector for JTAG, but while you wait an answer from someone with more knowledge in &quot;hardware debugging&quot; you can try the simple and classic &quot;software debugging&quot; with printf. Something like this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>   if &#40;debugMode&#41;<br />      printf&#40; &quot;\n\ninput state:%d data:%X\n\n&quot;, nextIs, data&#41;;<br /></code></dd></dl><br /><br />You can create a debug function and use several values for debug levels, not only 0 for false and ant any-other-value for true. For example:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>void debug&#40;char *str, int value, int debugLevel&#41;;<br /></code></dd></dl><br /><br />I didn't neeed it, but I think you can even use the <a href="http://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html" class="postlink">Standard predefined macros</a>:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>     fprintf &#40;stderr, &quot;Internal error: &quot;<br />                      &quot;negative string length &quot;<br />                      &quot;%d at %s, line %d.&quot;,<br />              length, __FILE__, __LINE__&#41;;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Thu Jan 05, 2012 6:27 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[angelocarenzo]]></name></author>
<updated>2012-01-05T16:40:18+01:00</updated>
<published>2012-01-05T16:40:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33374#p33374</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33374#p33374"/>
<title type="html"><![CDATA[CM510 and AVR Dargon]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=7690&amp;p=33374#p33374"><![CDATA[
Hello to all forum people;<br />fisr of all I would like to congratulate with RoboSavvy forum.<br />Here I found some important and interestings issues.<br /><br />I'm university student of Genoa (Italy).<br />I'm doing a sort of driver for Bioloid control in C language for an University exam.<br />I tried my code with 2 motor AX-12. I downloaded the code and something work well and something doesn't work.<br /><br />Now I have a big problem. <br /> <img src="http://forum.robosavvy.com/images/smilies/icon_question.gif" alt=":?:" title="Question" /> <br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>I have to verify with the Jtag where are my bugs.</code></dd></dl><br />I bought the AvrDargon Jtag.<br />I connected the Avr Dargon with the Biloid digital card with wires in ISP programming mode: MOSI, MISO, SCk etc...<br /><br />Using Avr 5.0 and Avr Programming the interface show me a message:<br /><blockquote class="uncited"><div><br />Timestamp:2012-01-05 16.33.05.545<br />Severity:ERROR<br />ComponentId:20100<br />StatusCode:0<br /><br />Programming session setup failed: TCF command: Device:startSession failed:  Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00<br /></div></blockquote><br /><br />Is there something that try to connect tha Avr Dragon and CM510?<br />Any suggestions would be more appreciate!!!<br /><br />Many thanks in advanced.<br />Reagrds.<br />Angelo.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=3100">angelocarenzo</a> — Thu Jan 05, 2012 4:40 pm</p><hr />
]]></content>
</entry>
</feed>