<?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=2487" />

<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>2008-05-21T19:08:53+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2487</id>
<entry>
<author><name><![CDATA[le fatumbi]]></name></author>
<updated>2008-05-21T19:08:53+01:00</updated>
<published>2008-05-21T19:08:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15938#p15938</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15938#p15938"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15938#p15938"><![CDATA[
Thanks a lot for that <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><br /><br />Especially for the drawing.<br /><br />That helped me to make something working (copy Buttons to Dels) with Ada compiler and I found (i think) my bugg.<br /><br />For simulation (with a nice display of registers and ports): I didn't noticed any option to load a .hex file in the simulator, but it seems that I just need an empty project and configure it to compile and run with my makefile, in avr-studio.<br /><br />That should work, with maybe some litlle adjustments in makefile... I'll try this week-end.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1012">le fatumbi</a> — Wed May 21, 2008 7:08 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2008-05-19T19:37:01+01:00</updated>
<published>2008-05-19T19:37:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15912#p15912</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15912#p15912"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15912#p15912"><![CDATA[
Don't forget <a href="http://robosavvy.com/site/index.php?option=com_openwiki&amp;Itemid=&amp;id=robotis_bioloid" class="postlink">robosavvy's wiki</a>!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Mon May 19, 2008 7:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-19T16:41:05+01:00</updated>
<published>2008-05-19T16:41:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15904#p15904</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15904#p15904"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15904#p15904"><![CDATA[
Mark Pepper has documented an (almost complete) schematic: <br /><!-- m --><a class="postlink" href="http://robosavvy.com/Builders/pepperm/CM-5%20Schematic%20V1.JPG">http://robosavvy.com/Builders/pepperm/C ... c%20V1.JPG</a><!-- m --><br /><br />Jon Hylands has contributed a lot of info here: <!-- m --><a class="postlink" href="http://www.bioloid.info/tiki/tiki-index.php">http://www.bioloid.info/tiki/tiki-index.php</a><!-- m --><br /><br />Between those two you should be able to figure out most of the I/O for the CM-5.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Mon May 19, 2008 4:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[le fatumbi]]></name></author>
<updated>2008-05-19T07:10:30+01:00</updated>
<published>2008-05-19T07:10:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15885#p15885</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15885#p15885"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15885#p15885"><![CDATA[
Hello,<br /><br />I used also successfuly gnu's avr-gcc built on msys to program my cm5 this week-end.<br /><br />example.c works fine, as an example, and I get inspired from it to build my own gateway between my PC and DaisyBus, and it begins to run well.<br /><br /><br />Is there any complementary ressources on how I/O ports are used ?<br /><br />For coms, it's easy to find and understand, but I'd need a little more definitions : ie button, leds, battery charging, and also on what is let free to use in cm-5.<br />Robotis seems not so cooperatif with these informations on their FAQ ?<br /><br /><br />I have another little problem, in the same idea:<br /><br />Now, I'm trying also to program cm5 using ADA langage, with avr-ada.<br />The version of the compiler I'm using is the snapshot built on 2002 and is not so mature, but the code generated seems not so bad at a first (and third...) glance.<br /><br />However the result is appalling... even after having reduced my code at minimum, with no interruption and only uart1 initialized, I can not see why mcu resets every time. I'm not able to send more than two characters.<br /><br />At minimum, I'd need a tool able to debugg/simulate (with nothing like jtag-ice or so...).<br /><br />Even AVR-studio does not seem to be able to simulate directly a MCU from hex or elf file, and seems to need a C source or I missed something ?<br /><br />Any experience from somebody in this way ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1012">le fatumbi</a> — Mon May 19, 2008 7:10 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JonHylands]]></name></author>
<updated>2008-05-08T13:52:07+01:00</updated>
<published>2008-05-08T13:52:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15698#p15698</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15698#p15698"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15698#p15698"><![CDATA[
Personally, I use GCC for all my ATmega work. I don't work with the CM-5, but I work with a few other custom ATmega168 boards I have made.<br /><br />I use the programmer with AVRStudio to set the fuses, and do the initial programming on most of my boards, just because it has good diagnostics included.<br /><br />- Jon<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=373">JonHylands</a> — Thu May 08, 2008 1:52 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-08T13:49:16+01:00</updated>
<published>2008-05-08T13:49:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15697#p15697</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15697#p15697"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15697#p15697"><![CDATA[
Both of them are fine.  I personally use avr-gcc with great success but would have no fears over using AVR Studio.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Thu May 08, 2008 1:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tom_chang79]]></name></author>
<updated>2008-05-08T07:00:17+01:00</updated>
<published>2008-05-08T07:00:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15695#p15695</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15695#p15695"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15695#p15695"><![CDATA[
Can the SDK provided by Atmega be used for the CM-5?  The SDK I found from Atmel's site is AVR Studio 4:<br /><br /><!-- m --><a class="postlink" href="http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725">http://www.atmel.com/dyn/products/tools ... ol_id=2725</a><!-- m --><br /><br />???<br /><br />Or do people prefer using GNU's C Compiler?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=877">tom_chang79</a> — Thu May 08, 2008 7:00 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JonHylands]]></name></author>
<updated>2008-05-08T02:41:47+01:00</updated>
<published>2008-05-08T02:41:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15694#p15694</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15694#p15694"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15694#p15694"><![CDATA[
The CM-5 has an AVR ATmega128 in it, not a PIC, so MPLAB is out of the question. For something similar, look at AVRStudio...<br /><br />- Jon<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=373">JonHylands</a> — Thu May 08, 2008 2:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LunaCity]]></name></author>
<updated>2008-05-08T00:33:30+01:00</updated>
<published>2008-05-08T00:33:30+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15693#p15693</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15693#p15693"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15693#p15693"><![CDATA[
Followup question ... <br /><br />I'm still thinking about possibly programming the CM-5, but would like to know if this is possible using MPLAB, which I have used before, so it's got a reasonable familiarity. The programmer has got a serial port, but it's female, suggesting it's for input from the computer, not output to the CM5. <br /><br />I'm also suspecting maybe the CM-5 board interface might not be compaticle with the MPLAB ICD. I know there's a PIC microcontroller in there somehwere. <br /><br />It would be great if I could just hook the CM-5 up to the MPLAB ICD and program away, so if someone knows how to do that, please let me know.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1009">LunaCity</a> — Thu May 08, 2008 12:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2008-05-04T10:00:35+01:00</updated>
<published>2008-05-04T10:00:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15630#p15630</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15630#p15630"/>
<title type="html"><![CDATA[Re: Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15630#p15630"><![CDATA[
<blockquote><div><cite>LunaCity wrote:</cite><br />Hi. I just got a Bioloid comprehensive kit, but the CD doesn't contain the &quot;example.c&quot; file that has been mentioned here. <br /><br />Can someone provide me with a simple, basic &quot;Hello World&quot; type of C program for the CM-5 that can be compiled from a unix or linux command line.<br /></div></blockquote><br /><br />The example and some resources about programming Bioloid:<br /><a href="http://www.tribotix.info/Downloads/Robotis/Bioloid/Example%20Designs/C%20Programming/example.zip" class="postlink">example.zip</a><br /><a href="http://robosavvy.com/site/index.php?option=com_openwiki&amp;Itemid=&amp;id=robotis_bioloid#programming_the_bioloid" class="postlink">Robosavvy programming the bioloid</a><br /><br />You can use <a href="http://www.nongnu.org/avrdude/" class="postlink">avrdude</a> for linux<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Sun May 04, 2008 10:00 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LunaCity]]></name></author>
<updated>2008-05-04T01:23:24+01:00</updated>
<published>2008-05-04T01:23:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15627#p15627</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15627#p15627"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15627#p15627"><![CDATA[
Thanks, that's pretty straightforward. I've done something similar with a PIC microcontroller before. <br /><br />I think I'm going to bypass the CM-5 and use Gim Stix though, because of the memory constraints. What I'm trying to do involves some number crunching.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1009">LunaCity</a> — Sun May 04, 2008 1:23 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-02T07:16:18+01:00</updated>
<published>2008-05-02T07:16:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15609#p15609</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15609#p15609"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15609#p15609"><![CDATA[
Firstly: If you understand the controller inside the CM-5 (i.e. the Atmel ATMega128) programming it is trivial.  If you've come from a C background where the only thing you've ever programmed has been on a host OS (e.g. Windows, Linux) you're going to have to re-learn some of the key ideas.<br /><br />Whereas C was originally intended to be a user-friendly assembler (so that you could write hardware-level code in a manner that didn't require remembering every instruction) in the modern world it's morphed into Yet Another Language With A Million Libraries.<br /><br />Obviously in an embedded solution you a) don't have those libraries and b) don't want them.  You have a grand total of 4k of RAM in the CM-5 and while that's absolutely plenty to do almost everything you could conceive of (short of vision systems) you need to be careful when writing software.  For example, a careless 1000 element integer array will take literally half of your RAM.<br /><br />Having said all that C is not hard to use on any of the AVR systems.  It's well documented and the AVR GCC provided with WinAVR uses all the same constant names as the Atmel products and documentation so you can literally read the Atmel PDFs and write C.<br /><br />So the next steps for you are:<br /><br />1) Download and get a feel for the Atmel ATMega128 PDF documentation.  Particularly pay attention to the registers in each section.<br /><br />2) Download the latest CD from Robotis (you can Google, right?).<br /><br />3) Read the example.c and the Bioloid guides upside and backwards and forwards and backwards again.  You may notice *lots* of deliberate errors in the example.c.<br /><br />4) Upload the example.c by compiling it with WinAVR as per the Robotis PDFs and using Robot Terminal to send the .hex file.<br /><br />5) Post on here whenever you have any questions.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Fri May 02, 2008 7:16 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LunaCity]]></name></author>
<updated>2008-05-01T23:05:16+01:00</updated>
<published>2008-05-01T23:05:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15601#p15601</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15601#p15601"/>
<title type="html"><![CDATA[Beginners Help with CM-5 C programming]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2487&amp;p=15601#p15601"><![CDATA[
Hi. I just got a Bioloid comprehensive kit, but the CD doesn't contain the &quot;example.c&quot; file that has been mentioned here. <br /><br />Can someone provide me with a simple, basic &quot;Hello World&quot; type of C program for the CM-5 that can be compiled from a unix or linux command line. <br /><br />Also instructions for getting it into the CM-5 if necessary. (Converting to .hex) <br /><br />Alternatively, I would love to just use the CM-5 as a battery pack and just run stuff via the USB2Dynamixel connector if possible, since the CM-5 seems to be such a pain in the butt to program. If anyone knows how to do that, let me know. <br /><br />I have C code that can communicate with the AX-12 directly, but it doesn't work if I send it to the CM-5, and it seems like a waste to have to ignore the CM-5 altogether and install my own power supply.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1009">LunaCity</a> — Thu May 01, 2008 11:05 pm</p><hr />
]]></content>
</entry>
</feed>