Compile Code Examples Eagle SBC
From Manuals
(→Compiling Examples with the GNU Toolchain) |
(→Compiling Examples with the CodeBlocks IDE) |
||
| Line 5: | Line 5: | ||
===Compiling Examples with the GNU Toolchain=== | ===Compiling Examples with the GNU Toolchain=== | ||
| - | ====Compiling Examples with the | + | ====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 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. | ||
[[Image:CodeBlocks_IDE.png|center|frame|alt=CodeBlocks IDE|Figure 2.6: Using the StellarisWare projects with the CodeBlocks IDE]] | [[Image:CodeBlocks_IDE.png|center|frame|alt=CodeBlocks IDE|Figure 2.6: Using the StellarisWare projects with the CodeBlocks IDE]] | ||
Revision as of 14:46, 3 April 2012
Contents |
Compiling Code Examples with EWARM
To load the StellarisWare workspace in the IAR IDE, select Programs> Micromint Eagle> IAR> StellarisWare examples from the Windows Start menu. The IAR Embedded Workbench for ARM will start and you will see a screen similar to that in Figure 2.5. Select the Blinky project by clicking on the drop down menu circled red in Figure 2.5. Be sure to select the board that you are using. In the case of Figure 2.5 the Eagle 50E was being used. To rebuild the project select the “Make” button on the toolbar. You can also right click on the project name to select “Make” or “Rebuild”. This will build a binary (.BIN) image file in the “board type\ewarm\Exe\” directory of the project. For example the binary for the blinky project using the Eagle 50E is in the “C:\Program Files\Micromint\Eagle\StellarisWare\boards\eagle\blinky\eagle-50e\ewarm\Exe” directory if the Eagle BSP was installed in the default directory. To load the application on the board please see the Firmware Download Procedures section in this manual. If the build and download is successful, the user LED on the Eagle SBC will start blinking.
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 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.
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”.


