SEARCH
TOOLBOX
LANGUAGES
modified on 3 April 2012 at 14:57 ••• 17,869 views

Compile Code Examples Eagle SBC

From Manuals

Jump to: navigation, search

Contents

Compiling Code Examples with EWARM

Follow these steps to compile an example using EWARM.

  • 1. Open IAR Embedded Workbench for ARM (EWARM).
  • 2. Click "File|Open|Workspace..." from the drop down menu.
  • 3. Browse to the "StellarisWare\boards\eagle" directory and select the eagle workspace. The work space should look similar to the one in Figure 2.5.
  • 4. Right click on the desired project and select "Set as Active".
  • 5. Right click on the project and select "Rebuild".
IAR EWARM IDE
Figure 2.5: Using StellarisWare projects with the IAR EWARM IDE

Compiling Examples with the GNU Toolchain

Compiling Examples with the Code::Blocks IDE

Follow these steps to compile an example using the Code::Blocks IDE.

  • 1. Open the Code::Blocks IDE.
  • 2. Click "File" from the drop down menu.
  • 3. Click "Open".
  • 4. Browse to the "StellarisWare\boards\eagle" directory and select the eagle workspace. The work space should look similar to the one in Figure 2.6.
  • 5. Right click on the desired project and select "Activate project".
  • 6. Right click on the project and select build.
CodeBlocks IDE
Figure 2.6: Using the StellarisWare projects with the CodeBlocks IDE

Compiling Examples with the Eclipse IDE

Follow these steps to compile an example using the Eclipse IDE.

  • 1. Open the Eclipse IDE.
  • 2. When prompted browse to the "StellarisWare\boards\eagle" directory.
  • 3. Click 'OK'.
  • 4. Press the 'F5' key on the keyboard to refresh the files.
  • 5. Close all of the open projects by right clicking on the project and selecting "Close Project".
  • 6. Open a project by right clicking on the desired project and selecting "Open Project". If the Sourcery G++ Lite compiler is not installed and devkitARM is installed then click on "Window>Preferences>C/C++>Build>Environtment" and add a variable called "COMPILER" with the value set to "devkitARM".
  • 7. Right click on the project and select build.

Compiling Examples with the GNU Toolchain from the Command Line

All example programs include a Makefile that allows you to build binary images from the command line using the GNU toolchain. The GNU “make” utility is installed as part of the GNU toolchain on the Eagle Setup CD. To build an image using the command line, just change to the project directory and execute “make”. To build the image for blinky you would perform the following:

  • 1. Open a command prompt.
  • 2. Type “CD\Program Files\Micromint\Eagle\StellarisWare\boards\eagle\blinky”.
  • 3. Press “Enter”.
  • 4. Type “make”.
  • 5. Press “Enter”.