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

<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-04-02T07:43:17+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2404</id>
<entry>
<author><name><![CDATA[radiocar]]></name></author>
<updated>2008-04-02T07:43:17+01:00</updated>
<published>2008-04-02T07:43:17+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15148#p15148</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15148#p15148"/>
<title type="html"><![CDATA[Use of Visual C++ in Expert kit]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15148#p15148"><![CDATA[
Ah...I got some clue, thx a lot.<br /><br />WinAVR should be used to run files for CM-5 to run<br /><br />However, I am currently doing PC Based Robot Programming and the manual said Visual C++6.0 or above compiler should be used.<br /><br />I use MS Visual Studio to run the example program and that error message appear. I simply use the default debugger Win32 to run, but it's not successful.<br /><br />Sorry for explaining not good enough.<br /><br />Thx<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=806">radiocar</a> — Wed Apr 02, 2008 7:43 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[limor]]></name></author>
<updated>2008-04-02T01:33:05+01:00</updated>
<published>2008-04-02T01:33:05+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15143#p15143</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15143#p15143"/>
<title type="html"><![CDATA[Use of Visual C++ in Expert kit]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15143#p15143"><![CDATA[
you can find several C libraries for interfacing with the Bioloid bus.<br />for a couple of example links, see the Bioloid <a href="http://robosavvy.com/site/index.php?option=com_openwiki&amp;Itemid=&amp;id=robotis_bioloid" class="postlink">wiki</a>page.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2">limor</a> — Wed Apr 02, 2008 1:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-04-01T21:36:13+01:00</updated>
<published>2008-04-01T21:36:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15134#p15134</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15134#p15134"/>
<title type="html"><![CDATA[Use of Visual C++ in Expert kit]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15134#p15134"><![CDATA[
Siempre is right, libc isn't what you want.  libc is the library that C uses to access all of the standard library functions (e.g. printf, getc, etc).  These won't be available for the AVR and in fact will be largely useless as they're compiled and optimised for modern processors, not 16MHz 8 bit microcontrollers.  Even if you could compile it (because you wanted to use sprintf, for example) it'll be incredibly bloated and would seriously threaten the performance of your application.<br /><br />Stick with WinAVR.  It's well known, the constants provided with WinAVR map perfectly to the Atmel documentation so you can literally take the microcontroller PDF file (let me know if you need it) and write code from it.<br /><br />I suggest that for your first application (assuming you haven't done microcontroller programming before) you stick with something straightforward like flashing an LED.<br /><br />Things you'll need to look up in the ATMega128 documentation are:<br /><br />- Timers (TCCR, TCNT).<br />- GPIO (general purpose input output) ports and their data direction registers (DDRA, DDRB etc).<br /><br />You'll also need to dig around here and the rather superb bioloid.info site that Jon is putting together to find the circuit diagrams for the CM-5 so you can figure out which LED is connected to which port on the microcontroller.<br /><br />There are a few of us who have scratch written libraries for you to use, mine is largely complete but is not yet released due to a bug I haven't had the time to investigate (interrupt driven serial IO for PC comms causes dynamixel serial comms to crash when interrupts are triggered simultaneously).<br /><br />If you're new to microcontroller programming I do recommend you familiarise yourself with how to do some of the basic stuff before using someone elses library.  Otherwise when their (my?!) library goes horribly wrong you won't know how to investigate, fix or report the bug...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Tue Apr 01, 2008 9:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2008-04-01T13:30:52+01:00</updated>
<published>2008-04-01T13:30:52+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15106#p15106</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15106#p15106"/>
<title type="html"><![CDATA[Re: Use of Visual C++ in Expert kit]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15106#p15106"><![CDATA[
<blockquote><div><cite>radiocar wrote:</cite><br />Hi all,<br /><br />I noticed that CM-5 can run .hex files which is composed by the use of C++, does anyone know that how the .hex file can be generated?<br /></div></blockquote><br /><br />You can use <a href="http://winavr.sourceforge.net/" class="postlink">WinAVR</a>. I think it's included in the Expansion CD of the expert version. But it is mainly c, <a href="http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_cplusplus" class="postlink">WinAVR is very limited for c++</a>. <br /><br />In the expert manual you have  &quot;&#65298;-&#65297;. CM-5 BASED ROBOT PROGRAMMING&quot; (page 17), where you can find a lot of help to install and create your first CM-5 program :)<br /><br /><blockquote><div><cite>radiocar wrote:</cite><br />I am currently amending the &quot;PC controller&quot; example, by adding more buttons on the .exe window. How can I generate .exe file in C++?<br /><br />I tried to debug it, and a warning description appear. (Original example)<br />fatal error LNK1104: cannot open file 'LIBC.lib'<br /><br />I can't find LIBC.lib inside the example, what is the problem?<br /><br /><br />Please Help, Thx a lot!<br /></div></blockquote><br /><br />I'm not sure, but I think that you have not created a correct visual c/c++ project... 'LIBC.lib' is the visual c/c++ library.<br /><br />Hope it helps :)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Tue Apr 01, 2008 1:30 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[radiocar]]></name></author>
<updated>2008-04-01T11:12:14+01:00</updated>
<published>2008-04-01T11:12:14+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15105#p15105</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15105#p15105"/>
<title type="html"><![CDATA[Use of Visual C++ in Expert kit]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2404&amp;p=15105#p15105"><![CDATA[
Hi all,<br /><br />I noticed that CM-5 can run .hex files which is composed by the use of C++, does anyone know that how the .hex file can be generated?<br /><br />I am currently amending the &quot;PC controller&quot; example, by adding more buttons on the .exe window. How can I generate .exe file in C++?<br /><br />I tried to debug it, and a warning description appear. (Original example)<br />fatal error LNK1104: cannot open file 'LIBC.lib'<br /><br />I can't find LIBC.lib inside the example, what is the problem?<br /><br /><br />Please Help, Thx a lot!<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=806">radiocar</a> — Tue Apr 01, 2008 11:12 am</p><hr />
]]></content>
</entry>
</feed>