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

<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-12-05T10:55:45+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2293</id>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-12-05T10:55:45+01:00</updated>
<published>2008-12-05T10:55:45+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18547#p18547</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18547#p18547"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18547#p18547"><![CDATA[
So did we.  We're still trying to sort out the final points of the licence and other things keep distracting us.  We're also trying to figure out how much to release.<br /><br />We'll get there!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Fri Dec 05, 2008 10:55 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ksamay]]></name></author>
<updated>2008-12-03T13:22:16+01:00</updated>
<published>2008-12-03T13:22:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18526#p18526</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18526#p18526"/>
<title type="html"><![CDATA[:)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18526#p18526"><![CDATA[
<img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" />. Thanks .<br /><br />I think i missed it <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /> .<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1221">ksamay</a> — Wed Dec 03, 2008 1:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-12-01T22:00:08+01:00</updated>
<published>2008-12-01T22:00:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18494#p18494</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18494#p18494"/>
<title type="html"><![CDATA[Re: Is the C library ready for release ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18494#p18494"><![CDATA[
<blockquote><div><cite>ksamay wrote:</cite><br />Hi StuartL,<br /><br />By when are you planning to release the C library ?<br /></div></blockquote><br /><br />About six months ago? <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Mon Dec 01, 2008 10:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ksamay]]></name></author>
<updated>2008-12-01T18:03:43+01:00</updated>
<published>2008-12-01T18:03:43+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18491#p18491</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18491#p18491"/>
<title type="html"><![CDATA[Is the C library ready for release ?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=18491#p18491"><![CDATA[
Hi StuartL,<br /><br />By when are you planning to release the C library ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1221">ksamay</a> — Mon Dec 01, 2008 6:03 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-09-20T14:40:01+01:00</updated>
<published>2008-09-20T14:40:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17604#p17604</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17604#p17604"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17604#p17604"><![CDATA[
<blockquote><div><cite>Mandor wrote:</cite><br />Hi,<br /><br /><blockquote><div><cite>StuartL wrote:</cite>Couple of things to watch out for:<br /><br />The example.c file has LOTS of mistakes.  There's bit masks which are wrong, the charging circuit is turned on by default (look in the post history for the fire this caused on one of my battery packs) and some of the comments are misleading.<br /></div></blockquote><br />'so, where could we found a debugged example.c (or an equivalent working example) ?<br /><br />Thanks.</div></blockquote><br /><br />We never wrote a debugged example.c as example.c slowly evolved into our C library.  Which is probably ready for release now, I'll talk to Matt about it.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Sat Sep 20, 2008 2:40 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mandor]]></name></author>
<updated>2008-09-20T13:49:53+01:00</updated>
<published>2008-09-20T13:49:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17602#p17602</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17602#p17602"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17602#p17602"><![CDATA[
Hi,<br /><br /><blockquote><div><cite>StuartL wrote:</cite><br />Couple of things to watch out for:<br /><br />The example.c file has LOTS of mistakes.  There's bit masks which are wrong, the charging circuit is turned on by default (look in the post history for the fire this caused on one of my battery packs) and some of the comments are misleading.<br /></div></blockquote><br />'so, where could we found a debugged example.c (or an equivalent working example) ?<br /><br />Thanks.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1175">Mandor</a> — Sat Sep 20, 2008 1:49 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[clusher]]></name></author>
<updated>2008-09-03T15:53:47+01:00</updated>
<published>2008-09-03T15:53:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17405#p17405</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17405#p17405"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17405#p17405"><![CDATA[
Yeah, I based my C programming on the example.c nad noticed a couple mistakes but I actually didn't pay too much attention on bits they used... I probably should, now that I understand what they are...<br /><br />The charging circuit seems serious... I'll take a look at it!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1097">clusher</a> — Wed Sep 03, 2008 3:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-09-02T21:51:01+01:00</updated>
<published>2008-09-02T21:51:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17395#p17395</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17395#p17395"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17395#p17395"><![CDATA[
Couple of things to watch out for:<br /><br />The example.c file has LOTS of mistakes.  There's bit masks which are wrong, the charging circuit is turned on by default (look in the post history for the fire this caused on one of my battery packs) and some of the comments are misleading.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Tue Sep 02, 2008 9:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[clusher]]></name></author>
<updated>2008-09-02T15:40:18+01:00</updated>
<published>2008-09-02T15:40:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17384#p17384</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17384#p17384"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17384#p17384"><![CDATA[
Compiling in AVR is kinda tricky, if you're not used to compiling.<br />First, install WinAVR and say you want to install Programmers Notepad too, when prompted.<br /><br />The use Programmers notepad to make your .c program. You can use the example.c to start with and search in these forums for a few more examples. It takes some time to learn it well, and you should have some background... Don't forget to create a makefile (or use one from the forums or from the example on the Bioloid CD, changing the name of the files, of course).<br /><br />When you have the programm ready, open the Tools Menu and select the WinAVR compiler. When it finishes, use Robot Terminal to upload to CM-5.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1097">clusher</a> — Tue Sep 02, 2008 3:40 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NEVER]]></name></author>
<updated>2008-08-31T21:19:37+01:00</updated>
<published>2008-08-31T21:19:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17374#p17374</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17374#p17374"/>
<title type="html"><![CDATA[Re: Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=17374#p17374"><![CDATA[
<blockquote><div><cite>danog8 wrote:</cite><br />Hi everybody,<br /><br />I just modified the example.c  code given in the comprehensive kit cd, compiled it, load it to the cm5 and executed with success on Windows.<br /><br />Now i need to do the same, but this time on Linux. The first problem I encountered is that the compiler (gcc) it doesn't recognize the libraries <br />(avr/io.h , inttypes.h etc) but I guess  that's not the real problem because i just have to look up and download them.<br /><br />so my real question is,  how can I develop a C code on Linux and load it to the cm5?, is there anything equivalent to the &quot;Robot terminal&quot; for Linux?<br /><br />i need the robot terminal not just to load the .hex file into the cm5 but also to command the robot with the keyboard<br /><br />thanks and btw ..nice forum!<br /><br />DaNoG<br /></div></blockquote><br /><br />Can u please tell me how to compile in avr<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1147">NEVER</a> — Sun Aug 31, 2008 9:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-03-20T14:45:17+01:00</updated>
<published>2008-03-20T14:45:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14905#p14905</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14905#p14905"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14905#p14905"><![CDATA[
can you run &quot;make clean&quot; and then &quot;make&quot; and then copy the content of all the output here?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Thu Mar 20, 2008 2:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[danog8]]></name></author>
<updated>2008-03-19T10:05:40+01:00</updated>
<published>2008-03-19T10:05:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14882#p14882</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14882#p14882"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14882#p14882"><![CDATA[
/* Thanks for all your help;  I've found the  PATH <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br />to avr-gcc and avr-objcopy */<br /><br />but when I compile i keep getting this error message<br /><br />/usr/bin/avr-objcopy -0 ihex -R .eeprom myproject.hex<br />/usr/bin/avr-objcopy: ' myproject.hex'  : No such file<br />make: *** [myproject.hex] Error 1<br /><br />I think my problem is the makefile but i don't know how to solve it<br />can someone help me with this please!!<br /><br />thx agn<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=817">danog8</a> — Wed Mar 19, 2008 10:05 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[linux23dragon1]]></name></author>
<updated>2008-03-02T11:48:44+01:00</updated>
<published>2008-03-02T11:48:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14539#p14539</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14539#p14539"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14539#p14539"><![CDATA[
<blockquote><div><cite>danog8 wrote:</cite><br />Thanks!<br /><br />now i can connect and upload programs to the CM5 using the Gtkterm !<br /><br />the problem now is that i can't compile my new program, I've downloaded and installed avr-lib and used a makefile that i found in this forum and apparently worked for the person who posted,<br /><br />but i don't know what to put in GNU_AVR_PATH = ...?<br /><br />when i try tocompile usin<br />gcc -c myproject.c<br /><br />i get a lot of errors cause it doesn't know the following libaries<br /><br />error:  avr/io.h: No such file or directory<br />error: avr/interrupt.h: No such file or directory<br />error: avr/signal.h:  No such file or directory<br /><br />although i've already installed the avrlib <img src="http://forum.robosavvy.com/images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /> <br /><br /><blockquote class="uncited"><div><br />TARGET=example<br /><br />GNU_AVR_PATH = /home<br />CC = $(GNU_AVR_PATH)/bin/avr-gcc<br />OBJCOPY = $(GNU_AVR_PATH)/bin/avr-objcopy<br /><br />OPTIM_LEVEL = s<br /></div></blockquote><br /><br /> DaNoG</div></blockquote><br />Hello<br /><br />You need to change the &quot;GNU_AVR_PATH = /home&quot; (in the C file) or comment out the &quot;GNU_AVR_PATH = /home&quot;, and export your $(GNU_AVR_PATH) in the terminal,like this example ; -<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>export GNU_AVR_PATH=&quot;/path/to/avr-gcc Directory&quot;</code></dd></dl><br />##include the quotes as well##<br /><br />I suspect that the avr-gcc will be located in /opt/avr-gcc, or /home/user/avr-gcc.  I have not installed avr-gcc on my system yet, but you get the idea.<br /><br />To see if the $GNU_AVR_PATH command works, issue this command : -<br /><dl class="codebox"><dt>Code: </dt><dd><code>echo $GNU_AVR_PATH</code></dd></dl><br /><br />That should fix that issue.  You can make the $(GNU_AVR_PATH) permanent by entering the full $PATH command in ~/home/user/.bashrc file<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>PATH=$PATH:/opt/avr-gcc/bin ## May be needed<br />GNU_AVR_PATH=/opt/avr-gcc ## This line is needed</code></dd></dl><br /><br />## Remember. Those are example PATHS##<br /><br /><br />Also note that the avr-gcc tool chain is a static cross compiler .  This means that it could also be looking for another $PATH that may not exist (like temporary file locations).   But Hopefully I'm wrong about that. It is a easy fix (Just a matter of creating the temporary $PATH with a symlink).<br /><br />EDIT:- By the way.  Have you set your $TARGET (in the C file) as well?<br />and you might need to issue the command <span style="font-style: italic">avr-gcc -c myproject.c </span>(or <span style="font-style: italic">/opt/avr-gcc/bin/avr-gcc -c myproject.c </span>if you have not setup your $PATH) too.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=932">linux23dragon1</a> — Sun Mar 02, 2008 11:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[danog8]]></name></author>
<updated>2008-02-29T14:24:41+01:00</updated>
<published>2008-02-29T14:24:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14508#p14508</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14508#p14508"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14508#p14508"><![CDATA[
Thanks!<br /><br />now i can connect and upload programs to the CM5 using the Gtkterm !<br /><br />the problem now is that i can't compile my new program, I've downloaded and installed avr-lib and used a makefile that i found in this forum and apparently worked for the person who posted,<br /><br />but i don't know what to put in GNU_AVR_PATH = ...?<br /><br />when i try tocompile usin<br />gcc -c myproject.c<br /><br />i get a lot of errors cause it doesn't know the following libaries<br /><br />error:  avr/io.h: No such file or directory<br />error: avr/interrupt.h: No such file or directory<br />error: avr/signal.h:  No such file or directory<br /><br />although i've already installed the avrlib <img src="http://forum.robosavvy.com/images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /> <br /><br /><blockquote class="uncited"><div><br />TARGET=example<br /><br />GNU_AVR_PATH = /home<br />CC = $(GNU_AVR_PATH)/bin/avr-gcc<br />OBJCOPY = $(GNU_AVR_PATH)/bin/avr-objcopy<br /><br />OPTIM_LEVEL = s<br /><br />#<br /># Compiler flags<br />#<br />CFLAGS  = -g<br />CFLAGS += -O$(OPTIM_LEVEL)<br />CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums<br />CFLAGS += -Wall -Wstrict-prototypes<br />CFLAGS += -std=gnu99<br /><br />OBJECTS =\<br />./Example.o<br /><br />LDFLAGS =<br /><br /><br />all: $(TARGET).hex $(TARGET).bin<br /><br />$(TARGET).elf: $(OBJECTS)<br />$(CC) -mmcu=atmega128 $(LDFLAGS) -o $@ $(OBJECTS)<br /><br />example.hex:<br />$(OBJCOPY) -O ihex -R .eeprom $&lt; $@<br /><br />example.bin:<br />$(OBJCOPY) -O binary -R .eeprom $&lt; $@<br /><br />example.o:%.c<br />$(CC) -mmcu=atmega128 $(CFLAGS) -o $@ -c $&lt;<br /><br />clean:<br />rm -f $(OBJECTS)<br /><br />cleaner: clean<br />rm -f $(TARGET).elf \<br />$(TARGET).hex \<br />$(TARGET).bin<br /></div></blockquote><br /><br /> DaNoG<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=817">danog8</a> — Fri Feb 29, 2008 2:24 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-02-28T16:22:18+01:00</updated>
<published>2008-02-28T16:22:18+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14476#p14476</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14476#p14476"/>
<title type="html"><![CDATA[Programming on C  (Linux -&gt; Ubuntu)]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2293&amp;p=14476#p14476"><![CDATA[
Hi danog8,<br /><br />serial terminal emulation on linux:<br /><!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?t=433">http://robosavvy.com/forum/viewtopic.php?t=433</a><!-- m --><br /><br />To upload firmware to the CM5 I think you need to use the xmodem protocol. can't remember but search the forum because linux/CM5 and as i remember that this was discussed here before.<br /><br />Atmega128 gcc compiler for linux:<br /><!-- m --><a class="postlink" href="http://www.avrfreaks.net/wiki/index.php/Documentation:AVR_GCC">http://www.avrfreaks.net/wiki/index.php ... on:AVR_GCC</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Thu Feb 28, 2008 4:22 pm</p><hr />
]]></content>
</entry>
</feed>