User’s Guide
usually don’t use ASM or C directly. We rather use a higher level tool to do the
job. Similar to this, it would be more appropriate to use a higher level tool to
concentrate more on the higher level behavior control of the robot.
9-3.
Compiling(Compile)
This section talks about how to compile a CM-5 program. Before going through
this section, we recommend studying the AX-12 manual.
Selecting a Compiler
The CPU on the CM-5 unit is the Atmega128 of the AVR Series from Atmel. There
are many different C compilers available for the Atmega128 but their prices are
generally very high. One the other hand, a global organization called GNU is
distributing their compiler called GCC for free of charge. For this reason, many
research labs and institutions are using this compiler instead. The CM-5 unit also
uses the AVR GCC compiler.
Compiler and Editor
Windows OS users are familiar with compilers that have an editor function built in.
But for compilers that run on text based OSes such as Linux, they usually have a
separate compiler and an editor. The GCC is a compiler based on the command
line interface and thus does not have a built in editor. Therefore, users have to
use a separate editor to develop a program. The AVR-Edit and the WIN-AVR are
two editors for GCC that are popular. We will be using the WIN-AVR editor in this
tutorial. This editor runs the compiler by internally calling the AVR GCC.
Installing the Compiler
Let
’
s install and run the AVR GCC Editor, Win-AVR. Win-AVR can be downloaded
from the Internet and you can find a link from the website www.robotis.com. Since
Win-AVR already includes the AVR GCC, the user only needs to install the Win-AVR.
The user can select the following menu after the installation is complete.
120
Summary of Contents for Robotis
Page 1: ...Ver 1 00 BIOLOID User s Guide Closer to Real...
Page 55: ...User s Guide Portion that will be ignored Enable Disable Code Portions that will be ignored 55...
Page 73: ...User s Guide Move routine Stop Backward Left turn Right turn Melody sound routine 73...
Page 100: ...User s Guide Transmitter behavior control program Receiver behavior control program 100...